You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure intensity subset matches tiled region if given (#4130)
* Make sure intensity subset matches tiled region if given
If an intensity grid is given, and a remote earth_relief grid is given, then when the intensity grid is read in and we specify the subregion wesn, make sure this region matches the possibly adjusted tile_wesn due to rounding in gmt_remote.c See #4124 for background.
* Update grdimage.c
* Update grdimage.c
Actually, similar problem cased the issue to begin with.
double*region= (gmt_file_is_tiled_list (API, Ctrl->In.file[0], NULL, NULL, NULL)) ? API->tile_wesn : wesn; /* Make sure we get correct dimensions if tiled grids are used */
if (Ctrl->D.active) { /* Trust the info from gdal to make it more stable against pixel vs grid registration troubles */
@@ -932,11 +933,11 @@ EXTERN_MSC int GMT_grdimage (void *V_API, int mode, void *args) {
932
933
/* If given, get intensity grid or compute intensities (for a constant intensity) */
933
934
934
935
if (use_intensity_grid) { /* Illumination wanted */
935
-
936
+
double*region= (gmt_file_is_tiled_list (API, Ctrl->In.file[0], NULL, NULL, NULL)) ? API->tile_wesn : wesn; /* Subset to pass to GMT_Read_Data if data set is tiled */
936
937
GMT_Report (API, GMT_MSG_INFORMATION, "Allocates memory and read intensity file\n");
937
938
938
939
/* Remember, the illumination header was already read at the start of grdimage */
0 commit comments