Changeset 2734 in lmdz_wrf
- Timestamp:
- Oct 25, 2019, 6:44:45 PM (5 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2733 r2734 17267 17267 return newlist 17268 17268 17269 def stations_values(stcrit,stval,Nexpctst='all' ):17269 def stations_values(stcrit,stval,Nexpctst='all',Notfound=True): 17270 17270 """ Function to provide information from a given station from one of its values 17271 17271 from ASCII file 'OBStations.csv' … … 17295 17295 'all': all matching entries. It will return a dictionary 17296 17296 'one': only one entry. It will return a list 17297 [Notfound]: should call quit if no station is found? Otherwise returns None 17297 17298 return: [station_name], [WMOid], [longitude], [lon_deg], [lon_min], [lon_sec], 17298 17299 [latitude], [lat_deg], [lat_min], [lat_sec], [height], [prov], [country], … … 17353 17354 17354 17355 stvalues = list_listKs(values, stKs) 17355 print stvalues[icrit], stv, stvalues[icrit] == stv17356 17356 if stvalues[icrit] == stv: 17357 17357 stations[Nst] = stvalues … … 17363 17363 "' not found !!!" 17364 17364 ncf.close() 17365 quit(-1) 17365 if Notfound: 17366 print ' STOP program' 17367 quit(-1) 17368 else: return None 17366 17369 17367 17370 if Nexpctst == 'all': return stations … … 17372 17375 print ' ', Nst, 'stations found _______' 17373 17376 printing_dictionary(stations) 17377 if Notfound: 17378 print ' STOP program' 17379 quit(-1) 17380 else: return None 17374 17381 else: 17375 17382 stfound = stations[0] 17376 17383 return stfound 17377 17378 17384 17379 17385 return stations -
trunk/tools/link_essentials.bash
r2719 r2734 16 16 ln -s ${pyHOME}/*.so ./ 17 17 ln -s ${pyHOME}/variables_values.dat ./ 18 ln -s ${pyHOME}/OBSstations.csv ./ 18 19 fi
Note: See TracChangeset
for help on using the changeset viewer.