Discussion:
slicing netcdf files
Avi goz
2014-06-05 14:01:56 UTC
Permalink
Hi GMTers

​If I have a 4D field in a netcdf file (time z,x,y), I succeed in slicing
by time & z using the following :

gmt grdimage -R -JX vars.glob.nc?THETA[1,2] ...

but what happens if I wish to slice by time & y ? how do i skip the z, x
indices?

thanks,

Avi

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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Paul Wessel
2014-06-08 03:04:05 UTC
Permalink
See http://gmt.soest.hawaii.edu/doc/latest/GMT_Docs.html#modifiers-for-coards-compliant-netcdf-files
Post by Avi goz
Hi GMTers
gmt grdimage -R -JX vars.glob.nc?THETA[1,2] ...
but what happens if I wish to slice by time & y ? how do i skip the z, x indices?
thanks,
Avi
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Avi goz
2014-06-08 13:53:43 UTC
Permalink
I've read it before, and I read it once again... I don't see an answer for
my question (or perhaps the answer is in the lack of such option?)
Post by Paul Wessel
See
http://gmt.soest.hawaii.edu/doc/latest/GMT_Docs.html#modifiers-for-coards-compliant-netcdf-files
Hi GMTers
​If I have a 4D field in a netcdf file (time z,x,y), I succeed in slicing
gmt grdimage -R -JX vars.glob.nc?THETA[1,2]
<http://vars.glob.nc/?THETA[1,2]> ...
but what happens if I wish to slice by time & y ? how do i skip the z, x indices?
thanks,
Avi
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
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
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Paul Wessel
2014-06-08 19:26:15 UTC
Permalink
Sorry, not using such grids myself. You probably need to use this package to pull out your slice: http://jisao.washington.edu/data/nco/
I've read it before, and I read it once again... I don't see an answer for my question (or perhaps the answer is in the lack of such option?)
See http://gmt.soest.hawaii.edu/doc/latest/GMT_Docs.html#modifiers-for-coards-compliant-netcdf-files
Post by Avi goz
Hi GMTers
gmt grdimage -R -JX vars.glob.nc?THETA[1,2] ...
but what happens if I wish to slice by time & y ? how do i skip the z, x indices?
thanks,
Avi
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 ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Loading...