asas-sn / skypatrol Goto Github PK
View Code? Open in Web Editor NEWThe ASAS-SN Sky Patrol python client
License: GNU General Public License v3.0
The ASAS-SN Sky Patrol python client
License: GNU General Public License v3.0
Querying a random sample of light curves gives stars back clustered around a certain declination. This could be fixed by reworking the client.query_random to just use a basic ADQL query instead:
SELECT x
FROM catalog
ORDER BY RAND()
LIMIT n
Hello,
I was going through the (nice!) documentation, but I could not find a way to retrieve photometry for asteroids. The table asteroids
has only one column, which is an identifier. What would you suggest? Thanks!
Dear Colleagues,
I am trying to download the light curve of blazars using skypatrol python version. In the web interface (https://asas-sn.osu.edu), we simply provide the name of the object or the coordinates and it returns the data in the format
HJD UT Date Camera Filter FWHM Limit Mag Mag Error Flux (mJy) Flux Error
Can you please tell me how I can download the same data by specifying the coordinates using SkyPatrolClient ?
Recently I have found some errors while trying to pull light curves with gaia_id (which I had no issue before, same ID). The error is:
"ValueError: 7 columns passed, passed data had 8 columns"
and traces back to /pyassasn/client.py line 308
"lcs = [curve for block in result_blocks for curve in block.get()]"
If "download = False" the query runs without error and the target info is returned. It only happends for a handful of targets, I leave one example gaia_id that does not work for me: 5856351499141796736.
Thanks,
Darío
Hi, I am a grad student at U of Toronto. I am wondering where can I register an account to download asas-sn lightcurves because currently I am getting authentication error when running lcs = client.adql_query(query, mode="download_curves", threads=2)
in the example from README
Hi,
The functions that download the lightcurves (i.e. cone_search) are crashing if run from inside multiprocessing environment, i.e. process pool. Originally encountered it while trying to use the library from inside Celery, but it also manifests in simple examples like that:
from pyasassn.client import SkyPatrolClient
import multiprocessing
def fn(x):
client = SkyPatrolClient()
lcs = client.cone_search(ra_deg=296.02191444, dec_deg=23.44665476, radius=10/3600, catalog='master_list', download=True, threads=1)
with multiprocessing.Pool(processes=1) as pool:
pool.map(fn, [1])
Error message is AssertionError: daemonic processes are not allowed to have children
, coming from inside _get_curves()
, and the reason is what there another multiprocessing.Pool
is being created, even if threads=1
is specified. And that is not seemingly supported by multiprocessing module.
It would be extremely nice if a separate code path, not involving multiprocessing, was used there when threads=1
.
Thanks!
Hi, I have an error when try to downlaod the light curve:
File "D:\WPy64-3850\python-3.8.5.amd64\lib\site-packages\pyasassn\client.py", line 456, in _get_lightcurve_chunk
count = len(data[id_col].unique())
TypeError: 'NoneType' object is not subscriptable
this is my simple code:
from pyasassn.client import SkyPatrolClient
client = SkyPatrolClient()
gaiaid = 424422620878989824
query= "SELECT asas_sn_id, ra_deg, dec_deg, gaia_id FROM stellar_main WHERE gaia_id ="+ str(gaiaid)
lcs = client.adql_query(query,download=True, threads=8)
I have this new error that block the program:
module 'numpy' has no attribute 'asscalar'
The code sample is:
from pyasassn.client import SkyPatrolClient
client = SkyPatrolClient()
# gaiaid = 4611694161685666944
gaiaid = 424422620878989824
query= "SELECT asas_sn_id, ra_deg, dec_deg, gaia_id FROM stellar_main WHERE gaia_id ="+ str(gaiaid)
lcs = client.adql_query(query,download=False, threads=1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.