[AstroPy] Confusion about WCS origin

Rahul Patel rahul.patel.1 at stonybrook.edu
Tue Mar 17 21:36:19 EDT 2015


Dear all,

   I am using the WCS package in astropy and ran into some confusion on
what to set the origin. For instance, when transforming from pixel to wcs

world = w.wcs_pix2world(pixcrd, 1)


the doc says to use 0 for origin assuming C and numpy and 1 for fits and
fortran. The above example uses "1" but everything loaded into python is a
numpy array. Any clarification would be useful. Thank you.




*Rahul I. Patel *
-----------------------------------------------------------------
Rahul.Patel.1 at StonyBrook.edu <Rahul.Patel.1 at stonybrook.edu>
Department of Physics and Astronomy
State University of New York at Stony Brook
WEB: http://www.astro.sunysb.edu/rpatel
-----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20150317/b70f85b8/attachment.html>


More information about the AstroPy mailing list