NGA-East seed model PGV issues
The code snippet below returns a null pointer exception.
Oddly something is going wrong in the use of conditional PGV with the seed models. It turns out the other seeds without PGV still have averaged PGV values in the table file, leftover from the earlier implementation. Only PEER_EX
happens to be missing the table so it fails. It likely doesn't trickle upstream to the seed logic tree for PGV because of the PGV handler in the class NgaEast.UsgsSeeds_2018
and is restricted to the instance use of the PEER_EX
model.
-
AddcheckNotNull
in Seed and Sammons instance constructors for tables
Fixing this could be accompanied with addition of a unit test that fetches the instances of all GMMs at all IMTs.
The individual seeds have proven of little interest and could possibly be removed from the web services as we can now show/hide the epistemic uncertainty branches. (assuming the seed ID shows up in the tool tip)
public static void main(String[] args) {
GmmInput in = GmmInput.builder().withDefaults().build();
GroundMotionModel gmm = Gmm.NGA_EAST_SEED_PEER_EX.instance(Imt.PGV);
LogicTree<GroundMotion> gms = gmm.calc(in);
System.out.println(gms);
}