Skip to content
Snippets Groups Projects
Select Git revision
  • 4d01f99db37f2c2e8e0fc70cc05c98061d4390b0
  • master default protected
  • replication_test
  • dev protected
  • release-1.10 protected
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
41 results

test_unit_rest_client.py

Blame
  • link_dart_rttov.py 1.38 KiB
    import os
    from config.cfg import exp, cluster
    from utils import symlink, copy_scp_srvx8, copy, sed_inplace
    
    joinp = os.path.join
    
    # DART executables
    bins = ['perfect_model_obs', 'filter', 'obs_diag', 'obs_seq_to_netcdf']
    for b in bins:
        symlink(joinp(cluster.dart_srcdir, b),
                joinp(cluster.dartrundir, b))
        print(joinp(cluster.dartrundir, b), 'created')
    
    rttov_files = ['rttov13pred54L/rtcoef_msg_4_seviri_o3.dat', 
                   #'mfasis_lut/rttov_mfasis_cld_msg_4_seviri_deff.dat',
                   'mfasis_lut/rttov_mfasis_cld_msg_4_seviri_deff.H5',
                   'cldaer_visir/sccldcoef_msg_4_seviri.dat']
    
    for f_src in rttov_files:
        destname = os.path.basename(f_src)
        if 'rtcoef' in f_src:
            destname = 'rtcoef_msg_4_seviri.dat'
    
        symlink(cluster.rttov_srcdir + f_src, 
                cluster.dartrundir+'/'+destname)
    
    ##################
    symlink(cluster.dartrundir+'/rttov_mfasis_cld_msg_4_seviri_deff.H5', 
            cluster.dartrundir+'/rttov_mfasis_cld_msg_4_seviri.H5')
    
    symlink(cluster.dart_srcdir+'/../../../observations/forward_operators/rttov_sensor_db.csv',
            cluster.dartrundir+'/rttov_sensor_db.csv')
    
    symlink(cluster.dart_srcdir+'/../../../assimilation_code/programs/gen_sampling_err_table/work/sampling_error_correction_table.nc',
            cluster.dartrundir+'/sampling_error_correction_table.nc')
    
    print('prepared DART & RTTOV links in', cluster.dartrundir)