Changeset 4626


Ignore:
Timestamp:
10/21/11 11:42:47 (10 years ago)
Author:
paulf
Message:

added saveSCNL flag to allow saving as SCNL in TYPE_MAGNITUDE

Location:
trunk/src/seismic_processing/localmag
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/seismic_processing/localmag/lm_config.c

    r4617 r4626  
    557557                                           Default 0%, all phases will be taken */ 
    558558  plmParams->eventXML = 0;   /* do not output XML event file */ 
     559  plmParams->saveSCNL = 0;   /* use SCN as default for TYPE_MAGNITUDE message (compatibility sake) */ 
    559560  plmParams->saveXMLdir = NULL;   /* output XML event file here instead of sac dir */ 
    560561  plmParams->LookAtVersion = vAll;   /* Look at all versions of all events */ 
     
    923924            plmParams->allowVerticals = 1; 
    924925        } 
     926      } 
     927      /* OPTIONAL */ 
     928      else if (k_its("saveSCNL") ) 
     929      { 
     930        plmParams->saveSCNL = k_int(); 
    925931      } 
    926932 
  • trunk/src/seismic_processing/localmag/lm_config.h

    r4617 r4626  
    189189  int wsTimeout;          /* wave_server timeout in milliseconds             */ 
    190190  int eventXML;           /* Flag (1=output event xml) default is (0) not to     */ 
     191  int saveSCNL;           /* Flag (1=output L of SCNL in message) (0) to just do SCN (old style)     */ 
    191192  char *saveXMLdir;       /* if set, use this dir instead of sacOutDir  for option above...automagically turns on eventXML flag */ 
    192193  enum Version LookAtVersion;    /* Which version to look at, default is vAll */ 
  • trunk/src/seismic_processing/localmag/lm_main.c

    r4617 r4626  
    748748  MI.nchannels = nchan; 
    749749   
    750   rc = wr_mag( &MI, buf, MAX_BYTES_PER_EQ); 
     750  if ( plmParams->saveSCNL ) { 
     751     rc = wr_mag_scnl( &MI, buf, MAX_BYTES_PER_EQ); 
     752  } else { 
     753     rc = wr_mag( &MI, buf, MAX_BYTES_PER_EQ); 
     754  } 
     755 
    751756  logit("", "Magnitude message: \n%s", buf); 
    752757 
  • trunk/src/seismic_processing/localmag/lm_version.h

    r4617 r4626  
    11/* versioning introduced by Paul Friberg ISTI */ 
    2 #define LOCALMAG_VERSION "2.1.7 SNCL - 2011-09-27" 
     2#define LOCALMAG_VERSION "2.1.8 SNCL - 2011-10-21" 
Note: See TracChangeset for help on using the changeset viewer.