HERE IS THE PROCEDURE WHEN SUN AND DELL COMMUNICATE ONLY VIA FTP

request data with WEED and retrieve SEED files to the Sun (rock) in directory /home/park/Data
(currently latest WEED version is in /home/park/weedv2.9.1)

read SEED volumes on Sun using the WEED summary file with rdseed and write out in SAC-ASCII format (files end with SAC_ASC)

on Hales (while in /park/nobackup/Gdata/STA)

sftp park@rock
cd Data
mget *SAC_ASC
quit

ls *SAC_ASC > ascfiles
asc_convert < ascfiles  >! sac_convert
sac  < sac_convert

where sac_convert is a SAC macro of the form

read alpha yyyy.ddd......SAC_ASC
write yyyy.ddd......SAC
.
.
usw
.
.
you can write the ASCII files to a CD-ROM and take them to the Mac, if you like

once you have the SAC files, we can rotate and process

FOR SMALL TIME TEARS THAT FRAGMENT THE DATA FILES

process the binary SAC files on the DELL with the following merge procedure.

ls *SAC > infiles_raw
files_merge
cp outfile sac_merge
cp outfile2 infiles1

in another window:
merge_stupid

outpute files of files_merge are

outfile -- a SAC macro for assessing time tears for individual events, copy to sac_merge
outfile2  -- a list of files that the macro thinks will be the final set of merged files
                    you can copy outfile2 to infiles1 for later processing, but events that occur
                   within 1200 s of each other will lead to extra files that must be added my hand.

when you run sac_merge within SAC, the macro pauses at plots of data files to me merged.
SAC is finicky about merging files, so I wrote a FORTRAN program that merges files
during the SAC pause, run merge_stupid  in another window.  This program will automatically merge files
whose start and end differ by 0.01s or less, that is, the time tear does not lead to a gap ot an overlap in BH-channel data.  For files with an overlap or a gap, the program asks if it is all right to merge the files.  Gaps are filled with zeroes.  Overlaps are written over by the later file.
 
 
 

OK, here is the procedure WHEN SUN AND DELL CAN WORK INTHE SAME DIRECTORY

While sitting on Hales, log into rock,

on Hales:

xhost +rock

on rock:

setenv DISPLAY hales:0
cd weedv2.9.1
weed &

 --> make data request and download it to /home/jjpark/Data (on hales)

 send mail to

breq_fast@iris.washington.edu

Subject: Data Request

 on rock:

 cd /plate/jjpark/Data

 --> use weed or rdseed to unpack the data from Seed volumes
 --> I have found rdseed on rock to work with the WEED summary file.
 --> HOWEVER, rdseed on the Dell WONT use the summary file, so the Sun cant be
 avoided

 copy SUN-SAC files to a backup in a safe place e.g. /plate/jjpark/Data/Save

 sac < in_sac_sun_STATION
 -- sac commands adjusted from in_sac_sun to write in portable xdf format

 on Hales:

 sac < in_sac_dell_STATION
 -- sac commands adjusted from in_sac_dell to read from portable xdf format and -- write in native Linux format