Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sea level rise metric update
BAUS summary code
This adds a parcel-level sea level rise output table,
{run_name}_slr_parcel_summary_{year}.csv
, to the model run output folderhazards_summaries/
. It contains the parcel parcel variables:slr_nodev
- a boolean for parcels affected by SLRslr_mitigation
- a boolean for parcels that are marked as mitigated in the model inputs (and therefore had no further SLR modeling)We didn't track mitigated parcels in the code previously, so a set of lines are added that create a parcels table variable to store that information. The code mimics the other sea level rise code, so that were "tracking what the model sees" as much as possible, rather than just reading from the inputs.
The code was tested by reviewing the parcels output columns and confirming they match the number of inundated and mitigated parcels in the sea level rise input files.
Metrics code
The metrics code was then modified to read BAUS outputs rather than use inputs to calculate the metric.
Greenfield metric update
Metrics code
This updates the current greenfield metric to align more closely with the PBA50 metric by changing the unit of analysis to acres of greenfield/non-greenfield development. It also makes a few changes to the code:
metrics_utils.py
rather than in the "healthy metrics" scriptshealthy.py
, to match the other metrics input readsIt also adds code to produce the RTP2021 greenfield metrics for QA.