Enter datafiles by name

Read in up to 999 datafiles. In xseltcl and ixselect the command name is xread to avoid conflict with a native Tcl command.

xsel >  read <readmode> <infiles> <hkfiles> <expand>

xsel >  read e "file1 file2"

xsel >  read hk hkfiles="file1hk file2hk" expand=no

The possible values of readmode are:

  • e - reads in the Event (science) files.

  • hk - reads in the HK files. The variable expand tells whether they are in expanded form or not.

  • d - reads in the Event and HK files.

Two subsequent reads, with no clear in between, adds the new data files to the list of files already entered.

You do not have to be in the directory which contains the data. You will be prompted for the directories containing the Event and HK data.

Subsequent read commands add to the file list, unlike choose, where the list is automatically cleared before each choose.

Read will attempt to get the mission, instrument and datamode from the entered files. It is an error to enter files with different instruments, missions or datamodes.

It is often easier to respond to the prompts; see the example.



xsel >  read e 
> Enter the Event file dir >[.] 
> Enter Event file list >[] ft930317_1753.1614G30470M.fits


xsel >  read hk  

> Give name[s] of FITS HK files >[] file1hk.fits file2hk.fits  
> Are the HK files in expanded form? >[] yes

This reads in the hk files file1hk.fits and file2hk.fits, and informs the program that they are in expanded form.

HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Tuesday, 10-Jan-2023 11:03:02 EST