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 #70666 is a reply to message #70664] Fri, 23 April 2010 14:13 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
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)

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?


--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 20:04:10 PDT 2025

Total time taken to generate the page: 0.02397 seconds