Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

gfail code breaks for recent event that crosses 180/-180 line when trying to resample to ShakeMap #336

Open
kallstadt-usgs opened this issue Mar 29, 2021 · 0 comments

Comments

@kallstadt-usgs
Copy link
Member

When running event us7000dflf which crosses the 180/-180 line, I cannot event run the W half of the area (-b '26.9, 31.9, -178., -174.8') to cover Raoul Island because the codes crash with the following even though all inputs seem to cover that extent:

~/SecondaryHazards/Codes/groundfailure/bin/gfail in
207 pargs.pdlcall = False # Always manual when using gfail
208
--> 209 run_gfail(pargs)

~/SecondaryHazards/Codes/groundfailure/gfail/gfailrun.py in run_gfail(args)
320 saveinputs=args.save_inputs,
321 bounds=bounds2,
--> 322 trimfile=trimfile)
323
324 maplayers = lm.calculate()

~/SecondaryHazards/Codes/groundfailure/gfail/logisticmodel.py in init(self, shakefile, config, uncertfile, saveinputs, slopefile, bounds, slopemod, trimfile)
177 geodict._xmax = 180.
178
--> 179 gdict = geodict.getBoundsWithin(tempgdict)
180 else:
181 gdict = geodict

~/anaconda3/envs/gf/lib/python3.6/site-packages/mapio/geodict.py in getBoundsWithin(self, geodict)
254 if not self.contains(geodict):
255 raise DataSetException(
--> 256 'Input geodict not fully contained by this GeoDict object.')
257
258 # if the input geodict is identical to the host grid, then just return

DataSetException: 'Input geodict not fully contained by this GeoDict object.'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant