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
707 stars 400 forks source link

Add support for Irsa query for ZTF lightcurves #1438

Open ebellm opened 5 years ago

ebellm commented 5 years ago

The existing Irsa module can query the public ZTF catalog:

from astroquery.irsa import Irsa
from astropy.coordinates import SkyCoord
sc = SkyCoord('01:53:49.67 +20:20:47.7',unit=(u.hourangle,u.deg))
Irsa.query_region(coordinates=sc,catalog='ztf_objects_dr1', radius=1.5*u.arcsec)

However, the returned result is a short list of matching objects, and there is no way to retrieve the underlying photometry. (This is in contrast to the behavior when issuing the same query with catalog='ptf_lightcurves').

There is an API for the lightcurve service which could be used to enable direct queries for ZTF lightcurves.

JSee98 commented 5 years ago

Well, this is because of the catalogue available for the API used by astroquery. The catalogue only provides the ZTF objects data table, however, for the PTF, the lightcurves data can be requested. I've started working on a fix for this which will allow you to get the ZTF light curve data as well, will update you ASAP.

Astrosavi commented 2 years ago

Hi, was this eventually addressed?