[ncl-talk] ESMF Regridding Help

HAVENER, KEVIN F GS-12 USAF AFWA 14 WS/WXED kevin.havener at us.af.mil
Tue Aug 19 07:46:25 MDT 2014


I am attempting to use ESMF_regrid to regrid some data on a 7x181x360 to a
7x180x360 grid.  Not sure if ESMF_regrid is the most sane way to do this but
it is the way I came up with.  The attached script documents my attempts to
modify a template from the ESMF_regrid section of the website.

Unlike all the sample scripts, I do not wish to plot the data, but merely
reformat it so I can perform calculations against an existing dataset.  I
think I've just about got it, except I can't get it to write out the data in
a new file, getting this error:

   file_ext_q: <Undefined>
   fatal:["FileSupport.c":4017]:_NclCreateFile: Can not open file:
<regrid.nc> properly.

However the script does complete and the ending printVarSummary seems
reasonable.

If anyone on the list who is familiar with ESMF_regrid would take a look at
the attached script (my comments are generally marked by ";;;") and tell me
where I've gone wrong, I'd appreciate it.   I admit I had a hard time
following the documentation for writing out a file in general, without the
added regridding complexity.

Thank you,
Kevin Havener
-------------- next part --------------
A non-text attachment was scrubbed...
Name: esmf_regrid.ncl
Type: application/octet-stream
Size: 9286 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140819/948b49a4/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6794 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140819/948b49a4/attachment.bin 


More information about the ncl-talk mailing list