Changeset 2060 in lmdz_wrf
- Timestamp:
- Aug 9, 2018, 8:33:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/UWyoming_snd_nc.py
r1941 r2060 108 108 if line[0:1] != '#' and line[0:1] != '<' and line[0:1] != '-' and len(line) > 1: 109 109 lvals = gen.values_line(line, ' ', ['\t']) 110 lvals = gen.values_line(line, ' ', ['\t'])111 print lvals112 110 newsnd = lvals.count('Observations') 113 111 # Processing a new date … … 118 116 txtvals = {} 119 117 idate = idate + 1 118 strefn = lvals[1] 119 idobsS = lvals.index('Observations') 120 stnameS = ' '.join(lvals[2:idobsS]) 120 121 else: 121 122 stationdateS = str(txtvals['Station number']) + '_' + txtvals['Observation time'] … … 387 388 # Global attributes 388 389 ncvar.add_global_PyNCplot(onewnc, main, '', '0.2') 390 onewnc.setncattr('Station_ref', strefn) 391 onewnc.setncattr('Station_name', stnameS) 392 389 393 for atn in stngattrk: 390 394 atnS = atn.replace(' ','_')
Note: See TracChangeset
for help on using the changeset viewer.