--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/9ab5620f-fcd4-4265-ba39-5ec29b6eaae7o%40googlegroups.com.
subprocess.call() returns the return code of the program (0), not the text printed by the program.If you want to convert other pixel locations in the image, not the center, then you should read the WCS file that is created, eg with astropy -- wcs_pix2worldcheers,--dustin
On Tue, Jun 23, 2020 at 10:09 AM Fede <federica....@gmail.com> wrote:
--
Hi there, I'm using python to recover the coordinates of an image with nova.astrometry offline.The results are shown in the picture.How can I save the values of RA and DEC in a tdms file?I tried withradec = subprocess.call(...)with open("RADEC.tdms","w") as radecw:radecsave = radec['Field center']radecw.write(radecsave)but it doesn't work. It returns 'int' object is not subscriptable.Moreover, how can I solve RA and DEC for other point in the picture? As an asteroid or a satellite not in the center of the image?Thank you.
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/19c6e545-fb43-4363-bf77-cf7f5f70200do%40googlegroups.com.
subprocess.call() returns the return code of the program (0), not the text printed by the program.If you want to convert other pixel locations in the image, not the center, then you should read the WCS file that is created, eg with astropy -- wcs_pix2worldcheers,--dustin
On Tue, Jun 23, 2020 at 10:09 AM Fede <federica....@gmail.com> wrote:
--
Hi there, I'm using python to recover the coordinates of an image with nova.astrometry offline.The results are shown in the picture.How can I save the values of RA and DEC in a tdms file?I tried withradec = subprocess.call(...)with open("RADEC.tdms","w") as radecw:radecsave = radec['Field center']radecw.write(radecsave)but it doesn't work. It returns 'int' object is not subscriptable.Moreover, how can I solve RA and DEC for other point in the picture? As an asteroid or a satellite not in the center of the image?Thank you.
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astro...@googlegroups.com.
Hi Dustin,I tried to use wcs_pix2world as you suggested, but the output is exactly the pixel I'm given as input...
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/6fdb5b0b-d46f-4df7-b91b-61e3f96dada5o%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/CA%2BFzHBDz81VnitGbTON7CN4MrRSTwRwcrJKOL0pHy6WCSp%3DGbw%40mail.gmail.com.
from astropy import wcs
from astropy.io import fits
hdu_list = fits.open('file')
hdu = hdu_list[0].header
w = wcs.WCS(hdu,hdu_list)
coordRA,coordDEC = w.wcs_pix2world(x,y,1)
print(coordRA,coordDEC)You're opening the .wcs file to create the astropy WCS object?Maybe send your code and example WCS file you're using.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/6fdb5b0b-d46f-4df7-b91b-61e3f96dada5o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/b1182044-b549-4128-b298-ac31136e9b03o%40googlegroups.com.
It is a FITS file, as 'staring.FITS'
--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/71fc66ec-feac-4986-893a-8b6d05d00fe4o%40googlegroups.com.