-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Add VAMDC interface #618
Comments
As a step along the way, and possibly the only one I'm interested in implementing, I'd like to be able to parse CDMS results into astropy tables. Here is an example query:
So the first priority is implementing a CDMS table parser. @vilhelmp, I think you might also be interested in this? |
Yes, this would be nice indeed. |
After working a bit with Holger Muller (guy behind http://www.astro.uni-koeln.de/cdms), I realize that it might also be good to have an interface to the "normal" cgi-bin POST interface. If they update any files in the database, it is through the web interface (i.e. http://www.astro.uni-koeln.de/cgi-bin/cdmssearch) which all the updates are accessible first. The VAMDC comes later, they have to do some manual updating for that to happen. Search: I've been trying to figure out the relevant POST request (using Live HTTP headers Chrome plugin). Result tables: The results are in fixed-width tables with the same format as the JPL molecular line catalog (http://spec.jpl.nasa.gov/ftp/pub/catalog/README) where the format is given as a Fortran (fixed width) format specifier. For reading the tables, the obvious go to one would be Astropy tables with format='fixed_width_no_header' (see http://stackoverflow.com/questions/35018200/reading-table-data-card-images-with-format-specifier-given-into-python?noredirect=1#comment57809951_35018200). (an alternative is the old package FortranFormat, but adding another required package...) It could be good idea to write a short translation tool that would take a Fortran format specifier e.g. "(F13.4,F8.4, F8.4, I2,F10.4, I3, I7, I4, 6I2, 6I2)" and translate that into Astropy Table fixed width reader "col_starts" and "dtype" input. Anyway, just some thoughts on this. |
👍 @vilhelmp, this is the best approach for astroquery, at least until we integrate |
The shortest way I figured out to get the CDMS text results into Astropy Table format is the following:
and then proceed to parse the units
Here I have to keep track of the units a bit more than usual, is there a way to get it to just use the unit that is calculated? (i.e. |
Closing this one as an experimental VAMDC module has beed added in #658. Please feel free to reopen if you think otherwise. |
Probably only a limited variant to match the splatalogue query tool:
http://portal.vamdc.eu/
The text was updated successfully, but these errors were encountered: