comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: FITS IO Problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FITS IO Problem [message #70664 is a reply to message #70660] Fri, 23 April 2010 20:05 Go to previous messageGo to previous message
John B is currently offline  John B
Messages: 5
Registered: April 2010
Junior Member
On Apr 23, 5:13 pm, wlandsman <wlands...@gmail.com> wrote:
> One possiblity is that you have an incompatible versions of mrdfits
> and fxposit.pro (a procedure it calls to open the FITS file).
> mrdfits.pro was modified in March 2009 to OPENR the file with the /
> SWAP_IF_LITTLE keyword, rather than explcitly performing the byte
> swapping.    (This provides a significant speed improvement.)
> However, if you have a new version of mrdfits.pro but an old version
> of fxposit.pro then the byte swapping would not be perfomed, leading
> to nonsensical values such as you describe.   (I'm not sure why the
> first row would be OK, though)

I updated to the latest version of astrolib (I was using a version in
Schlegel's idlutils), and I still get the same error.


>
> If that is not the problem, then the next step is to figure out
> whether the culprit is mrdfits.pro or mwrfits.pro.     Can other FITS
> I/O programs read the file created by mwrfits.pro?
>

Readfits.pro is choking since this isn't a standard fits file (NAXIS
isn't defined). Is there another one I can use?

J


> --Wayne
>
> On Apr 23, 4:30 pm, John B <bochan...@gmail.com> wrote:
>
>> Hi All,
>
>> I am writing an anonymous structure (52 columns by 21 rows) out to a
>> FITS file, using mwrfits.pro from the astrolib library.  When I take
>> that file and read it back in (from the same machine), I get garbage
>> values throughout the
>> structure.  Nans, infs and just random longs... very confusing.
>> Neither program complains, and until now, both have worked
>> spectacularly.
>
>> I have noticed that the first row is preserved properly, and that I
>> can isolate a single row and write it out, then read it in, and it is
>> ok.
>
>> Any suggestions??
>
>> Thank you!
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Convert 3D to 1D, apply fuction then convert back to 3D
Next Topic: contour plot query

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:06:30 PDT 2025

Total time taken to generate the page: 0.00364 seconds