#!/usr/bin/csh -f #+ # object -- show/change the OBJECT name # # Purpose: # With no arguments, show the current value of the OBJECT # keyword giving the name of the current target. With # arguments, reset the OBJECT name to the given string(s). # # Usage: # object [name] # # Arguments: # name = new name to asign to the OBJECT keyword # # Output: # object name is printed on stdout # # Restrictions: # Names containing characters with special meaning to the shell # (e.g., *()!&#) must be enclosed within double quotes ("). # # Exit values: # 0 = normal completion # # Example: # 1) show the current object name: # object # 2) reset the current object name to "Abell 2112": # object Abell 2112 # 3) reset the current object name to "Sgr A*": # object "Sgr A*" # #- # Modification history: # Date unknown ??? Original version # 2000-Jul-04 GDW Added description # 2002-Jun-06 GDW Adapted for DEIMOS #----------------------------------------------------------------------- if (${#argv} > 0) then modify -s deiccd object = "$*" else show -s deiccd -terse object endif