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

Home » Public Forums » archive » Re: MrSID in IDL
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: MrSID in IDL [message #81775] Thu, 18 October 2012 19:03 Go to previous message
pavelsky is currently offline  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]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: scale bar to show distance on projected map
Next Topic: volume() for function graphics?

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

Current Time: Wed Oct 08 15:34:05 PDT 2025

Total time taken to generate the page: 0.00406 seconds