[ncl-talk] problems with regriding

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Thu Aug 21 14:12:35 MDT 2014


Hi users,
I do regridding data for resolution of 2 degrees and the NCL is not correctly plotting the data, it is cutting the data to the new resolution as opposed to a new lat and lon.
>begin     >var = f[:]->SST
>var!1="lat">var!2="lon">j=var!1>i=var!2   
newfile = "tos_90x180.nc"
file_create = addfile(newfile, "c")    
new_lon = fspan(0,358, 180)     new_lon at units = "degrees_east"new_lon!0 = "lon"  
new_lat = fspan(-87.86, 87.86, 90)new_lat at units = "degrees_north"new_lat!0 = "lat"        
new_var = linint2_Wrap(var&lon,var&lat,var,True,new_lon,new_lat,0)
file_create->tos = new_var

Variable: varType: doubleTotal Size: 78099840 bytes            9762480 valuesNumber of Dimensions: 3Dimensions and sizes:	[TIME | 360] x [lat | 149] x [lon | 182]Coordinates:             TIME: [76.5..3636.5]            lat: [1..149]            lon: [1..182]Number Of Attributes: 4  missing_value :	-9.999999999999999e+33  _FillValue :	-9.999999999999999e+33  long_name :	TOS[L=3:122]  history :	From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012
Variable: new_varType: doubleTotal Size: 46656000 bytes            5832000 valuesNumber of Dimensions: 3Dimensions and sizes:	[TIME | 360] x [lat | 90] x [lon | 180]Coordinates:             TIME: [76.5..3636.5]            lat: [-87.86..87.86]            lon: [ 0..358]Number Of Attributes: 4  missing_value :	-9.999999999999999e+33  _FillValue :	-9.999999999999999e+33  long_name :	TOS[L=3:122]  history :	From tos_Omon_CMCC-CM_decadal1980_r1i1p1_198011-199012


---Vanúcia SchumacherMestranda em Meteorologia - UFVMeteorologista -UFPel
Departamento de Meteorologia Agrícola - DEACel: (31) 9978 2522 DEA: (31) 3899 1890 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140821/712786c1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMCC-CM_dp.png
Type: image/png
Size: 128335 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140821/712786c1/attachment.png 


More information about the ncl-talk mailing list