[ncl-talk] Question on regridding PATMOS-x data

Wang Xinyue wang.xinyue.q6 at dc.tohoku.ac.jp
Mon Mar 5 00:20:57 MST 2018


Dear Mary,

Thanks for your reply!

The output is as follows:

XWs-iMac:~ wangxinyue$ which ncl
/Users/wangxinyue/ncl-6.4.0/bin/ncl
XWs-iMac:~ wangxinyue$ ncl -V
6.4.0
XWs-iMac:~ wangxinyue$ env | grep NCARG
NCARG_ROOT=/Users/wangxinyue/ncl-6.4.0
XWs-iMac:~ wangxinyue$ which ESMF_RegridWeightGen
/Users/wangxinyue/ncl-6.4.0/bin/ESMF_RegridWeightGen
XWs-iMac:~ wangxinyue$ ls -l $NCARG_ROOT/bin/​ESMF_RegridWeightGen
ls: /Users/wangxinyue/ncl-6.4.0/bin/​ESMF_RegridWeightGen: No such file or directory

Any solutions for this problem? Thanks.

Best regards,
Xinyue

> On Mar 3, 2018, at 7:48, Mary Haley <haley at ucar.edu> wrote:
> 
> Dear Xinyue,
> 
> The "ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen executable."​ error indicates that for some reason, it is not seeing the "ESMF_RegridWeightGen" executable in $NCARG_ROOT/bin.
> 
> ​There could be a few reasons for this; here are two:
> 
> 1. $NCARG_ROOT/bin is not part of your PATH environment variable
> 
> 2. $NCARG_ROOT/bin/​ESMF_RegridWeightGen doesn't have execute permissions
> 
> 
> You mentioned that the regridding script worked with other data files. When you ran the script that doesn't work, are you by any chance running it on a different system or under a different environment somehow? 
> 
> Before you run the "bad" script, can you type the following to see if it gives you any insight to the problem:
> 
> which ncl
> ​ncl -V
> env | grep NCARG
> which ESMF_RegridWeightGen
> ls -l $NCARG_ROOT/bin/​ESMF_RegridWeightGen
> 
> You can email the input from the above command back to ncl-talk and I'll have a look.
> 
> Thanks,
> 
> --Mary
> 
>> 
> On Thu, Mar 1, 2018 at 8:56 AM, Wang Xinyue <wang.xinyue.q6 at dc.tohoku.ac.jp <mailto:wang.xinyue.q6 at dc.tohoku.ac.jp>> wrote:
> Hi there,
> 
> I would like to regrid the original PATMOS-x data (1800,3600), which has 0.1*0.1 resolution, to lower resolution 1*1. 
> However, after trying several example scripts in Regridding and ESMF Regridding, I still cannot get the result I want, although these command lines seem to work well on other climate datasets like CERES (180,360).
> 
> When using ESMF_regrid function (The script is in the attachment), I got the error message like this:
> 
> (0)	ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen executable.
> 
> Then I checked with: ls $NCARG_ROOT/bin/ESMF_RegridWeightGen, and found it correctly installed. So what could be causing that error?
> 
> 
> When I try the example script regrid_1.ncl <https://www.ncl.ucar.edu/Applications/Scripts/regrid_1.ncl> with  linint2 <https://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml> function in https://www.ncl.ucar.edu/Applications/regrid.shtml <https://www.ncl.ucar.edu/Applications/regrid.shtml>, there is no error message, but the output data is weird and cannot be plotted.
> 
> The version of NCL is 6.4.0, running in Mac OS.
> 
> Any one met with the same problem when regridding PATMOS-x data? And how did you solve it? Any help would be appreciated.
> 
> 
> Thanks,
> Xinyue
> 
> 
>  
> 
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180305/94e2a0cf/attachment.html>


More information about the ncl-talk mailing list