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

Home » Public Forums » archive » Re: sigma_filter calling sequence
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: sigma_filter calling sequence [message #73892 is a reply to message #73891] Sun, 05 December 2010 08:47 Go to previous messageGo to previous message
burton449 is currently offline  burton449
Messages: 15
Registered: December 2010
Junior Member
On Dec 4, 8:04 pm, David Fanning <n...@dfanning.com> wrote:
> burton449 writes:
>> Ok!
>> the script and the image are in the directory d:\
>> the image is a .tif
>
>> In IDL command line I typed the calling sequence with those
>> parameters:
>
>> Result = sigma_filter( image.tif, 5, 2 )
>
>> I want the box_widht to be of 5 and the N_sigma to be 2.
>
>> The error i got is:
>
>> % Syntax error.
>> IDL> Result = sigma_filter( image.tif, 5, 2 )
>> % Expression must be a structure in this context: IMAGE.
>> % Execution halted at: $MAIN$
>
>> If try to show the path of the image like d:\\image.tif the error
>> message is:
>> % Illegal character in program text.
>
> The "image" in the command has to be the image itself,
> not the name of the file containing an image. So, you have
> to read the image data out of the image file.
>
>    IDL> image = Read_Tiff('myimagefile.tif')
>    IDL> Help, image
>
> Try that and see what happens. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thank you David,
It works fine now.

The only problem is with the Iterate (/ITERATE) option of this script.
It doesnt work because of lack of memory in arrays. Im not sure if
there is a way to fix that? What do you think David?

By the way, I have to mention that other scripts are necessary to run
the NASA's
sigma_filter.pro

You will need: filter_image.pro convolve.pro and pfs_gaussian.pro

all the scripts are available in NASA's website at this adress:
http://idlastro.gsfc.nasa.gov/contents.html

Greetings,
Max
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: comp.lang isdl pvwaave
Next Topic: FFT+inverse FFT

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

Current Time: Fri Oct 10 00:49:11 PDT 2025

Total time taken to generate the page: 0.80087 seconds