CUSP2AH(1) CUSP COMMANDS CUSP2AH(1) NAME cusp2ah - converts CUSP event .mem and waveform files to an AH format file. SYNOPSIS cusp2ah [ -f xdr | ah ] _c_u_s_p_i_d__1 ... _c_u_s_p_i_d__n DESCRIPTION cusp2ah converts event data from the CUSP format to the AH format as defined by Lamont Dougherty Lab. cusp2ah is a command-line front-end program ahxdr which actually performs the CUSP to AH conversion. For each cuspid, cusp2ah 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 directories, 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_INtopointto If the waveform file is compresses, cusp2ah will uncompress a copy of reset GRAM_IN to point to the temporary directory. It will then invoke ahxdr with the appropriate variables reset for this cuspid. Any temporary files created by cusp2ah will be deleted after ahxdr has completed. OPTIONS -f xdr | ah specifies that the output file should be either the newer AH xdr format or the older AH format. The default format is xdr. _c_u_s_p_i_d__1 ... _c_u_s_p_i_d__n are the cuspids of the events to be convered to AH for- mat. EXAMPLES cusp2ah 242208 248868 will create an xdr version of the waveform data for cuspids 242208 and 248868. cusp2ah -f ah 242208 will create an old-style ah version of the waveform data for cuspid 242208. cusp2ah `cat event.list` will create an xdr verison of each event listed in the file event.list. ENVIRONMENT The following variables must be defined in the shell in which the ahxdr command is invoked: UC Berkeley Last change: 2 DECEMBER 1992 1 CUSP2AH(1) CUSP COMMANDS CUSP2AH(1) 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 .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, cusp2ah 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, cusp2ah will automatically set this to the appropriate directory, based on the base direc- tory 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 directory containing an uncompressed copy of the waveform file. GRAM_OUT Pathname of directory to which the .xdr files are out- put. SEE ALSO ahxdr (1) AUTHOR Please report bugs and address questions to: doug@perry.berkeley.edu UC Berkeley Last change: 2 DECEMBER 1992 2