View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Problem saving spectrum

stevenford17 wrote on Apr 03, 2008

I would also like to ask a question relating to difficulties saving a spectrum. I am using the "apall" command to bring up a .imh image to determine aperture peak. I then hit "q" and bring up the data fit to a curve. When I hit "q" again to save the spectrum as a temporary file, I get the following error message: "Warning: Cannot open file (/w)"

Any thoughts? Thanks in advance.

-Steve

Mike Fitzpatrick wrote on Apr 03, 2008

Steve,

This may be related to your earlier problems with the 'imdir' setting, be sure that this was reset if needed and is still valid.

Otherwise, since this is a temp file there may be a conflict between the setting of your 'imtype' variable (which sets the default image type for new images if not explicitly set with an extension), and the explicit .imh extension you are using. Do a "show imtype" to see the current value, and if it is something like 'fits' reset it to 'imh' with the command

cl> reset imtype = imh
cl> flpr 0                                              # zero, not oh


Cheers,
-Mike

stevenford17 wrote on Apr 03, 2008

Unfortunately, that didn't fix it. I checked my imdir and it's all good, and my imtype is set to "imh." Any other reason that I might be getting the error?

Thanks again,
Steve

Mike Fitzpatrick wrote on Apr 03, 2008

Disk full?? Directory permissions? The "/w" looks like a corrupted filename string, did you supply a name or is this something the task picked?

-Mike

stevenford17 wrote on Apr 03, 2008

Here is the description of my actions:

Type ‘q’ to quit the plot. A series of questions will appear at the bottom left
of the plot. Answer ‘yes’ to the following questions:

Write apertures for sub001a to database (yes):
Extract aperture spectra for sub001a (yes):
Review extracted spectra for sub001a (yes):
Review extracted spectra for aperture 1 from sub 001a? (yes):

It is after I type "q" and before the questions appear that the error comes up.

-Steve

Francisco Valdes wrote on Apr 03, 2008

Hello,

In reading the mail I don't see the source of the problem. Could you send the parameter settings (dpar apextract apall). I am not clear what the last plot window before the error was. You say "data fit to a curve". Is this the tracing of the aperture?

Yours,
Frank Valdes

stevenford17 wrote on Apr 03, 2008

My "dpar apextract apall" command returned the following:

apextract.dispaxis=1
apextract.database= "database"
apextract.verbose=no
apextract.logfile=""
apextract.plotfile="/w"
apextract.version="Apextract v3.0: August 1990"
apextract.mode= "ql"

# EOF
ERROR: task 'apall' not found
called as: 'dparam ()'

Thanks,
Steve

Francisco Valdes wrote on Apr 03, 2008

Hi,

I guess apextract was not loaded when you ran the dpar. However, it looks obvious that you accidentally have apextract.plotfile set to "/w". Just set the value to "" and the question you started with should be resolved.

Frank

stevenford17 wrote on Apr 03, 2008

That did it. Thanks for all of your help and patience with a new user.

Last post on Apr 03, 2008