CUSP2SAC(1) CUSP COMMANDS CUSP2SAC(1) NAME cusp2sac - converts CUSP event .mem and waveform files to a SAC format file. SYNOPSIS cusp2sac [-h] _c_u_s_p_i_d__1 ... _c_u_s_p_i_d__n DESCRIPTION cusp2sac converts event data from the CUSP format to the SAC as defined by the SAC package from Lawrence Livermore National Labs. cusp2sac is a command-line front-end for the program cuspsac, which actually performs the CUSP to SAC conversion. For each cuspid, cusp2sac will first look for the .mem and waveform files in the CUSP_IN and GRAM_IN directories respectively. If the files are not found in these direc- tories, it will attempt to find the files in the appropriate directory within the respective CUSPMEMDIR and CUSPDATADIR directory hierarchies, and will set CUSP_IN and GRAM_IN to point to the appropriate directories. If the waveform file is compresses, cusp2sac will uncompress a copy of reset GRAM_IN to point to the temporary directory. It will then create the appropriate temporary input file and invoke cuspsac with the appropriate variables reset for this cuspid. Any temporary files created by cusp2sac will be deleted after acuspsac has completed. OPTIONS -h prints a brief help message with the syntax of the com- mand. _c_u_s_p_i_d__1 ... _c_u_s_p_i_d__n are the cuspids of the events to be convered to SAC format. NOTES sac.kom If the optional control file "sac.kom" is present, it will be used to specify selection criteria for the sta- tions and time periods to be converted to sac format. See the documentation for cuspsac for information on the contents of this file. EXAMPLES cusp2sac 242208 248868 will create an sac version of the waveform data for cuspids 242208 and 248868. cusp2sac `cat event.list` will create an xdr verison of each event listed in the file event.list. UC Berkeley Last change: 2 DECEMBER 1992 1 CUSP2SAC(1) CUSP COMMANDS CUSP2SAC(1) ENVIRONMENT The following variables must be defined in the shell in which the cuspsac command is invoked: CUSPDATADIR Pathname of the directory hierarchy containing all of the waveform files. CUSPMEMDIR Pathname of the directory hierarchy containing all of the .mem files. CUSPIDMAP Pathname of the binary file that contains a list of cuspids and their event dates. CUSP_IN Pathname of directory containing .mem files and auxil- lary input sac.kom files; usually equvalent to ".". If this variable is not set, or does not point to a direc- tory containing the .mem file for the event, cusp2sac will automatically set this to the appropriate direc- tory, based on the base directory CUSPMEMDIR and the date of the event stored in the file named by CUSPID- MAP. GRAM_IN Pathname of directory containing waveform files; usu- ally equvalent to ".". If this variable is not set, or does not point to a directory containing the waveform file for the event, cusp2sac will automatically set this to the appropriate directory, based on the base directory CUSPDATADIR and the date of the event stored in the file named by CUSPIDMAP. If the waveform file is compressed, it will be set to the temporary direc- tory containing an uncompressed copy of the waveform file. GRAM_OUT Pathname of directory to which the .sac files are out- put. SEE ALSO cuspsac (1) AUTHOR Please report bugs and address questions to: doug@perry.berkeley.edu UC Berkeley Last change: 2 DECEMBER 1992 2