Giter Site home page Giter Site logo

skypatrol's People

Contributors

danhey avatar darthoctopus avatar gonzodeveloper avatar tjayasinghe avatar wintergreeen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

skypatrol's Issues

random_sample is not random in sky position

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

Photometry for asteroids

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!

ASAS-SN data is differ from web version data.

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 ?

ValueError from SkyPatrolClient.query_list() with gaia_id

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

username and password??

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

Downloading light curves crashes if run inside multiprocessing environment

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!

error on downloading curve

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)

error with latest version module 'numpy' has no attribute 'asscalar'

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.