On Tue, Oct 29, 2002 at 10:19 -0500, John E. Davis wrote: > > How do I find the target name associated with a data set? Although > "list_data" shows the target name, it is not appropriate for use in a > script. I looked at the "get_data_info" function, but it does not > provide this information. If this is not currently possible, I would You're right - this is not possible in the current release. > appreciate it if you would consider adding such a feature to the next > version. > > Until then, I will probably use something like: > > define get_target_name (file) > { > return fits_read_key (file, "OBJECT"); > } > > which is useful only if the filename associated with the data set is > available. > This is a good workaround for now. In the next release, I will add some means to get the target name and also to change it. The latter is useful for example, for cases in which a new data set has been created by summing two or more data sets. Thanks, JohnReceived on Tue Oct 29 2002 - 11:38:58 EST
This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:50 EDT