| uniqtab | stsdas.toolbox.tools | uniqtab |
uniqtab -- Give all the files in an STSDAS table unique names.
uniqtab input colnames instr
This task renames the files named in an STSDAS table and updates the table to reflect the new names. Files are renamed according to the CDBS unique naming conventions (these conventions are described in the help files for the uniqfile and uniqname tasks). The first parameter, input, gives the names of one or more tables containing file names. The second parameter, colnames, give the names of the table columns containing file names. If the table contains the names of both the header and data files of an image, both column names should be specified. The third parameter, instr, gives the name of the instrument associated with the files in the STSDAS table. The file names generated using the CDBS unique naming convention are a function of the associated instrument.
HST instrument name. If a file is used by more than one instrument, the value passed to instr should be "multi".
1. Rename the files in fos_deliver.tab according to CDBS conventions.
to> uniqtab fos_deliver.tab header_file,data_file fos
Because of the structure of the CDBS unique naming convention, two seconds must elapse between generating file names. This means it can take a long time to rename all the files in a table with a large number of rows.