http://qs321.pair.com?node_id=11121015


in reply to Data conversion of FITS images in PDL

The wfits documentation also lists an array-ref variant for the arguments.

What happens if you try that?

$x->wfits('bar.fits', [16]);

Update:

But now I look at the code, that will not work.

Try adding a hash ref as the third argument.

$x->wfits('bar.fits', 16, {});

And maybe file a bug with PDL. https://github.com/PDLPorters/pdl

Replies are listed 'Best First'.
Re^2: Data conversion of FITS images in PDL
by Xilman (Hermit) on Aug 24, 2020 at 09:27 UTC

    Many thanks. Your suggestion works a treat.

    I will submit a bug report.

      Thanks for this report! The bug was fixed by Derek Lamb, and released as PDL 2.022 in Sep 2020.