next up previous contents
Next: Filtering Logic Up: Command Line Hera Syntax Previous: Command Line Hera Syntax   Contents

Table and Command Line Syntax

Veteran command-line SAS users, take note: there is some flexibility in command line Hera syntax, but less than what is in locally-installed SAS! First, all input tables in Hera are assumed to be event tables. Thus, there is no need to specify the EVENTS table when opening a file. The valid commands for opening a file in the Command Window are, therefore,

evselect table=filtered.fits
evselect table='filtered.fits'
evselect table="filtered.fits"

The following syntaxes, while valid in the local installation of SAS, are not valid in Hera!

evselect table=filtered.fits:EVENTS
evselect table='filtered.fits:EVENTS'
evselect table="filtered.fits:EVENTS"
evselect table=filtered.fits%EVENTS

Further, the following are all valid task calls on the command line that result in identical operations:

evselect updateexposure=T
evselect updateexposure=yes
evselect updateexposure='yes'
evselect updateexposure="yes"
However,

evselect -updateexposure=T
evselect -updateexposure=yes
evselect -updateexposure='yes'
evselect -updateexposure="yes"
evselect -updateexposure=T
evselect -updateexposure=yes
evselect -updateexposure='yes'
evselect -updateexposure="yes"

are not correct syntax.

One format is not ``more correct'' than another, and the choice of which to use is left to user preference. In this guide we adopt the simplest format, and use no dashes and only single quotation marks only when required, such in denoting a list or filter, e.g.,

evselect filtertype=expression expression='(X,Y) in CIRCLE(26920,26400,500)'


next up previous contents
Next: Filtering Logic Up: Command Line Hera Syntax Previous: Command Line Hera Syntax   Contents
Lynne Valencic 2011-07-26