-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query SOAR Orbit metadata and Query by Solar Distance using AU #134
Comments
Thanks for opening this issue. As far as I understand, from sunpy-soar point of view this could be 2 functionalities:
Am I correct? Also, for searching by Sun distance, can't we just search by |
Hi @ebuchlin - thanks for the comment. Sorry I could not meet you in person at the SOWG. I was connected for a while today. Yes, that could be two possible functionalities. I guess anything else that you might want to use the data in the orbit file as well. I'm not an expert on that ;-) For the column Also this column is in meters not AU although I suppose it can be converted. Finally, can we really trust these values are accurate. As we have seen for example with SOOP information and other metadata quite often the information is incorrect and there is no way to check it easily at our end. Using doQueryFilteredByDistance hides all this complexity and lets you search for any type/level of file by solar distance accurately, as internally it uses ranges of time derived from the orbit file. So no dependency on metadata inside the FITS (apart from start/end time which is in the filename). begin/end time is indeed indexed as well. It is almost exactly the same endpoint as doQuery, just with the doQueryFilteredByDistance and DISTANCE parameter - so hopefully quite intuitive to use if you have already used the other one. I hope that helps answer any doubts Many Thanks |
Thanks for the explanation. Still a question: can such API endpoints be used directly with astroquery or PyVO? It seems that these packages assume I am not sure I fully understand TAP 1.0 but it says "All requests to execute (/async or /sync) a query using a query language must include REQUEST=doQuery and must include the LANG parameter." On the other hand TAP 1.1 says that "REQUEST=doQuery" is "obsolete", so I am bit lost. Is the TAP version of the ESA service specified somewhere, and is |
Hi @ebuchlin - let me have a look into it a bit. Its a good question |
Hi @ebuchlin - sorry for the delay. I'm afraid I can't tell you about the subtle differences in the different versions of TAP. I know that ESA TAP services are fully TAP compliant and SOAR is implementing TAP 1.1 What I can also say is that our TAP services such as SOAR are using TAP+ which is the ESAC Space Data Centre (ESDC: https://www.cosmos.esa.int/web/esdc/) extension of the Table Access Protocol. TAP+ is fully compatible with TAP specification. TAP+ adds more capabilities like authenticated access and persistent user storage area and in this case you could consider REQUEST=doQueryFilteredByDistance as an extension to the standard TAP. I was playing a bit:
It seems possible override the REQUEST parameter. What did not work was adding a new DISTANCE parameter, but maybe one of the python gurus can help out there. I hope that helps. Perhaps in the future we could consider making this feature available somehow via the standard doQuery metadata request Thanks |
Describe the feature
Recently the solar orbiter CDF orbit file has been ingested into the SOAR archive and is available as a standard file for download. Information can be found at:
However, perhaps more interestingly the contents of the file has also been ingested into a timeseries database we have, and is available via the TAP interface.
For example to fetch hcentric distance information:
To fetch everything for vector type variables with shape 3 e.g: hci_pos, hci_vel, hee_pos:
This is the raw data contained within the orbit CDF. This opens the possibility to search for SOAR metadata directly using Solar Distance and also the possibility to download files using solar distance. Internally we derive the time intervals from the AU distances supplied.
For example:
TAP Metadata request for MAG Level 2 files measured below 0.5 AU
For direct data download:
TAP request for MAG Level 2 files measured below 0.5 AU (CAREFUL -returns 18/19GB tar for anonymous user)
Asynchronous versions of these requests also work e.g
It could be nice to expose some of this functionality from the soar-sunpy package
Proposed solution
Consider exposing some of this functionality via the soar-sunpy package.
The text was updated successfully, but these errors were encountered: