Changeset 777 in lmdz_wrf
- Timestamp:
- May 26, 2016, 1:19:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r771 r777 13858 13858 minlon = np.min(np.abs(lonvs)) 13859 13859 13860 ivtest = 2198 13860 13861 # mindiff = np.min([minlat, minlon])/1. 13861 13862 mindiffin = np.sqrt(minlat*minlat + minlon*minlon) 13863 print ' ' + fname + ': Longitudes minimum:', np.min(lonvs), 'max:', np.max(lonvs) 13864 print ' ' + fname + ': Latitudes minimum:', np.min(latvs), 'max:', np.max(latvs) 13865 print 'Lluis lon/lat ivtest:',lonvs[ivtest],',',latvs[ivtest] 13862 13866 13863 13867 print ' ' + fname + ': Closest latitude to Equator:', minlat … … 13999 14003 varlongname = ovar.long_name 14000 14004 varunits = ovar.units 14005 14006 print 'Lluis ovar[ivtest]:',ovar[ivtest] 14007 quit() 14001 14008 14002 14009 fval = gen.fillvalue_kind(type(ovar[0]), fval0) … … 14194 14201 14195 14202 newnc.sync() 14203 if ire > ivtest: 14204 print 'iv:',ivtest,'lon lat:',lonvs[ivtest],',',latvs[ivtest] 14205 print 'ilonlat:',ilonlatv[ivtest,:],'lonlat proj:', projlon[ilonlatv[ivtest,0]],',', \ 14206 projlat[ilonlatv[ivtest,1]],'diff:',newvarindiff[ivtest] 14207 newnc.close() 14208 quit() 14196 14209 # newnc.close() 14197 14210 # quit()
Note: See TracChangeset
for help on using the changeset viewer.