Changeset 506 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 17, 2015, 10:44:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r505 r506 996 996 997 997 theta = np.arctan2(ua, va) 998 theta = np.where(theta < 0., theta + 2.*np.pi, theta) 999 varNOcheckv = 360.*theta/(2.*np.pi) 1000 998 1001 dimensions = tuple(['Time','bottom_top','south_north','west_east']) 999 1002 shape = ua.shape 1000 varNOcheckv = 360.*theta/(2.*np.pi)1001 1003 1002 1004 elif varn == 'WRFwds': 1003 1005 # print ' ' + main + ': computing surface wind direction from WRF as ATAN2(V,U) ...' 1004 1006 theta = np.arctan2(ncobj.variables['V10'][:], ncobj.variables['U10'][:]) 1007 theta = np.where(theta < 0., theta + 2.*np.pi, theta) 1005 1008 1006 1009 varNOcheckv = 360.*theta/(2.*np.pi) … … 1011 1014 # print ' ' + main + ': computing surface wind direction from TSs as ATAN2(v,u) ...' 1012 1015 theta = np.arctan2(ncobj.variables['v'][:], ncobj.variables['u'][:]) 1016 theta = np.where(theta < 0., theta + 2.*np.pi, theta) 1013 1017 1014 1018 varNOcheckv = 360.*theta/(2.*np.pi)
Note: See TracChangeset
for help on using the changeset viewer.