Getting the sky plot programmatically

105 views
Skip to first unread message

Salvatore Iovene

unread,
Oct 25, 2013, 4:19:15 PM10/25/13
to astro...@googlegroups.com
Hi,
I'm trying to download the sky plot image with zoom1, but I realize that its ID in the URL is nothing I have... It's not the job id, not the submission id, not the image id.

Is there any way that I could get that programmatically?

Thank you in advance!
Salvatore.

Dustin Lang

unread,
Oct 25, 2013, 8:56:30 PM10/25/13
to astro...@googlegroups.com
That's the "calibration" id... hmm, it looks like the API currently has no way to get the calibration ID from job id.

I just added a field to the submission status results: a map from job id to calibration id, but it's only on the "staging" testing area:

eg,

http://staging.astrometry.net/api/submissions/80979

See the
"job_calibrations": [[109957, 64732]]

job_calibration is a list, one for each job with a calibration (a successful solve), mapping:
  [job id, calib id]

If you could test the staging site, I would appreciate it.

Or does this not do what you need?

thanks,
--dustin



Salvatore Iovene

unread,
Oct 26, 2013, 1:35:16 AM10/26/13
to Dustin Lang, astro...@googlegroups.com
Thank you Dustin,
I'll try that out.

Two questions:

1. If I'm only submitting one image at the time, that list will only
contain one list, right?
2. Are the sky plots expected to be ready right away when the API says
that the job is complete?

Thank you!
Salvatore.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "astrometry" group.
> Visit this group at http://groups.google.com/group/astrometry.



--
Salvatore Iovene

Personal website: http://iovene.com/
Founder of AstroBin: http://astrobin.com/

Salvatore Iovene

unread,
Oct 26, 2013, 4:07:17 AM10/26/13
to astro...@googlegroups.com, Dustin Lang, salv...@iovene.com
PS: it worked great! Any chance to get this merged to the main server by next weekend?
That's when I plan to roll out the AstroBin update that uses Astrometry APIs.
















Thanks,
Salvatore.

Dustin Lang

unread,
Oct 26, 2013, 8:35:02 AM10/26/13
to astro...@googlegroups.com, Dustin Lang, salv...@iovene.com

1. If I'm only submitting one image at the time, that list will only
contain one list, right?

Usually, yes, it will just have one pair.  If something strange happens on the server side there could be more.


2. Are the sky plots expected to be ready right away when the API says
that the job is complete?


Yes, the sky plots are generated as needed, so they will be ready as soon as the job finishes.

cheers,
--dustin

Salvatore Iovene

unread,
Oct 29, 2013, 3:45:11 AM10/29/13
to astro...@googlegroups.com, Dustin Lang, salv...@iovene.com
Hi Dustin,
can you comment whether this will be merged to nova.astrometry.net? It would be great for me to have it by Saturday, because I'm launching the site update that uses astrometry API :)

Dustin Lang

unread,
Oct 29, 2013, 8:27:52 AM10/29/13
to astro...@googlegroups.com, Dustin Lang, salv...@iovene.com
I just merged it.  Enjoy!

Reply all
Reply to author
Forward
0 new messages