Re: MrSID in IDL [message #81775] |
Thu, 18 October 2012 19:03 |
pavelsky
Messages: 3 Registered: October 2012
|
Junior Member |
|
|
Thanks, Jim. That's very useful. I'll code it up and see if I can get everything to work.
Best,
Tamlin
On Thursday, October 18, 2012 9:03:18 PM UTC-4, Jim P wrote:
> On Thursday, October 18, 2012 4:44:30 PM UTC-6, pave...@gmail.com wrote:
>
>> On Thursday, October 18, 2012 6:37:29 PM UTC-4, Coyote wrote:
>
>>
>
>>> Tamlin writes:
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>> I'm trying to open a MrSID file in IDL--there shouldn't be anything complicated about it. There are a couple of ways of doing so, but neither one seems to be working.
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> First, I try something simple like the following:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> fileInfo = QUERY_MRSID("/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> And I get the following error:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> % Variable is undefined: QUERY_MRSID
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> Then, I try the other (object-oriented) method:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> Result = OBJ_NEW('IDLffMrSID', "/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> And I get the following error:
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> OBJ_NEW: Dynamically loadable module is unavailable on this platform: MRSID.
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> I've tried this on a Mac (OS 10.6.8) and on a PC (Windows 7), using IDL 7.1, 8.0, and 8.2.1. Exactly the same errors. I've also tried it using the sample .sid file that is provided with IDL. Same result, using exactly the same code that's in the help documents (with file path changed appropriately).
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>> Any idea what might be going on?
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Same results on my Windows 7 and LINUX machines running IDL 8.2.1.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Cheers,
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> David
>
>>
>
>>
>
>>
>
>> Glad to know I'm not crazy. Sounds like I may be sending my second support request to Exelis in the last 2 days. . . hopefully this one turns out as well as the last one did.
>
>>
>
>>
>
>>
>
>> Tamlin
>
>
>
> At the top of the documentation page for IDLffMrSID, there's a link for "IDL Feature Support". Unless you're running the 32-bit IDL executable (or an IDL_IDLBridge) on Windows, you'll be out of luck, assuming the documentation is up-to-date.
>
>
>
> Here's a handy trick to access to access 32-bit-only functionality from a 64-bit Windows IDL process. This comes in handy for accessing DXF files as well.
>
>
>
> IDL> b = idl_idlbridge(ops=32)
>
> % Loaded DLM: IDL_IDLBRIDGE.
>
> IDL> b->execute, 'o = obj_new("idlffmrsid", filepath(subdir=["examples", "data"], "test_gs.sid"))'
>
> IDL> b->execute, 'data = o->getimagedata(level=3)'
>
> IDL> d=b->getvar('data')
>
> IDL> help, d
>
> D BYTE = Array[1, 64, 64]
|
|
|
Re: MrSID in IDL [message #81776 is a reply to message #81775] |
Thu, 18 October 2012 18:03  |
Jim Pendleton
Messages: 165 Registered: November 2011
|
Senior Member |
|
|
On Thursday, October 18, 2012 4:44:30 PM UTC-6, pave...@gmail.com wrote:
> On Thursday, October 18, 2012 6:37:29 PM UTC-4, Coyote wrote:
>
>> Tamlin writes:
>
>>
>
>>
>
>>
>
>>> I'm trying to open a MrSID file in IDL--there shouldn't be anything complicated about it. There are a couple of ways of doing so, but neither one seems to be working.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> First, I try something simple like the following:
>
>>
>
>>>
>
>>
>
>>> fileInfo = QUERY_MRSID("/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>>>
>
>>
>
>>> And I get the following error:
>
>>
>
>>>
>
>>
>
>>> % Variable is undefined: QUERY_MRSID
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Then, I try the other (object-oriented) method:
>
>>
>
>>>
>
>>
>
>>> Result = OBJ_NEW('IDLffMrSID', "/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>>>
>
>>
>
>>> And I get the following error:
>
>>
>
>>>
>
>>
>
>>> OBJ_NEW: Dynamically loadable module is unavailable on this platform: MRSID.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I've tried this on a Mac (OS 10.6.8) and on a PC (Windows 7), using IDL 7.1, 8.0, and 8.2.1. Exactly the same errors. I've also tried it using the sample .sid file that is provided with IDL. Same result, using exactly the same code that's in the help documents (with file path changed appropriately).
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Any idea what might be going on?
>
>>
>
>>
>
>>
>
>> Same results on my Windows 7 and LINUX machines running IDL 8.2.1.
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>
>
> Glad to know I'm not crazy. Sounds like I may be sending my second support request to Exelis in the last 2 days. . . hopefully this one turns out as well as the last one did.
>
>
>
> Tamlin
At the top of the documentation page for IDLffMrSID, there's a link for "IDL Feature Support". Unless you're running the 32-bit IDL executable (or an IDL_IDLBridge) on Windows, you'll be out of luck, assuming the documentation is up-to-date.
Here's a handy trick to access to access 32-bit-only functionality from a 64-bit Windows IDL process. This comes in handy for accessing DXF files as well.
IDL> b = idl_idlbridge(ops=32)
% Loaded DLM: IDL_IDLBRIDGE.
IDL> b->execute, 'o = obj_new("idlffmrsid", filepath(subdir=["examples", "data"], "test_gs.sid"))'
IDL> b->execute, 'data = o->getimagedata(level=3)'
IDL> d=b->getvar('data')
IDL> help, d
D BYTE = Array[1, 64, 64]
|
|
|
Re: MrSID in IDL [message #81778 is a reply to message #81776] |
Thu, 18 October 2012 15:44  |
pavelsky
Messages: 3 Registered: October 2012
|
Junior Member |
|
|
On Thursday, October 18, 2012 6:37:29 PM UTC-4, Coyote wrote:
> Tamlin writes:
>
>
>
>> I'm trying to open a MrSID file in IDL--there shouldn't be anything complicated about it. There are a couple of ways of doing so, but neither one seems to be working.
>
>>
>
>>
>
>>
>
>> First, I try something simple like the following:
>
>>
>
>> fileInfo = QUERY_MRSID("/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>> And I get the following error:
>
>>
>
>> % Variable is undefined: QUERY_MRSID
>
>>
>
>>
>
>>
>
>> Then, I try the other (object-oriented) method:
>
>>
>
>> Result = OBJ_NEW('IDLffMrSID', "/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
>>
>
>> And I get the following error:
>
>>
>
>> OBJ_NEW: Dynamically loadable module is unavailable on this platform: MRSID.
>
>>
>
>>
>
>>
>
>> I've tried this on a Mac (OS 10.6.8) and on a PC (Windows 7), using IDL 7.1, 8.0, and 8.2.1. Exactly the same errors. I've also tried it using the sample .sid file that is provided with IDL. Same result, using exactly the same code that's in the help documents (with file path changed appropriately).
>
>>
>
>>
>
>>
>
>> Any idea what might be going on?
>
>
>
> Same results on my Windows 7 and LINUX machines running IDL 8.2.1.
>
>
>
> Cheers,
>
>
>
> David
Glad to know I'm not crazy. Sounds like I may be sending my second support request to Exelis in the last 2 days. . . hopefully this one turns out as well as the last one did.
Tamlin
|
|
|
Re: MrSID in IDL [message #81779 is a reply to message #81778] |
Thu, 18 October 2012 15:37  |
DavidF[1]
Messages: 94 Registered: April 2012
|
Member |
|
|
Tamlin writes:
> I'm trying to open a MrSID file in IDL--there shouldn't be anything complicated about it. There are a couple of ways of doing so, but neither one seems to be working.
>
>
>
> First, I try something simple like the following:
>
> fileInfo = QUERY_MRSID("/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
> And I get the following error:
>
> % Variable is undefined: QUERY_MRSID
>
>
>
> Then, I try the other (object-oriented) method:
>
> Result = OBJ_NEW('IDLffMrSID', "/volumes/data/files/GRWD/Misc/N-06-60.sid")
>
> And I get the following error:
>
> OBJ_NEW: Dynamically loadable module is unavailable on this platform: MRSID.
>
>
>
> I've tried this on a Mac (OS 10.6.8) and on a PC (Windows 7), using IDL 7.1, 8.0, and 8.2.1. Exactly the same errors. I've also tried it using the sample .sid file that is provided with IDL. Same result, using exactly the same code that's in the help documents (with file path changed appropriately).
>
>
>
> Any idea what might be going on?
Same results on my Windows 7 and LINUX machines running IDL 8.2.1.
Cheers,
David
|
|
|