From 399f4a307d88a059342f599c09921f40fca0f0d6 Mon Sep 17 00:00:00 2001
From: Amy Stamile <74275278+amystamile-usgs@users.noreply.github.com>
Date: Tue, 19 Mar 2024 08:52:24 -0700
Subject: [PATCH] Update spiceinit URL (#5431)
* Update spiceinit URL
* added changelog
---
CHANGELOG.md | 7 ++++---
isis/src/base/apps/spiceinit/spiceinit.cpp | 5 +++++
isis/src/base/apps/spiceinit/spiceinit.xml | 2 +-
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e6fef1a9d..69271143c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,10 +35,9 @@ release.
## [Unreleased]
-### Added
+### Changed
+- Changed the default spiceinit url to https://astrogeology.usgs.gov/apis/ale/v0.9.1/spiceserver/ and added deprecation warning for use of https://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi url. [#5327](https://github.com/USGS-Astrogeology/ISIS3/issues/5327)
-- CSMCamera can now read and use the body rotation from ALE produced ISDs [#5072](https://github.com/DOI-USGS/ISIS3/pull/5072)
-- CSMSkyMap added to CSMCamera for use with local rover projections in ISIS [#5072](https://github.com/DOI-USGS/ISIS3/pull/5072)
### Fixed
- Fixed noproj bug where some temporary files were not deleted after call to cam2cam. Issue: [#4813](https://github.com/USGS-Astrogeology/ISIS3/issues/4813)
@@ -50,6 +49,8 @@ release.
- Added 8 new functions to the Sensor Utility Library: Slant Distance, Target Center Distance, Right Ascension Declination, Local Solar Time, Line Resolution, Sample Resolution, Pixel Resolution, and Solar Longitude.
- Fixed TrackTool, FindTool, and AdvancedTrackTool not reporting RA and DEC for images targeting the Sky. [#5409](https://github.com/DOI-USGS/ISIS3/pull/5409)
- Added new option in `ctxcal` to use monthly computed flatfield files for "Frown" removal in CTX images. [#5338](https://github.com/DOI-USGS/ISIS3/pull/5338)
+- CSMCamera can now read and use the body rotation from ALE produced ISDs [#5072](https://github.com/DOI-USGS/ISIS3/pull/5072)
+- CSMSkyMap added to CSMCamera for use with local rover projections in ISIS [#5072](https://github.com/DOI-USGS/ISIS3/pull/5072)
## [8.1.0] - 2024-01-08
diff --git a/isis/src/base/apps/spiceinit/spiceinit.cpp b/isis/src/base/apps/spiceinit/spiceinit.cpp
index e3b717af8d..cf5c6b7698 100644
--- a/isis/src/base/apps/spiceinit/spiceinit.cpp
+++ b/isis/src/base/apps/spiceinit/spiceinit.cpp
@@ -619,6 +619,11 @@ namespace Isis {
throw IException(IException::User, msg, _FILEINFO_);
}
+ if (ui.GetString("URL") == "https://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi"){
+ QString msg = "USER WARNING: The URL you entered has been deprecated and no longer recommended for use.";
+ std::cerr << msg << std::endl;
+ }
+
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 0971210278..4d3cc2b3df 100644
--- a/isis/src/base/apps/spiceinit/spiceinit.xml
+++ b/isis/src/base/apps/spiceinit/spiceinit.xml
@@ -868,7 +868,7 @@
This is where a request for SPICE data is sent. The default is the USGS SPICE server.
- - https://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi
+ - https://astrogeology.usgs.gov/apis/ale/v0.9.1/spiceserver/
integer