[ncl-talk] Regridding 2d data
Mary Haley
haley at ucar.edu
Fri Aug 14 15:44:47 MDT 2015
Tabish,
In order to regrid something from one resolution to another, you need to
provide some kind of coordinate system.
Also, it depends on the type of values that you are regridding, what method
to use.
You might want to look at "linint2", which does basic bilinear
interpolation:
http://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml
http://www.ncl.ucar.edu/Applications/regrid.shtml
Even though the examples are showing the results over a map, you can still
do the regridding using other coordinates. You just want to plot it using
gsn_csm_contour, instead of gsn_csm_contour_map.
You might also look at "area_hi2lores":
http://www.ncl.ucar.edu/Document/Functions/Built-in/area_hi2lores.shtml
--Mary
On Thu, Aug 13, 2015 at 5:44 AM, Tabish Ansari <tabishumaransari at gmail.com>
wrote:
> Hi
>
> I have a 2d matrix of 531x636 size. I want to regrid it to a coarser
> resolution- 60x70 size. This has nothing to do with lat/lon at present.
> Once the desired output is achieved, I can assign the coordinate array
> separately.
>
> How can I do it?
>
> Regridding functions in NCL seem to overlay my regridded data onto the
> World Map with lots of negative values. And there are no negative or zero
> values in the original data. So, surely there is something wrong with these
> functions.
>
> Please Help!
>
> kind regards
>
> Tabish
>
>
> _______________________________________________
> 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/20150814/a7b0369e/attachment.html
More information about the ncl-talk
mailing list