From 364cedec33cf28dc37135ef4a7661c2b49e6f2a2 Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Tue, 18 Feb 2025 15:54:30 -0300 Subject: [PATCH 1/2] Update grdimage --- src/grdimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grdimage.c b/src/grdimage.c index b78a723c8c4..5c2903a3f54 100644 --- a/src/grdimage.c +++ b/src/grdimage.c @@ -33,7 +33,7 @@ #define THIS_MODULE_LIB "core" #define THIS_MODULE_PURPOSE "Project and plot grids or images" #define THIS_MODULE_KEYS "X},>IA,BJKOPRUVXYfnpt" GMT_OPT("Sc") GMT_ADD_x_OPT /* These are images that GDAL knows how to read for us. */ @@ -193,7 +193,6 @@ static int usage (struct GMTAPI_CTRL *API, int level) { "If the image is plain (e.g., JPG, PNG, GIF) you must also give a corresponding -R."); if (API->external) /* External interface */ GMT_Usage (API, -2, "If -D is used then is instead expected to be an image."); - GMT_Option (API, "J-"); GMT_Message (API, GMT_TIME_NONE, "\n OPTIONAL ARGUMENTS:\n"); if (API->external) /* External interface */ GMT_Usage (API, 1, "\n-A Return a GMT raster image instead of a PostScript plot."); @@ -221,6 +220,7 @@ static int usage (struct GMTAPI_CTRL *API, int level) { GMT_Usage (API, 3, "+b Set background color."); GMT_Usage (API, 3, "+f Set foreground color [Default]."); GMT_Usage (API, 1, "\n-I[||]"); + GMT_Option (API, "J-"); GMT_Usage (API, -2, "Apply directional illumination. Append name of an intensity grid, or " "for a constant intensity (i.e., change the ambient light), just give a scalar. " "To derive intensities from instead, append desired modifiers:"); From f65d7f1fe7b5418133bd06eca703f2fdb1af3113 Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Wed, 19 Feb 2025 08:23:48 -0300 Subject: [PATCH 2/2] Restore J in THIS_MODULE_NEEDS --- src/grdimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grdimage.c b/src/grdimage.c index 5c2903a3f54..35324521cb1 100644 --- a/src/grdimage.c +++ b/src/grdimage.c @@ -33,7 +33,7 @@ #define THIS_MODULE_LIB "core" #define THIS_MODULE_PURPOSE "Project and plot grids or images" #define THIS_MODULE_KEYS "X},>IA,BJKOPRUVXYfnpt" GMT_OPT("Sc") GMT_ADD_x_OPT /* These are images that GDAL knows how to read for us. */