Also included in this suite are three scripts that look up species names in the various authority files:
spec2004 looks up names in the 2004
MAPS species authority file.
spec2002 looks up names in the 2002
MAWS species authority file.
spec1998 looks up names in the 1998
MAPS species authority file.
All these scripts take the same, single command line argument. This argument can be any of:
A four-letter MAPS species code. For example, to
translate code AMRO using the 2004
authority file, type:
$ spec2004 amro
A six-letter MAWS species code. For example, to
translate code AMAVIO using the 2002
authority file, type:
$ spec2002 amavio
A Python regular expression that is used to search through all English names. A regular expression is way of describing a general pattern of characters; for example, you might search for all four-letter words, or all words starting with “bl”. For more information on how to write Python regular expressions, see Regular expression operations in the online Python documentation.
For example, to search the 1998 MAPS species authority file for all English names that contain the string “unid” followed, later on, by the string “thr”, type:
$ spec1998 'unid.*thr'
All searching will be case-independent, so searching for
code WITU and code witu
will have the same effect. Regular expressions will
also be case-independent.
If the command line argument has exactly four letters, it will be treated as a 4-letter code lookup; if it has exactly six letters, it will be looked for in the 6-letter codes. To search for a regular expression that happens to contain exactly four or six letters, enclose the expression in parentheses. For example, the command
$ spec2004 merl
would search for the 4-letter code MERL,
but the command
$ spec2004 '(merl)'
would search for all English names containing the string
“merl”. The single-quotes
are necessary to avoid their interpretation by the Unix
shell.