What for?With an fv script, one can automate some of the interactive procedures in fv. e.g. using an fv script file, one can open a FITS file, and display the header of the third extension, or plot X and Y column in the table on the fourth extension, or do them both.
Writing an fv scriptFv scripting is designed in an object-oriented fashion. But you don't have to know much about OO to use it. The only thing you need to know is that you have to create a FITS object first, and then ask the FITS object to do the things you want it to do. All the commands need to be saved in an ASCII file with the ".fv" extension.
Creating a FITS objectTo create a FITS object, use the command:
FVFile object_namewhere object_name is of your choice. The first two things you need to do after that are:
ftp://username:firstname.lastname@example.org/directory/filenameIf the remote host is an anonymous ftp site, one can replace the username and password with "anonymous" and one's email address.
The values and meaning of file_mode are as follows:
Available actionsThe scripting capability is currently rather limited and is deprecated in preference to a newer, more powerful interface. Right now, you can only do the following
Go to About fv.
Pages maintained by Bryan Irby Send bug reports or feature requests via the FTOOLS help desk.
HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public
Last modified: Thursday, 16-Jul-2009 14:09:30 EDT