[ncl-talk] Why the same scripts with "ESMF_regrid" function met error in mac OS while no error in Windows?

Mary Haley haley at ucar.edu
Sun Dec 11 21:21:18 MST 2016


I didn't see any attached files. Can you please send them?

The debug output is useful, but something is very strange.  It's like the
ESMF_RegridWeightGen command is simply not producing any results
whatsoever. It should at least be giving you some minimal output other than
"missing".

Also, can you type the following and email it to me:

ncl -V
which ncl
env | grep NCARG
which ESMF_RegridWeightGen

ESMF_RegridWeightGen --version

Thanks,

--Mary


On Sat, Dec 10, 2016 at 1:42 AM, 林祥 <xianglin72 at icloud.com> wrote:

> Hi,Mary
>
>      Thank you for the reply!Here below is all of the output after I run
> the  esmf_regrid_6_hoffman.ncl.
>
> And both esmf_regrid_6_hoffman.ncl and esmf_regrid_6_sic.ncl have been
> also attached in this mail. :)
>
>
> Lin
>
>
> 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
> (0) get_src_grid_info: source lat dims = (300,360)
> (0) get_src_grid_info: source lon dims = (300,360)
> (0) get_src_grid_info: source grid type is 'curvilinear'
> (0) curvilinear_to_SCRIP: calculating grid corners...
> (0) curvilinear_to_SCRIP: no lat values are at the poles, so
> (0)       calculating grid corners using
> (0)       calc_SCRIP_corners_noboundaries...
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max original lat: -77.8766/89.7487
> (0)     min/max original lon: 0.0262451/359.969
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max Extlat2d: -78.1235/90.1824
> (0)     min/max Extlon2d: -326.965/359.969
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max ExtGridCenter_lat: -78.0001/89.9656
> (0)     min/max ExtGridCenter_lon: -47.353/359.411
> (0) curvilinear_to_SCRIP: calculating grid corners...
> (0) curvilinear_to_SCRIP: no lat values are at the poles, so
> (0)       calculating grid corners using
> (0)       calc_SCRIP_corners_noboundaries...
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max original lat: -89.5/89.5
> (0)     min/max original lon: -179.5/179.5
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max Extlat2d: -90.5/90.5
> (0)     min/max Extlon2d: -180.5/180.5
> (0) calc_SCRIP_corners_noboundaries
> (0)     min/max ExtGridCenter_lat: -90/90
> (0)     min/max ExtGridCenter_lon: -180/180
> (0) ESMF_regrid_gen_weights: number of processors used: 1
> (0) --------------------------------------------------
> (0) ESMF_regrid_gen_weights: the following command is about to be
> executed on the system:
> (0) 'ESMF_RegridWeightGen --source /Users/linx/Data/CMIP5_SIC/
> sic/historical/ACCESS1.0/source_grid_file.nc --destination
> /Users/linx/Data/CMIP5_SIC/sic/historical/ACCESS1.0/desti
> nation_grid_file.nc --weight /Users/linx/Data/CMIP5_SIC/
> sic/historical/ACCESS1.0/wgt_conserve.nc --method conserve -i --norm_type
> fracarea'
> (0) --------------------------------------------------
> (0) ESMF_regrid_gen_weights: output from 'ESMF_RegridWeightGen':
> (0)     missing
> (0) --------------------------------------------------
> fatal:The result of the conditional expression yields a missing value. NCL
> can not determine branch, see ismissing function
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 2938 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4027 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 50 in
> file /Users/linx/Data/CMIP5_SIC/sic/esmf_regrid_6_hoffman.ncl
>
> 在 2016年12月10日,01:51,Mary Haley <haley at ucar.edu> 写道:
>
> Lin,
>
> The script you attached only has 52 lines, whereas the error is coming
> from line 127. I'm assuming the error happens on the ESMF_regrid line.
>
> Also, did you include all of the error messages?  The reason I ask is that
> the line number that this error is pointing to to indicates that it
> happened when it tried to execute the ESMF_RegridWeightGen command.  This
> is an application that should be in the same directory as the "ncl" command
> ($NCARG_ROOT/bin). If this file doesn't exist on your Mac in
> $NCARG_ROOT/bin, then you should have seen another error message before the
> error messages you emailed.
>
> To get more debugging output, add this option:
>
>    Opt at Debug  = True
>
> This sometimes helps you better see the source of the problem.
>
> Please run your script with this option set, and then email me all of the
> output and the esmf_regrid_6_sic.ncl script.
>
> Thanks,
>
> --Mary
>
>
>
> On Thu, Dec 8, 2016 at 8:42 AM, 林祥 <xianglin72 at icloud.com> wrote:
>
>> Hi, all
>>
>>        I use the function of “ESMF_regrid” to regard some sea ice data of
>> CMIP5 results. I find that the script run well in the windows (cygwin)
>>
>> while met some error  in Mac OS 10.11.5 (El Captain). The error message
>> were listed below :
>>
>>
>>  fatal:The result of the conditional expression yields a missing value.
>> NCL can not determine branch, see ismissing function
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 2938 in
>> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>>
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4027 in
>> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>>
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 127 in
>> file /Users/linx/Data/CMIP5_SIC/sic/esmf_regrid_6_sic.ncl
>>
>>
>>         My script was also attached for this mail,  I use this scripts
>> to regrid sea ice concentration dataset from multiple CMIP5 model output.
>> I’ve talk about
>>
>> this problem with Hoffman and thank for his help. But my problem have not
>> been resolved since I just use Mac pro for working and the PC (windows) is
>> not belong
>>
>> to me (I can let someone test the script in Windows for me, But the major
>> work should be done by me in Mac pro.)
>>
>>
>> Thank
>>
>>
>> LIN
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161211/87395280/attachment.html 


More information about the ncl-talk mailing list