-
Notifications
You must be signed in to change notification settings - Fork 4
Description
api_url is currently hard-coded as https://api.helioviewer.org/v2/ in hvpy.config.Settings, although the use of pydantic.Field allows this to be overriden by environment variable HELIOVIEWER_API_URL.
Other servers, such as the MEDOC/IAS server, can be available when the GSFC server is not available or not up-to-date with the latest data, or can have additional datasets (e.g. Solar Orbiter at ESA). They should also be usable with hvpy.
For the user, it is more convenient to have the possibility to choose the server on the fly, rather than setting an environment variable (which is undocumented). This was possible with sunpy.net.helioviewer as the server was a parameter of HelioviewerClient(), but it doesn't appear that it is currently possible with hvpy.