Re: Dealing with an irregularly spaced netCDF grid...?
Paul Wessel <[email protected]> Sun, 25 May 2014 14:51:40 -0600
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jose, Because GMT does not support variable grid spacing you will need to dump out x,y,z triplets and regrid your data onto an equidistant lattice. Depending on your region you could use surface or nearneighbor to do that, selecting as increment the smallest one you have in the original data. Paul Sent from my iPad > On May 24, 2014, at 11:43 PM, Jose Borrero <[email protected]> wrote: > > > > Hey All, > > I have a netCDF grid that has latitudes at irregular intervals. So when I grid image it, i get the warning that it's using a constant step size. It makes a plot, but has the latitudes in the wrong place (see attached file, 40 south is not really below New Zealand!). > > I tried grid2xyz thinking it would write out the exact (X,Y) values from the netCDF file (then re-grid), but those are written with constant spacing as well. > > What can i do to deal with that within GMT? Am I missing something obvious? > > Suppose I'd need to ncdump it to a formatted text file somehow, then re-grid in GMT. But not sure how to do that. > > I can get the file to plot the right way in MATLAB, but I wanted to give the data the GMT 'look' that I love! > > Thanks... > > -jose > > > > > <01_Central_Chile.png> > > > > > Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to [email protected] Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to [email protected] Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.