I was wondering if there was good DSO database API out there for python so I could fetch things like a distance away from Earth or radius etc. I tried looking however couldn't find the exact thing I was looking for.

  • 4
    $\begingroup$ To avoid suggesting something you've already rejected, it would be useful to know what you've tried so far and why they didn't fit what you were looking for. $\endgroup$ – antispinwards May 9 at 19:59
  • 1
    $\begingroup$ Right now, I haven't tried any APIs in code mainly because I can't actually find one with the information I need. Im mainly looking for one that can give information such as RA, DEC, angular size, distance from Earth, mainly those. However I could use SIMBAD for the RA and DEC. So currently, anything is open $\endgroup$ – MIEPIC May 9 at 20:05

Given you haven't specified which kind of DSOs you want or fully given the list of properties, it's difficult to recommend a specific source.

I would suggest searching for catalogues on VizieR, which allows you to search with keywords and/or various predefined categories. Bear in mind that you may need to use several different catalogues for the various types of DSOs (galaxies, globular clusters, supernova remnants, etc.) and not all of them will have all of the data you need. In particular, distances are not present in many catalogues. In the case of galaxies, you may need to convert from redshift or recession velocity depending on the source you're using. The VizieR results indicate sky coverage of the catalogue in the oval-shaped icons, which will give you some idea of which are all-sky catalogues and which are surveys of a small region of the sky.

Once you've found a catalogue on VizieR that contains the information, you can use astroquery to retrieve the data (details of the VizieR query interface), which imports the data in a form suitable for processing using astropy.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.