[AstroPy] [pywcs] Unit question
mdroe at stsci.edu
Tue Apr 5 09:26:54 EDT 2011
On 04/05/2011 10:22 AM, Ole Streicher wrote:
> but this does not work since wcs.wcs.cunit has indexing but is not a
> list. Even builing a list like list(wcs.wcs.cunit) does not work here.
> This is not a big problem since using
> wcs_units = [ wcs.wcs.cunit[i] for i in len(wcs.wcs.cunit) ]
> works well; however I would prefer to iterate directly over the list.
> I could have a look into str_list_proxy.c and provide you a patch, if I
> find some time?
Ah -- I understand your question now. I will look into this and keep
you posted on progress.
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
More information about the AstroPy