<div dir="ltr"><div class="gmail_default" style="font-size:small">I didn't see any attached files. Can you please send them?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, can you type the following and email it to me:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">ncl -V</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">which ncl</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">env | grep NCARG</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">which ESMF_RegridWeightGen<br>
</font><p class="gmail-p1"><span class="gmail-s1"><font face="monospace, monospace">ESMF_RegridWeightGen --version</font></span></p></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 10, 2016 at 1:42 AM, 林祥 <span dir="ltr"><<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi,Mary</div><div> </div><div> Thank you for the reply!Here below is <span style="font-size:small">all of the output after I run the </span>esmf_regrid_6_hoffman.ncl.</div><div><br></div><div>And both esmf_regrid_6_hoffman.ncl and esmf_regrid_6_sic.ncl have been also attached in this mail. :)</div><div><br></div><div><br></div><div>Lin </div><div><br></div><div><br></div><div>Variable: thetao</div><div>Type: float</div><div>Total Size: 808704000 bytes</div><div> 202176000 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes:<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>[time | 1872] x [j | 300] x [i | 360]</div><div>Coordinates: </div><div> time: [675348.5..732295.5]</div><div> j: [0..299]</div><div> i: [0..359]</div><div>Number Of Attributes: 14</div><div> lon2d :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span><ARRAY of 108000 elements></div><div> lat2d :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span><ARRAY of 108000 elements></div><div> standard_name :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>sea_ice_area_fraction</div><div> long_name :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>Sea Ice Area Fraction</div><div> comment :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>fraction of grid cell covered by sea ice.</div><div> units :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>%</div><div> original_units :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>1</div><div> history :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>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).</div><div> cell_methods :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>time: mean</div><div> cell_measures :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>area: areacello</div><div> missing_value :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>1e+20</div><div> _FillValue :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>1e+20</div><div> associated_files :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/<wbr>CMIP5/dataLocation</a> gridspecFile: gridspec_seaIce_fx_ACCESS1-0_<wbr><a href="http://historical_r0i0p0.nc">historical_r0i0p0.nc</a> areacello: areacello_fx_ACCESS1-0_<wbr><a href="http://historical_r0i0p0.nc">historical_r0i0p0.nc</a></div><div> coordinates :<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>lat lon</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>get_src_grid_info: source lat dims = (300,360)</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>get_src_grid_info: source lon dims = (300,360)</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>get_src_grid_info: source grid type is 'curvilinear'</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>curvilinear_to_SCRIP: calculating grid corners...</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>curvilinear_to_SCRIP: no lat values are at the poles, so</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> calculating grid corners using</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> calc_SCRIP_corners_<wbr>noboundaries...</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max original lat: -77.8766/89.7487</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max original lon: 0.0262451/359.969</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max Extlat2d: -78.1235/90.1824</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max Extlon2d: -326.965/359.969</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max ExtGridCenter_lat: -78.0001/89.9656</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max ExtGridCenter_lon: -47.353/359.411</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>curvilinear_to_SCRIP: calculating grid corners...</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>curvilinear_to_SCRIP: no lat values are at the poles, so</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> calculating grid corners using</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> calc_SCRIP_corners_<wbr>noboundaries...</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max original lat: -89.5/89.5</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max original lon: -179.5/179.5</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max Extlat2d: -90.5/90.5</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max Extlon2d: -180.5/180.5</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>calc_SCRIP_corners_<wbr>noboundaries</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max ExtGridCenter_lat: -90/90</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> min/max ExtGridCenter_lon: -180/180</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>ESMF_regrid_gen_weights: number of processors used: 1</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>------------------------------<wbr>--------------------</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>ESMF_regrid_gen_weights: the following command is about to be executed on the system:</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>'ESMF_RegridWeightGen --source /Users/linx/Data/CMIP5_SIC/<wbr>sic/historical/ACCESS1.0/<a href="http://source_grid_file.nc" target="_blank">sourc<wbr>e_grid_file.nc</a> --destination /Users/linx/Data/CMIP5_SIC/<wbr>sic/historical/ACCESS1.0/<a href="http://destination_grid_file.nc" target="_blank">desti<wbr>nation_grid_file.nc</a> --weight /Users/linx/Data/CMIP5_SIC/<wbr>sic/historical/ACCESS1.0/<a href="http://wgt_conserve.nc" target="_blank">wgt_<wbr>conserve.nc</a> --method conserve -i --norm_type fracarea'</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>------------------------------<wbr>--------------------</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>ESMF_regrid_gen_weights: output from 'ESMF_RegridWeightGen':</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span> missing</div><div>(0)<span class="m_-5295659322036931813Apple-tab-span" style="white-space:pre-wrap">        </span>------------------------------<wbr>--------------------</div><span class=""><div>fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function</div><div><br></div><div>fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 2938 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div><br></div><div>fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 4027 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div><br></div></span><div>fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 50 in file /Users/linx/Data/CMIP5_SIC/<wbr>sic/esmf_regrid_6_hoffman.ncl</div><div><div class="h5"><div><blockquote type="cite"><div>在 2016年12月10日,01:51,Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> 写道:</div><br class="m_-5295659322036931813Apple-interchange-newline"><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_default" style="font-size:small">Lin,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To get more debugging output, add this option:</div><div class="gmail_default" style="font-size:small"><p class="m_-5295659322036931813gmail-p1"><span class="m_-5295659322036931813gmail-s1"> Opt@Debug = True</span></p><p class="m_-5295659322036931813gmail-p1"><span class="m_-5295659322036931813gmail-s1">This sometimes helps you better see the source of the problem.</span></p><p class="m_-5295659322036931813gmail-p1">Please run your script with this option set, and then email me all of the output and the <span style="font-size:12.8px">esmf_regrid_6_sic.ncl script.</span></p><p class="m_-5295659322036931813gmail-p1"><span style="font-size:12.8px">Thanks,</span></p><p class="m_-5295659322036931813gmail-p1"><span style="font-size:12.8px">--Mary</span></p><p class="m_-5295659322036931813gmail-p1"><span style="font-size:12.8px"><br></span></p></div></div><div class="gmail_extra" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 8:42 AM, 林祥<span class="m_-5295659322036931813Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>></span><span class="m_-5295659322036931813Apple-converted-space"> </span>wro<wbr>te:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, all<br><br> 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)<br><br>while met some error in Mac OS 10.11.5 (El Captain). The error message were listed below :<br><br><br> fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function<br><br>fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 2938 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br><br><br>fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 4027 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br><br><br>fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 127 in file /Users/linx/Data/CMIP5_SIC/sic<wbr>/esmf_regrid_6_sic.ncl<br><br><br> <span class="m_-5295659322036931813Apple-converted-space"> </span>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<br><br>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<br><br>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.)<br><br><br>Thank<br><br><br>LIN<br><br><br><br>______________________________<wbr>_________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a></blockquote></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div>