Open ebuchlin opened 1 year ago
Can you see if hvpy.set_api_url
works?
It works, thanks! I should have looked until the end of config.py
, sorry. I have now seen the reference documentation for set_api_url()
, I wonder if there could be something about it in the User guide.
Yeah there are a lot of improvements to be made for the user guide, this is one of them.
api_url
is currently hard-coded ashttps://api.helioviewer.org/v2/
inhvpy.config.Settings
, although the use ofpydantic.Field
allows this to be overriden by environment variableHELIOVIEWER_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 ofHelioviewerClient()
, but it doesn't appear that it is currently possible withhvpy
.See also @wafels 's comment on #52.