Coder Social home page Coder Social logo

CA MPA counterfactuals about ca-mpa HOT 6 CLOSED

brunj7 avatar brunj7 commented on August 18, 2024
CA MPA counterfactuals

from ca-mpa.

Comments (6)

brunj7 avatar brunj7 commented on August 18, 2024

Potential metrics:

Metric Source
Total area (sqkm)
Average distance from shore (km) CDFW coastline layer (distance from centroid)
Average depth (m) CDFW bathymetry layer
Total length of sandy beach (km) CA ROMS model layer
Park area (sqkm) within 500 m CA Parks parks shapefile
Number of people within 50 km US Census data
Number of public beaches Coastal Commission public beach layer
Proximity to Public Beach access points Beach access points

Other datasets State Parks:

  • Campgrounds
  • Parking
  • Entry

from ca-mpa.

brunj7 avatar brunj7 commented on August 18, 2024

sf::st_distance() and raster::DistanceFromPoints() could be options to compute the distances metrics

from ca-mpa.

brunj7 avatar brunj7 commented on August 18, 2024

The following metrics (raster layers) were processed:

Metric Source
Total area (sqkm) MPA shapefile
Average distance from shore (m) Global Watch Fisheries
Average depth (m) CDFW bathymetry layer
Total length of sandy beach (m) CA ROMS model layer <--- not processed yet waiting for the new dataset
Distance from closest park entry point CA Parks parks entry points
Number of park entry points within 600m CA Parks parks entry points
Number of people within 50 km US Census data
Distance from closest public beaches Coastal Commission public beach layer
Number of public beaches Beach access points
Distance from closest Public Beach access points Beach access points

The Script processing those metrics is here: https://github.com/NCEAS/ca-mpa/blob/main/data/counterfactuals_rasters/counterfactuals_raster_processing.R

from ca-mpa.

brunj7 avatar brunj7 commented on August 18, 2024

Statistics processing script: https://github.com/NCEAS/ca-mpa/blob/main/analyses/3performance_human/code/counterfactuals_mpa_stats.R

This script creates a raster cube with all the tiff layers processed above and computes statistics for the MPA and transforms this raster cube into a large data frame.

Outputs:

  • mpas_counterfactuals_stats_epsg3309.geojson data frame with the stats for the MPAs
  • counterfactual_layers_epsg3309.Rds raster cube transformed into a data frame
  • counterfactual_layers_shallow_epsg3309.Rds is the same but filtered for depth above the deepest pixel found in an MPA (aka smaller file)

All of those data files have been saved on the team's Google Drive: data/sync-data/counterfactuals

from ca-mpa.

brunj7 avatar brunj7 commented on August 18, 2024

Also added rasterization rasters of the MPAs matching the bathy grid:

  • binary file (1 == MPA): mpa_200m_epsg3309.tif
  • ID file (grid value matches MPA ID): mpa_200m_id_epsg3309.tif

updated the RDS files accordingly: f70949

from ca-mpa.

brunj7 avatar brunj7 commented on August 18, 2024

Chris and Cori have conducted the counterfactual analysis. Closing the issue

from ca-mpa.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.