Re: Works on Linux, not on MacOS [message #69968] |
Thu, 04 March 2010 19:45  |
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 #69971 is a reply to message #69970] |
Thu, 04 March 2010 15:02   |
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 #69976 is a reply to message #69975] |
Thu, 04 March 2010 10:03   |
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   |
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  |
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.
|
|
|