Is there a way to normalize the X- and Y-coordinates in a grid?
I know about grdmaths NORM, that deals with normalizing the Z-values.
grdmath/Symbols mentions XNORM and YNORM, but I don’t know if, and how, I can use those.
Is there a way to normalize the X- and Y-coordinates in a grid?
I know about grdmaths NORM, that deals with normalizing the Z-values.
grdmath/Symbols mentions XNORM and YNORM, but I don’t know if, and how, I can use those.
grdedit -R0/1/0/1? like
gmt grdedit relief.nc -R0/1/0/1 -Grelief-normalized.nc
gmt grdinfo relief-normalized.nc
relief-normalized.nc: Title:
relief-normalized.nc: Command:
relief-normalized.nc: Remark:
relief-normalized.nc: Gridline node registration used [Geographic grid]
relief-normalized.nc: Grid file format: nf = GMT netCDF format (32-bit float), CF-1.7
relief-normalized.nc: x_min: 0 x_max: 1 x_inc: 0.000680272108844 name: longitude n_columns: 1471
relief-normalized.nc: y_min: 0 y_max: 1 y_inc: 0.000546448087432 name: latitude n_rows: 1831
relief-normalized.nc: v_min: 4055 v_max: 5821 name: z
relief-normalized.nc: scale_factor: 1 add_offset: 0
relief-normalized.nc: format: netCDF-4 chunk_size: 134,131 shuffle: on deflation_level: 3
relief-normalized.nc: Default CPT: geo
-R0/1/0/1 can be -R-1/1/-1/1 or whatever.
@mkononets, thank you so much. Looks like the thing I want.