I was trying to generate light curves from recent LSST alerts using Lasair. I was able to create SQL queries and successfully download the desired object tables using the Lasair API within a Python framework.
However, when I attempt to download the individual light curves for these objects using Lasair lightcurves module, I encounter the following error:
I checked several of these objects individually on the Lasair web portal, and they do appear to have light curves available. I have also checked with different network connections and found the same issue.
Could you please let me know what might be causing this issue, or if there is something I might be missing in the API request?
As far as I know the Lasair API does not have a lightcurves end point, but I might be wrong.
If you want to grab lightcurves through the API you can do it following recepies on the on the lasair-example github repo on lsst:uk or if you want an astronomer made tutorial I have a verbose version that shows you how to grab the object information and make lightcurves of all kinds (difference, forced, in flux and mag): lasair_user_tutorials/API_recipes.ipynb at main · LasairVRAs/lasair_user_tutorials · GitHub
I use pandas a lot so that’s what in my recipes but if you like astropy tables it should work essentially the same as they have very similar syntax
Lasair ZTF did have a lightcurves end point in the past, but it has been deprecated for several versions as it effectively duplicates the function of object. Lasair LSST has never had it.