Skip to content
Snippets Groups Projects
Select Git revision
  • e8c3269e4361eae6b77da7d55e8b141429f1e641
  • master default protected
  • hotfix/mapping-idp
  • release-1.10 protected
  • dev protected
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • release-1.9 protected
  • 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
  • fix/auth-service
  • 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
  • v1.9.1 protected
  • v1.9.0 protected
41 results

RestClient.py

Blame
  • obsseq_to_netcdf.py 785 B
    import os, sys, glob, warnings
    
    from config.cfg import exp, cluster
    import run_obs_diag as rod
    
    def listdir_dirs(path):
        return [a for a in os.listdir(path) if os.path.isdir(os.path.join(path, a))]
    
    if __name__ == '__main__':
    
        datadir = cluster.archive_base
        #expname = 'exp_v1.16_Pwbub-1_Radar_soe2' 
        expname = exp.expname
        ddir = datadir+expname+'/obs_seq_final/'
    
        files = sorted(glob.glob(ddir+'/*.final')) 
        rod.run_obsdiag(files, f_out=ddir+'/obsdiag.nc')
        rod.run_obs_seq_to_netcdf(files, f_out=ddir+'/obs_epoch.nc') 
    
        ddir = datadir+expname+'/obs_seq_final_1min/'
        files = sorted(glob.glob(ddir+'/*.final'))
        try:
            rod.run_obs_seq_to_netcdf(files, f_out=ddir+'/obs_epoch.nc') 
        except Exception as e:
            warnings.warn(str(e))