[AstroPy] all_pix2world() NULL error

frohmaier c. (cf5g09) cf5g09 at soton.ac.uk
Sun Feb 16 06:49:49 EST 2014


Hi Mike,

I’m using PTF data, here is an example image: https://www.dropbox.com/s/yc7lz51ar56a68f/PTF201203051940_2_o_62108_00.w.fits

My steps to reproduce the problem are:
>>> hdulist=fits.open('PTF201203051940_2_o_62108_00.w.fits')
>>> worldc=wcs.WCS(hdulist[0].header)
>>> pixcrd=numpy.array([[536.0,894.0]],numpy.float_)
>>> cords=worldc.all_pix2world(pixcrd,0)
ERROR: RuntimeError: NULL error object in wcslib [astropy.wcs.wcs]

Many thanks,

Chris

On 14 Feb 2014, at 20:15, Michael Droettboom <mdroe at stsci.edu> wrote:

> Can you provide a standalone example and data that reproduces the error?
> 
> This indicates that wcslib set an error flag on an operation but didn't 
> actually set any information about the error.  This really shouldn't 
> happen in normal usage except if there's some latent bug in wcslib or 
> astropy.wcs...  but I'll need to be able to reproduce it to be sure.
> 
> Mike
> 
> On 02/14/2014 10:09 AM, frohmaier c. (cf5g09) wrote:
>> Hi,
>> 
>> When attempting to run all_pix2world() I get the following error:
>> 
>> ERROR: RuntimeError: NULL error object in wcslib
>> 
>> I cannot find any reference to this in the Astropy documentation. Does anyone know how I can resolve this?
>> 
>> Cheers,
>> Chris
>> 
>> 
>> 
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
> 
> 
> -- 
>                    _
> |\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
> |  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
> 
> http://www.droettboom.com
> 
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy




More information about the AstroPy mailing list