[ncl-talk] Question about the function of "ESMF_regrid" ?
林祥
xianglin72 at icloud.com
Wed Dec 7 09:44:25 MST 2016
Hi, all
I want to regrid some curvilinear data using the function "ESMF_regrid” , the corresponding codes were listed as below (while the
whole scripts was also attached with this mail) .
125 printVarSummary(thetao)
126 thetao_regrid = ESMF_regrid(thetao,Opt)
127 printVarSummary(thetao_regrid) ( the scripts was derived from example of ESMF_regrid_6.ncl <file:///Users/linx/Downloads/NCL_web/data/20140504112024/esmf_regrid_6.ncl> )
However, something wrong were reported as below:
Variable: thetao
Type: float
Total Size: 808704000 bytes
202176000 values
Number of Dimensions: 3
Dimensions and sizes: [time | 1872] x [j | 300] x [i | 360]
Coordinates:
time: [675348.5..732295.5]
j: [0..299]
i: [0..359]
Number Of Attributes: 14
lon2d : <ARRAY of 108000 elements>
lat2d : <ARRAY of 108000 elements>
standard_name : sea_ice_area_fraction
long_name : Sea Ice Area Fraction
comment : fraction of grid cell covered by sea ice.
units : %
original_units : 1
history : 2012-01-17T03:16:49Z altered by CMOR: Converted units from '1' to '%'. 2012-01-17T03:16:49Z altered by CMOR: replaced missing value flag (1e+30) with standard missing value (1e+20).
cell_methods : time: mean
cell_measures : area: areacello
missing_value : 1e+20
_FillValue : 1e+20
associated_files : baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_seaIce_fx_ACCESS1-0_historical_r0i0p0.nc areacello: areacello_fx_ACCESS1-0_historical_r0i0p0.nc
coordinates : lat lon
fatal:Eq: Dimension size, for dimension number 0, of operands does not match, can't continue
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 1614 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3853 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3983 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 126 in file /Users/linx/Data/CMIP5_SIC/sic/esmf_regrid_6_sic.ncl
According the introduction of “ESMF_regrid”, the “thetao" can be any dimensionality. So I can not find out where is the problem.
Anyone can show me a hand? Thanks!
Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161208/a83ab221/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: esmf_regrid_6_sic.ncl
Type: application/octet-stream
Size: 6024 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161208/a83ab221/attachment.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161208/a83ab221/attachment-0001.html
More information about the ncl-talk
mailing list