astropy / astroquery

Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
http://astroquery.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
698 stars 397 forks source link

Update to use new splata-slap rest backend #2819

Open cobrien578 opened 1 year ago

cobrien578 commented 1 year ago

The splata-slap rest server has been updated to include the advanced and basic searches for splat (there is a new angular front end as well that has not been deployed yet). The php front end of splat is end of life and will be replaced by the new front end near the end of 2023. The staging splata-rest can be found at:https://almahorizonstaging.cv.nrao.edu/splata-slap/advanced/false and /basic/false here is an exaple curl for the advanced backend:

curl -v -H "Content-Type: application/json" -X POST -d '{"body": "{\"searchSpecies\":\"\",\"speciesSelectBox\":[\"1369\"],\"dataVersion\":\"v3.0\",\"userInputFrequenciesFrom\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"userInputFrequenciesTo\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"userInputFrequenciesUnit\":\"MHz\",\"frequencyRedshift\":0,\"energyFrom\":0,\"energyTo\":0,\"energyRangeType\":\"el_cm-1\",\"lineIntensity\":\"None\",\"lineIntensityLowerLimit\":0,\"excludeAtmosSpecies\":false,\"excludePotentialInterstellarSpecies\":false,\"excludeProbableInterstellarSpecies\":false,\"excludeKnownASTSpecies\":false,\"showOnlyAstronomicallyObservedTransitions\":false,\"showOnlyNRAORecommendedFrequencies\":false,\"lineListDisplayJPL\":true,\"lineListDisplayCDMS\":true,\"lineListDisplayLovasNIST\":true,\"lineListDisplaySLAIM\":true,\"lineListDisplayToyaMA\":true,\"lineListDisplayOSU\":true,\"lineListDisplayRecombination\":true,\"lineListDisplayTopModel\":true,\"lineListDisplayRFI\":true,\"lineStrengthDisplayCDMSJPL\":true,\"lineStrengthDisplaySijMu2\":false,\"lineStrengthDisplaySij\":false,\"lineStrengthDisplayAij\":false,\"lineStrengthDisplayLovasAST\":true,\"energyLevelOne\":true,\"energyLevelTwo\":false,\"energyLevelThree\":false,\"energyLevelFour\":false,\"displayObservedTransitions\":false,\"displayG358MaserTransitions\":false,\"displayObservationReference\":false,\"displayObservationSource\":false,\"displayTelescopeLovasNIST\":false,\"frequencyErrorLimit\":false,\"displayHFSIntensity\":false,\"displayUnresolvedQuantumNumbers\":false,\"displayUpperStateDegeneracy\":false,\"displayMoleculeTag\":false,\"displayQuantumNumberCode\":false,\"displayLabRef\":false,\"displayOrderedFrequencyOnly\":false,\"displayNRAORecommendedFrequencies\":false,\"displayUniqueSpeciesTag\":false,\"displayUniqueLineIDNumber\":false,\"exportType\":\"current\",\"exportDelimiter\":\"tab\",\"exportLimit\":\"allRecords\",\"exportStart\":1,\"exportStop\":250}"}' https://almahorizonstaging.cv.nrao.edu/splata-slap/advanceded/false/

keflavich commented 1 year ago

Thanks @cobrien578 . Do you have a specific timeline for phasing out the php frontend?

The new API looks much nicer. Is it documented more than the example you've just given?

Also, I don't seem to be able to access the URLs you listed. I'm guessing the almahorizonstaging URLs are only for internal use right now? Would it be possible for us (astroquery developers) to get access to those test domains?