Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SLR and greenfield metrics #380

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

theocharides
Copy link

@theocharides theocharides commented Sep 3, 2024

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 folder hazards_summaries/. It contains the parcel parcel variables:

  • slr_nodev - a boolean for parcels affected by SLR
  • slr_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:

  • Reads the buildings table in from metrics_utils.py rather than in the "healthy metrics" scripts healthy.py, to match the other metrics input reads
  • Uses the "buildings 2050" output from BAUS sub-setting it to buildings built after the "initial year" for a given metrics run, rather than using the "new buildings" output from BAUS which just excludes h5 input buildings
  • Minor updates to variable names to describe the variables more readily
    It also adds code to produce the RTP2021 greenfield metrics for QA.

@akselx akselx self-requested a review September 9, 2024 17:37
@theocharides theocharides changed the title Add output for SLR metrics Update SLR and greenfield metrics Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant