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

Home » Public Forums » archive » Re: LZW 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: LZW in IDL [message #39720 is a reply to message #39716] Wed, 09 June 2004 23:17 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Andrew Cool wrote:
> Jonathan Joseph <jj21@cornell.edu> wrote in message news:<ca7qcv$8bl$1@news01.cit.cornell.edu>...
>
>> Is there a way to query whether or not you have permission to write an
>> LZW compressed tiff file?
>
> Try issuing the command Help,/DLM,OUT=a
> This will return a list of all the DLMs that IDL knows about, even if
> they haven't been loaded in that session yet.
>
> IDL> help,/dlm,out=a
> IDL> gif=where(strmid(a,0,6) EQ '** GIF')
> IDL> print,a(gif)
> ** GIF - IDL GIF support (not loaded)
>
> If GIF reurns as -1, then you ain't got GIF available

That reminds me--I wrote some code to solve a similar problem, ie
determining if the AVI DLM is loaded. I spent a bit of time making it as
fast & robust as possible. See below

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

function MGH_HAS_AVI

compile_opt DEFINT32
compile_opt STRICTARR
compile_opt STRICTARRSUBS

common mgh_has_avi_common, has_avi

;; Detect the DLM by parsing out from HELP. DLMs are normally
;; registered when an IDL session is initialised, so this test is
;; done only on the first call..

if n_elements(has_avi) eq 0 then begin

help, /DLM, OUT=info

has_avi = max(strmatch(temporary(info), '\*\* IDL_AVI *')) gt 0

endif

return, has_avi

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using a 2nd monitor as an output device not as part of an extended desktop
Next Topic: 3d Hanning filter

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

Current Time: Wed Oct 08 20:11:08 PDT 2025

Total time taken to generate the page: 0.00477 seconds