Avance para o conteúdo

Prepare Planning Region

Functions to prepare the planning region for the ELSA workflow

make_boundary()
Create a boundary of the planning region
make_planning_units()
Create a Planning Units Raster

Prepare Feature Data

Functions to prepare the global datasets for the ELSA workflow

get_all_features()
Wrapper function to get a raster file with all wanted features
make_degraded_areas()
Create degraded areas layer for restoration planning
make_flood_abatement_opportunities()
Create a Flood Abatement Opportunities Raster
make_forest_integrity()
Create the forest integrity index using flii and fsii data
make_indigenous_managed_lands()
Create Indigenous Managed Lands Raster (LANDMark + ICCA)
make_kbas()
Create a Standardised Raster of Key Biodiversity Areas (KBAs)
make_managed_forests()
Create Managed Forests and Productive Managed Forests Raster Layers
make_mangroves()
Function to make standardised mangroves data
make_normalised_raster()
Create a Normalised Raster Aligned with and masked by Planning Units
make_protected_areas()
Create a Binary or Fractional Raster of Protected Areas Aligned to Planning Units
make_threatened_ecosystems_protection()
Create a Threatened Ecosystems Raster Based on Integrity or Degradation
make_threatened_ecosystems_restoration()
Create Threatened Ecosystems (for Restoration) Raster Based on Intactness and Degradation
make_underrepresented_ecosystems()
Create a Representation Gap Raster for Ecosystems
make_urban_greening_opportunities()
Create Urban Greening Opportunities Raster
make_wetlands_ramsar()
Create a Standardised Raster for Wetlands and Ramsar Sites

Set up ELSA analysis

Functions to help formulate a conservation problem for an ELSA analysis

make_protect_zone()
Generate Protect Zone Raster for ELSA Analysis
make_restore_zone()
Generate Restore Zones for Spatial Planning
make_manage_zone()
Generate Sustainable Management Zones for ELSA Analysis
make_urban_greening_zone()
Generate Urban Greening Zone Raster for ELSA Analysis

ELSA-specific utilities functions

Functions to help ELSA analysis

calculate_restore_and_urban_budgets()
Calculate restore and urban green zone budgets as percentages
get_min_lockin_target()
Get Minimum Lock-in Targets for Zones
get_target()
Calculate Target Area from Percentage

Helper Functions

elsar_load_data()
Load spatial or raster data from local files or Postgres
check_and_download_required_layers()
Check and download GEE-sourced layers based on metadata requirements
download_dynamic_world_data()
Download Google Dynamic World Annual Composite
download_esa_worldcover_data()
Download ESA WorldCover Data
download_esri_lulc_data()
Download the ESRI 10m Land Use/Land Cover Time Series (LULC) Layer
download_global_pasture_data()
Download Global Pasture Watch Grassland Probability Layer
download_gee_layer()
Download and Process a GEE Raster Layer into a Cloud-Optimized GeoTIFF
download_lulc_class_proportion()
Download LULC Class Proportion Raster from GEE
download_lulc_data()
Download LULC Data from Multiple Sources
download_lulc_proportions()
Download LULC Class Proportions from GEE
filter_sf()
Load and optionally filter a single vector layer
get_file_type()
Infer file type from file path or directory
get_iucn_ecosystems() deprecated
Extract and Filter IUCN GET Ecosystem Vector Layers
get_iucn_forests() deprecated
Extract and Rasterise IUCN Forest Ecosystems from Preloaded Layer
get_lulc_class_value()
Get Specific LULC Class Value
get_lulc_classes()
Get LULC Class Mappings for a Product
list_lulc_products()
List Available LULC Products
load_local_lulc_data()
Load User-Provided Local LULC Data
log_message() log_msg()
Log a message with timestamp
make_custom_projection()
Create a custom projection based on the planning region

Utilities

convert_points_polygon()
Convert Points to Buffered Polygons Based on Area
crop_global_raster()
Crop a Global Raster to the Extent of Planning Units
extract_filename_filetype()
Extract Filename and Filetype from Directory
exact_rasterise()
Efficient Attribute-Weighted Rasterization Using Coverage Fraction
get_binary_layers()
Extract binary layers within a raster stack
get_coverage()
Calculate Areal Coverage of a Zone Relative to Planning Units
median_from_rast()
Compute median from a SpatRaster using its GDAL PAM side-car histogram
rescale_raster()
Rescale Raster to 0-1 Range
split_bbox_into_tiles()
Split a Bounding Box into a Regular Grid of Polygon Tiles
conditionally_subdivide_bbox()
Conditionally Subdivide Bounding Box into Grid Tiles Based on Geographic Extent
save_raster()
Save a Raster as a Cloud Optimized GeoTIFF (COG)

Plotting functions

Functions to plot input and output data of an ELSA workflow

elsar_plot_distribution()
Function to create basic histogram with categorical data
elsar_plot_feature()
Plot a single feature raster within planning unit outlines
elsar_plot_static_raster()
Function to create a static plot from raster data

Plotting utilities

Helper functions for plotting

elsar_continuous_to_categorical()
Function to create categories for plotting out of continuous data
elsar_extend()
Function to extend the spatial extend around a raster file for plotting
elsar_plot_background() elsar_plot_background_c() elsar_plot_background_d()
Function to create a plot with background data for another plot
elsar_plot_extra_data()
Function to add additional data to an existing plot
elsar_plot_optics()
Function to easily adapt the visual appearance of a plot

Datasets

boundary_dat
Boundary data for Southern Asia
current_pas_sf
Current Protected Areas
get_wad_data()
Get WAD (World Atlas of Desertification) subset data