New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13835 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_ICE.py – NEMO

Ignore:
Timestamp:
2020-11-19T19:48:58+01:00 (3 years ago)
Author:
laurent
Message:

Improvment of STATION_ASF over sea-ice...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_ICE.py

    r13781 r13835  
    8484 
    8585 
    86 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     86# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    8787# Populating and checking existence of files to be read 
    88 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     88# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    8989 
    9090dir_out = cdir_data+'/output' 
    9191ldir = listdir(dir_out) 
    92  
    9392cf_in    = [] 
    9493list_exp = [] 
     
    9695for fn in ldir: 
    9796    fpn = dir_out+'/'+fn 
    98     if path.isfile(dir_out+'/'+fn): 
     97    if path.isfile(fpn): 
    9998        if fn[:np]==cpref and fn[-ns:]==csuff and cforcing in fn: 
    10099            print('\n file: '+fn) 
     
    106105            cf_in.append(fpn) 
    107106nbf = len( set(list_frc) ) 
     107 
     108if nbf == 0: 
     109    print('PROBLEM: we found no files corresponding to a forcing!') 
     110    sys.exit(0) 
     111print("list_frc =>",list_frc) 
    108112if not nbf == 1: 
    109113    print('PROBLEM: we found files for more that one forcing: ', set(list_frc)) 
     
    120124    sys.exit(0) 
    121125 
    122  
    123  
    124 #----------------------------------------------------------------- 
     126# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     127# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    125128 
    126129 
Note: See TracChangeset for help on using the changeset viewer.