Changeset 1704 in lmdz_wrf


Ignore:
Timestamp:
Dec 8, 2017, 8:23:58 PM (7 years ago)
Author:
lfita
Message:

Adding capture of right size of dt from the existence of file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/get_stations.py

    r1703 r1704  
    386386
    387387    if dimn == Pressdimref: dz = len(onc.dimensions[dimn])
    388     dt = onc.variables[sfcrefvar].shape[0]
     388
     389if sfcstatfile != 'None':
     390  dt = onc.variables[sfcrefvar].shape[0]
     391else:
     392  dt = onc.variables[sndrefvar].shape[0]
    389393
    390394# Looking for 2D 'lon', 'lat' related variables
Note: See TracChangeset for help on using the changeset viewer.