awk '{print $6,$7,$4}' eventlist > locationmagnitude load locationmagnitude lat=locationmagnitude(:,1); lon=locationmagnitude(:,2); mom=locationmagnitude(:,3); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Writes a file with the event directory name, the longitude, the latitude, and the magnitude awk '{print $1,$2,$7,$6,$4}' eventlist | sed 's/\///g' | sed 's/ /\!/' \ | sed 's/\://g' | sed 's/\./ /' | sed 's/\!/\./' \ | awk '{printf "%s %8.3f %8.3f %5.2f\n",$1,$3,$4,$5}' > namelocmag % Checked that all these directories indeed exist % For all BHZdata seismograms, supply P and S times using pands.pl % Also for the *.sync. % In one case, had to first put in GCARC... finding it through SAC... % weird case in which it wasn't set, but didn't pursue this; all works % All directories uniform: % SCEC event info file in them, and directory with BHZdata, no more Check the magnitude of all these files and put it in the seismogram % The magnitude of the SCEC eventinfo files: awk '{print $1,$2,$4}' */*info* > firstmag awk '{print $3,$4,$7}' */*/*evnt > secmag # One is more complete than the other for young dates, magnitudes similar... just rounded, that's all checked now. # In all the events, put it the MAG variable from the evtinfo file -> allenmag # Check all the sampling rates for all the events! -> allendelta