Extract 1 latitude with grdcut


Related to my previous question, I’m trying to extract a sub-cube from a large netcdf file :
z(time,lon,lat) -> z[day_id1 : day_id2 , lon_idW : lon_idE , lat_idS : lat_idN].
Then for apply grdfft for each latitude individually fft [ z(time,lon) ]

I can’t seem to use grdcut properly on a 3D grid… any idea ?

grdcut like most grd* tools can at most extract a single layer, not a sub-cube.
See what grdinterpolate can do, at least it can extract multiple layers.

Will do, thanks