[Shake-dev] EqInfo.pm, Event.pm problem in v3.5

Peter Lombard lombard at seismo.berkeley.edu
Wed Jan 27 23:03:15 UTC 2010


Bruce and Wan,

There is a problem with EqInfo.pm and Event.pm modules in ShakeMap 3.5.

Event.pm creates a new EqInfo obect with:
  my $eir = new EqInfo($lat, $lon, $mag, $depth, $yr, 
		       $mon, $day, $hr, $min, $sec, $loc, $type);

But EqInfo.pm expects a "network" parameter between "sec" and "location":
sub new {

  my $class = shift;
  my $self  = {};

  bless $self, $class;
  $self->lat(shift);
  $self->lon(shift);
  $self->mag(shift);
  $self->depth(shift);
  $self->yr(shift);
  $self->mon(shift);
  $self->day(shift);
  $self->hr(shift);
  $self->min(shift);
  $self->sec(shift);
  $self->network(shift);
  $self->loc(shift);
  $self->type(shift);

  return $self;
}

I don't find any code that uses this network parameter from EqInfo. And it is
not in the version of EqInfo.pm that I sent you in November.

Any idea what it is for?

Pete


More information about the Shake-dev mailing list