[gradsusr] Subsetting a NetCDF File
Arlindo da Silva
dasilva at alum.mit.edu
Wed Apr 18 21:18:39 EDT 2012
On Sat, Apr 14, 2012 at 5:27 PM, Mark Hess <mhess at oceani.com> wrote:
> **
> Excellent thank you. Is there any way to convert the lon from a 0-360
> grid to world/geographic format 180 to -180 in this process?
>
>
Yes, but this will require some "regridding" using the re() function. If
you choose your longitude points carefully, the interpolation errors will
be round-off. For example, if your original grid has longitudes: 0, 1, ...,
358, 359 (say, 1 degree), choose your destination grid to be: -180, -179,
..., 178, 179; specify the latitudes to be the same as the original grid.
Since the destination grid has the same gridpoints as the final grid (just
a different order), the interpolation errors will be negligible.
Read the REGRIDDING setion of the lats4d manual page.
Arlindo
--
Arlindo da Silva
*dasilva at alum.mit.edu*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120418/07fc1e7b/attachment-0003.html
More information about the gradsusr
mailing list