Hello everyone, I am having trouble replacing Nan’s in a grid with 0:
region=-85/-68/-47.5/7
gmt begin
gmt grdfill slip_cut_23.grd -Ac0 -Gslip23.grd -R${region}
gmt end
I obtained segmentation fault (core dumped), the only case I could avoid the error reducing the region, but I need it for the region in the variable.
here is the grdinfo on the grid:
slip_cut_23.grd: Title: Produced by grdcut
slip_cut_23.grd: Command: grdcut slip.grd -Gslip_cut_23.grd -Fpoligono.txt -R-85/-68/-47.5/7 -Ve
slip_cut_23.grd: Remark:
slip_cut_23.grd: Gridline node registration used [Cartesian grid]
slip_cut_23.grd: Grid file format: nf = GMT netCDF format (32-bit float), CF-1.7
slip_cut_23.grd: x_min: -85 x_max: -68 x_inc: 0.05 name: x n_columns: 341
slip_cut_23.grd: y_min: -47.5 y_max: 7 y_inc: 0.05 name: y n_rows: 1091
slip_cut_23.grd: v_min: 0 v_max: 0.991496264935 name: z
slip_cut_23.grd: scale_factor: 1 add_offset: 0
slip_cut_23.grd: format: netCDF-4 chunk_size: 171,137 shuffle: on deflation_level: 3
Regards