toggle: IML or Return Period; action: enable/disable the input fields below as appropriate
Input field with "IML (geomean, g)" placed below current 'Return Period' fields
It's conceivable that the two rows of inputs could start with radio buttons that just enables/disables one input option or the other; the separate toggle and text wouldn't be needed
Based on which input is selected, the appropriate disagg service endpoint should be used.
Also, because the "Hazard Curves" (static and dynamic) tools have a "Scale to Max Direction" option, consider adding a "Max Direction?" checkbox next to the IML input box.
Edited
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I'd vote for this one, in which case the "geomean" after IML should be removed, to end up with "Intensity Measure Level (g)" when the IMT is SA, or "Intensity Measure Level (cm/s)" (or other units?) when the IMT is PGV. When the IMT is PGV, I think the "Max Direction?" checkbox would need to be deactivated for now, because I don't think we have max-direction scale factors for PGV yet.
The initial implementation is mostly finished, with a couple of caveats. The max-direction functionality is blocked by nshmp-haz#526 (closed), since it turns out that the web service does not currently provide that option in this case.
There are also currently no bounds on the IML field, since I don't know what bounds would be appropriate. @bclayton wants the web service to dynamically provide the bounds to the application (nshmp-haz#527 (closed)), but having hardcoded bounds at least for now would be better than having no bounds. What would an appropriate lower and upper bound be? (Are the bounds different for different units?)
I also have some clarifying questions about specific IMTs. The SA IMTs have an IML in g, and PGV has one in cm/s, but there is also one called PGA that isn't addressed in the above comment. What units should it use? Additionally, I would like to confirm that PGV is the only IMT for which the max-direction checkbox should be deactivated.
Also, a question that I should have asked a lot earlier: what term should I be using to refer to the choice between return period and IML? I've been calling them "output filters" in variable and type names, based on a total and likely incorrect guess as to what purpose they serve. I would very much appreciate a better term to use, from someone who actually knows what this stuff does.
The service usage metadata currently only provides one set of bounds on the IML field. From #93 (comment 277818), it seems like it would need to provide different bounds for IMTs that use different units.
With someone's go-ahead, I could open the appropriate issues on nshmp-haz and nshmp-web-utils and start working on them.