Changeset 46 for SH_SHM/trunk/util
- Timestamp:
- 10/30/2008 10:54:18 PM (15 years ago)
- Location:
- SH_SHM/trunk/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/util/check_evt.c
r16 r46 39 39 #include BC_SYSBASE 40 40 #include "eventdsc.h" 41 #include "tcusrdef.h" 41 42 42 43 … … 68 69 static float efv_magn=0.0; /* max. magnitude found */ 69 70 static int efv_pkp_count=0; /* number of PKP phases */ 71 static BOOLEAN efv_illegal_origin; /* illegal origin time */ 70 72 71 73 … … 99 101 /* efv_infile is used for messages, directory will be removed */ 100 102 i = strlen( infile ) - 1; 101 while (infile[i] != '/' && i > 0) i--; 102 strcpy( efv_infile, infile+i+1 ); 103 while (infile[i] != '/' && i > 0) 104 i--; 105 strcpy( efv_infile, infile+i ); 103 106 104 107 status = EveNOERROR; … … 133 136 BOOLEAN is_p_phase; /* phase is P or (P) */ 134 137 BOOLEAN loc_given; /* location given in this record */ 138 NTIME ntime; /* numeric origin time */ 135 139 136 140 /* executable code */ … … 181 185 efv_uncorr_loc = TRUE; 182 186 strcpy( efv_uncorrphase, event->phase ); 187 } /*endif*/ 188 189 /* is there an origin time from 1970? */ 190 if (loc_given) { 191 tc_t2n( event->origin_time, &ntime, status ); 192 if (SySevere(status)) { 193 efv_illegal_origin = TRUE; 194 } else if (ntime.year == 1970) { 195 efv_illegal_origin = TRUE; 196 } /*endif*/ 183 197 } /*endif*/ 184 198 -
SH_SHM/trunk/util/ev2view.c
r16 r46 240 240 if (event->mag[EvcMagMs] != EvEMPTY_MAGNITUDE) { 241 241 fprintf( view, " MS: %3.1f", event->mag[EvcMagMs] ); 242 } /*endif*/ 243 if (event->mag[EvcMagMbb] != EvEMPTY_MAGNITUDE) { 244 fprintf( view, " Mbb: %3.1f", event->mag[EvcMagMbb] ); 242 245 } /*endif*/ 243 246 } /*endif*/ -
SH_SHM/trunk/util/locate_by_ttfit.csh
r16 r46 4 4 # =================== 5 5 # 6 # version 14, 4-Jun-20076 # $Revision: 31 $, $Date: 2008-03-03 20:47:24 +0100 (Mo, 03 MÀr 2008) $ 7 7 # 8 8 # Locate event via travel time fit. … … 52 52 53 53 chdir $SH_SCRATCH 54 # set units for plot, want to change this to cm 55 gmtdefaults -Du >.gmtdefaults 54 56 55 57 # delete previously existing result file … … 296 298 #$PSVIEW -right $PWD/$psfile & # this dies after the shell terminates (on Sun) 297 299 298 set xtmp=`whoami | cut -c1-6` 299 300 if ("$xtmp" == "tmpusr") then 301 302 $PSVIEW $PWD/$psfile & 303 304 else 305 306 set pos="" 307 if ("`hostname`" == "ersn24") set pos="-geometry 940x780+0+0" 308 309 rsh -n `hostname` "$PSVIEW -right -display $DISPLAY $pos $PWD/$psfile" & 310 311 endif 300 $PSVIEW $PWD/$psfile & 312 301 313 302 #\rm $fitxyz
Note: See TracChangeset
for help on using the changeset viewer.