View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

proper syntax for paramters?

Arp wrote on Oct 20, 2009

hello!

Once again I've got a question which may sound stupid :)
Im trying to create a noise image using mknoise in the artdata package.

I typed: "mknoise input="\n" output="test" gain=3.32 back=0 rdnoise=4 poisson=no ncols=200 mode=ql"

But that seems to just start the task withtout using the parameters except for the output filename. The reason I know this is that the resulting image still has the dimension 2048x2048, but with the ncols=200 it should have 200x2048.

How is the proper syntax to start this package with specified parameters?
thx.

Mike Fitzpatrick wrote on Oct 20, 2009

For this task (and others in ARTDATA), if you specify an output image name then it usually means you are modifying an existing input image. Specifying only the 'input' param will create a new image.

Anyway, to create a new image, try something like


cl> mknoise test gain=3.32 back=0 rdnoise=4 poisson=no ncols=200 nrows=2048


You shouldn't specify the newline character '\n' for any parameter, you can just leave it blank and if it is required you will be prompted.

-Mike

Arp wrote on Oct 20, 2009

Ah, thank you. I didnt think that the output parameter was critical for creating a new image or loading one.
Thanks.

Last post on Oct 20, 2009