- Timestamp:
- Jul 17, 2018, 3:02:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/UWyoming_snd_nc.py
r1926 r1938 96 96 idate = 0 97 97 98 # List with the dates of the soundings, to keep them consecutive!! 99 Tsoundings = [] 100 98 101 for line in osnd: 99 102 if line[0:1] != '#' and line[0:1] != '<' and line[0:1] != '-' and len(line) > 1: … … 119 122 print ic, ':', txtvals[ic] 120 123 124 Tsoundings.append(stationdateS) 121 125 soundings[stationdateS] = [pvals, txtvals] 122 126 if len(soundings.keys()) == 1: … … 222 226 223 227 # Getting measured values 224 Ntimes = len( soundings.keys())228 Ntimes = len(Tsoundings) 225 229 Npres = len(presvals) 226 230 Nvals = len(varns) … … 228 232 sndvals = np.ones((Ntimes, Npres, Nvals), dtype=np.float)*gen.fillValueF 229 233 for it in range(Ntimes): 230 snditS = soundings.keys()[it]234 snditS = Tsoundings[it] 231 235 sndvs = soundings[snditS] 232 236 sndv = sndvs[0] … … 271 275 tvals = [] 272 276 for it in range(Ntimes): 273 snditS = soundings.keys()[it]277 snditS = Tsoundings[it] 274 278 sndvs = soundings[snditS] 275 279 sndc = sndvs[1]
Note: See TracChangeset
for help on using the changeset viewer.