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

Home » Public Forums » archive » Re: Works on Linux, not on MacOS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Works on Linux, not on MacOS [message #69968] Thu, 04 March 2010 19:45 Go to next message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 4, 1:21 pm, wlandsman <wlands...@gmail.com> wrote:
> On Mar 4, 1:03 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> Great suggestion!  I checked, and the two img arrays are different.
>> It turns out that the version of readfits I was using on the Mac was
>> newer than the Linux version.  I copied the older version onto the
>> Mac, and ran my checks again.  Same results w/ find & readfits.  Why
>> is readfits not working??
>
> How are the img arrays different?     Are they different sizes?   Are
> they different types (integer vs. floating point)?    Does one image
> have NaN values and the other doesn't?      Do both images display
> properly?   Are the pixels values at the same location slightly
> different? or very different?
>
> Are you sure you have the same file on both computers?    --Wayne

Ack! I figured out that readfits is working fine and the same in both
cases - I had an issue in how I compared the two arrays that led me to
my last post. However, they are the same, so it is FIND that is the
problem, not readfits.
Re: Works on Linux, not on MacOS [message #69970 is a reply to message #69968] Thu, 04 March 2010 16:03 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 4, 8:02 pm, wallabadah <write.to.wpow...@gmail.com> wrote:
> If the Mac is a MacBook (not a PowerBook), then it has an intel
> processor, so byte ordering should not be an issue.

That does not mean he is not running the PPC IDL. The documentation is
not clear whether things like the swap_if_little_endian keywords cause
a decision based on the host platform, or the IDL binary in use.
Re: Works on Linux, not on MacOS [message #69971 is a reply to message #69970] Thu, 04 March 2010 15:02 Go to previous messageGo to next message
wallabadah is currently offline  wallabadah
Messages: 28
Registered: November 2005
Junior Member
On Mar 5, 5:21 am, wlandsman <wlands...@gmail.com> wrote:
> On Mar 4, 1:03 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> Great suggestion!  I checked, and the two img arrays are different.
>> It turns out that the version of readfits I was using on the Mac was
>> newer than the Linux version.  I copied the older version onto the
>> Mac, and ran my checks again.  Same results w/ find & readfits.  Why
>> is readfits not working??
>
> How are the img arrays different?     Are they different sizes?   Are
> they different types (integer vs. floating point)?    Does one image
> have NaN values and the other doesn't?      Do both images display
> properly?   Are the pixels values at the same location slightly
> different? or very different?
>
> Are you sure you have the same file on both computers?    --Wayne

If the Mac is a MacBook (not a PowerBook), then it has an intel
processor, so byte ordering should not be an issue.

Will.
Re: Works on Linux, not on MacOS [message #69975 is a reply to message #69971] Thu, 04 March 2010 10:21 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Mar 4, 1:03 pm, Gray <grayliketheco...@gmail.com> wrote:


> Great suggestion!  I checked, and the two img arrays are different.
> It turns out that the version of readfits I was using on the Mac was
> newer than the Linux version.  I copied the older version onto the
> Mac, and ran my checks again.  Same results w/ find & readfits.  Why
> is readfits not working??

How are the img arrays different? Are they different sizes? Are
they different types (integer vs. floating point)? Does one image
have NaN values and the other doesn't? Do both images display
properly? Are the pixels values at the same location slightly
different? or very different?

Are you sure you have the same file on both computers? --Wayne
Re: Works on Linux, not on MacOS [message #69976 is a reply to message #69975] Thu, 04 March 2010 10:03 Go to previous messageGo to next message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 4, 11:12 am, pp <pp.pente...@gmail.com> wrote:
> On Mar 4, 12:59 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> Hi all,
>
>> I've come across a very strange problem.  I'm using Astrolib's FIND
>> procedure to look for objects in an image.  When I run my program on
>> my Linux work computer, it works; when I run it on my personal
>> MacBook, it doesn't.
>
> Have you compared the img arrays to see if they are the same? If they
> are not, the issue is with readfits, not find. Is it a PowerPC IDL? If
> so, maybe it is a byte order issue.

Great suggestion! I checked, and the two img arrays are different.
It turns out that the version of readfits I was using on the Mac was
newer than the Linux version. I copied the older version onto the
Mac, and ran my checks again. Same results w/ find & readfits. Why
is readfits not working??
Re: Works on Linux, not on MacOS [message #69979 is a reply to message #69976] Thu, 04 March 2010 08:12 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 4, 12:59 pm, Gray <grayliketheco...@gmail.com> wrote:
> Hi all,
>
> I've come across a very strange problem.  I'm using Astrolib's FIND
> procedure to look for objects in an image.  When I run my program on
> my Linux work computer, it works; when I run it on my personal
> MacBook, it doesn't.

Have you compared the img arrays to see if they are the same? If they
are not, the issue is with readfits, not find. Is it a PowerPC IDL? If
so, maybe it is a byte order issue.
Re: Works on Linux, not on MacOS [message #70067 is a reply to message #69970] Thu, 04 March 2010 19:49 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 4, 7:03 pm, pp <pp.pente...@gmail.com> wrote:
> On Mar 4, 8:02 pm, wallabadah <write.to.wpow...@gmail.com> wrote:
>
>> If the Mac is a MacBook (not a PowerBook), then it has an intel
>> processor, so byte ordering should not be an issue.
>
> That does not mean he is not running the PPC IDL. The documentation is
> not clear whether things like the swap_if_little_endian keywords cause
> a decision based on the host platform, or the IDL binary in use.

How do I find out which build I'm running? I looked through the
config details on the "About IDL Workbench" splash screen, but I
didn't see anything that would indicate either way.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: MOD09 Data in ENVI
Next Topic: to read and to save multiple fits format files at a time

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

Current Time: Fri Oct 10 13:37:19 PDT 2025

Total time taken to generate the page: 0.79943 seconds