Skip to content

Commit

Permalink
Update spiceinit URL (DOI-USGS#5431)
Browse files Browse the repository at this point in the history
* Update spiceinit URL

* added changelog
  • Loading branch information
amystamile-usgs authored and acpaquette committed Apr 18, 2024
1 parent ad832ec commit 7f30642
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ release.

### Changed
- Disabled option to use web=true when running spiceinit with HRSC images. [#5223](https://github.com/DOI-USGS/ISIS3/issues/5223)
- 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)

## [8.0.2] - 2023-12-05
### Changed
Expand Down
5 changes: 5 additions & 0 deletions isis/src/base/apps/spiceinit/spiceinit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,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");
Expand Down
2 changes: 1 addition & 1 deletion isis/src/base/apps/spiceinit/spiceinit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@
<description>
This is where a request for SPICE data is sent. The default is the USGS SPICE server.
</description>
<default><item>https://services.isis.astrogeology.usgs.gov/cgi-bin/spiceinit.cgi</item></default>
<default><item>https://astrogeology.usgs.gov/apis/ale/v0.9.1/spiceserver/</item></default>
</parameter>
<parameter name="PORT">
<type>integer</type>
Expand Down

0 comments on commit 7f30642

Please sign in to comment.