From 50d5d98086f40d90e338abbe13697f6ecd03db3c Mon Sep 17 00:00:00 2001 From: Amy Stamile <74275278+amystamile-usgs@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:05:26 -0700 Subject: [PATCH] Disable HRSC from spice server (#5270) * Disable HRSC from spice server * added docs * Added test * added changelog --- CHANGELOG.md | 1 + isis/src/base/apps/spiceinit/spiceinit.cpp | 5 ++ isis/src/base/apps/spiceinit/spiceinit.xml | 9 +++ isis/tests/FunctionalTestsSpiceinit.cpp | 82 ++++++++++++++++++++++ 4 files changed, 97 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7d7e1b87..196c61e6d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ release. - Modified tgocassisstitch to optionally allow either a outputprefix or an outputsuffix, both, or neither for naming convention purposes. [#5162](https://github.com/DOI-USGS/ISIS3/pull/5162) - Changed the default PCK load behavior to try and load mission specific PCKs, if that fails we default to the base PCKs [#5335](https://github.com/DOI-USGS/ISIS3/pull/5335) +- Disabled option to use web=true when running spiceinit with HRSC images. [#5223](https://github.com/DOI-USGS/ISIS3/issues/5223) ### Added - Added rclone to run dependencies in meta.yaml [#5183](https://github.com/DOI-USGS/ISIS3/issues/5183) diff --git a/isis/src/base/apps/spiceinit/spiceinit.cpp b/isis/src/base/apps/spiceinit/spiceinit.cpp index 8ff35b9b63..e3b717af8d 100644 --- a/isis/src/base/apps/spiceinit/spiceinit.cpp +++ b/isis/src/base/apps/spiceinit/spiceinit.cpp @@ -614,6 +614,11 @@ namespace Isis { QString instrumentId = labels.findGroup("Instrument", Pvl::Traverse)["InstrumentId"][0]; + if (instrumentId == "HRSC"){ + QString msg = "Spice Server does not support MEX HRSC images. Please rerun spiceinit with local MEX data."; + throw IException(IException::User, msg, _FILEINFO_); + } + QString url = ui.GetString("URL") + "?mission=" + missionName + "&instrument=" + instrumentId; int port = ui.GetInteger("PORT"); diff --git a/isis/src/base/apps/spiceinit/spiceinit.xml b/isis/src/base/apps/spiceinit/spiceinit.xml index 4ebc794c28..0971210278 100644 --- a/isis/src/base/apps/spiceinit/spiceinit.xml +++ b/isis/src/base/apps/spiceinit/spiceinit.xml @@ -102,6 +102,15 @@ "NADIR" options typically have less accuracy than reconstructed and smithed kernels which is why they are disabled by default.
+Issues running HRSC using ISIS SPICE Web Service: + Currently HRSC images cannot be spiceinit'd using ISIS SPICE web services. + This is due to the HRSC camera model relying on cube data to process + line scan times. When using the SPICE server, only the label is returned + causing the camera model to fail initialization. In order to run spiceinit on + HRSC images, download the MEX data locally. See download instructions at + https://github.com/DOI-USGS/ISIS3/blob/dev/README.md#mission-specific-data-downloads. +
+