[Shake-dev] bug in "grind.conf" "strictbounds" parameter
Bruce Worden
bruce at gps.caltech.edu
Fri Apr 20 18:04:07 GMT 2007
Oops. I meant that it has been fixed in V3.2, not V3.1.
Bruce
On Apr 20, 2007, at 11:00 AM, Bruce Worden wrote:
> Hi Howard, others,
>
> This was a bug that Georgia reported earlier, and it has been fixed
> in V3.1 of ShakeMap -- so people who have upgraded will not need to
> do anything. For those of you with earlier versions, the fix that
> went into "grind" was to change the line:
>
> @bigbound[W,S,E,N] = split /\s+/,$strictbound;
>
> to:
>
> @bigbound[W,S,E,N] = split /\//,$strictbound;
>
> Just search on the string "strictbound" until you find the line in
> question.
>
> I don't believe that using a space-separated list will actually
> pick up any but the first coordinate, with the rest probably taking
> on default values. So while it may appear to work, it likely won't
> give you the exact coordinates you specify.
>
> Bruce
>
> On Apr 18, 2007, at 9:28 AM, Howard G Bundock wrote:
>
>>
>> Bruce, others -
>>
>> I found, to my dismay, that when I created strict boundaries in my
>> "grind.conf" for event 40195801 this morning, I created a ShakeMap
>> centered in Mexico.
>>
>> The problem is a mismatch between the code for strictbounds in
>> "grind", and the description of how to use the parameter in
>> "grind.conf".
>>
>> I chose to change the description in "grind.conf" since the "split
>> on whitespace" code in grind seems to be more consistent with
>> previous parameters (ie. mapbuf.)
>>
>> This is current - parameter values split by slashes
>>
>> #####################################################################
>> ######
>> # strictbound: fixes the map in place and size given by the argument.
>> # There is no default and this parameter is not required.
>> # Usage:
>> #
>> # strictbound : W/S/E/N
>> #
>> # For example:
>> #
>> # strictbound : -118.5/33.5/-117.5/34.25
>> #
>> # Would center a 1.0 degree by 0.75 degree map approximately over Los
>> # Angeles.
>> #####################################################################
>> ######
>>
>> Should be changed to - parameter values split by whitespace
>>
>> #####################################################################
>> ######
>> # strictbound: fixes the map in place and size given by the argument.
>> # There is no default and this parameter is not required.
>> # Usage:
>> #
>> # strictbound : W S E N
>> #
>> # For example:
>> #
>> # strictbound : -118.5 33.5 -117.5 34.25
>> #
>> # Would center a 1.0 degree by 0.75 degree map approximately over Los
>> # Angeles.
>> #####################################################################
>> ######
>>
>> Howard
>>
>>
>> --------------------
>> Howard Bundock
>> Earthquake Effects Project
>> Earthquake Hazards Team
>> email - bundock at usgs.gov
>> phone - (650) 329-5621
>> fax - (650) 329-4732
>>
>> Address:
>> Howard Bundock
>> US Geological Survey
>> 345 Middlefield Road
>> MS977
>> Menlo Park, CA 94025
>> ---------------------
>> _______________________________________________
>> Shake-dev mailing list
>> Shake-dev at scsnmail.gps.caltech.edu
>> http://unix1.gps.caltech.edu/mailman/listinfo/shake-dev
>
> _______________________________________________
> Shake-dev mailing list
> Shake-dev at scsnmail.gps.caltech.edu
> http://unix1.gps.caltech.edu/mailman/listinfo/shake-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geohazards.usgs.gov/pipermail/shake-dev/attachments/20070420/cf223547/attachment-0002.html
More information about the Shake-dev
mailing list