bcgov / bc-bear-dens

Data management and analysis for the LUPCE Bear Dens project
0 stars 0 forks source link

QAQC scripts for GIS verifications #10

Closed popovs closed 2 months ago

popovs commented 3 months ago

For the dens 'field visits' layer, automate GIS verifications for the forestry columns.

First, develop functions to pull the following GIS layers from BCGW:

Next do some basic GIS operations to make these files usable for our particular verifications:

'''Segments & sections might be identical - check this

GIS verifications

Misc GIS

Mary additionally requested the following: "Proportion of forest age classes within 1.5 km of each den."

popovs commented 2 months ago

Currently have scratch code written out to process all forestry layers except for rasterized age class layer. Need to wrap into neat functions to then apply functions to whole den list.

Also, removed cutblocks layer from analysis. The data is simply too inaccurate to use - it relies on polygons of cut block approval areas, but doesn't necessarily align with actual areas cut IRL, e.g. wildlife retention patches aren't necessarily included in the layer.

popovs commented 2 months ago

Create the following functions for yearly data subsetting:

Then when calling GIS operations, user can specify whether they'd like to subset geometries by year or not.

popovs commented 2 months ago

Question for Mary: for %age age class within 1.5 km of the den, are we talking about % of forest cover, or % of TOTAL area. E.g. if a den is by the coast (OUT_Kung_3 in screenshot), and you expand 1.5km to include the ocean, the % age class coverage by total area will likely be small, even though 100% of the forest is old (age class 9).

For now, assuming percentages as a proportion of forest cover, rather than as proportion of total area.

image

popovs commented 2 months ago

Question for Mary, regarding road density & distance to nearest road: what to do with railroads?

popovs commented 2 months ago

First draft of all scripts written up and pushed to main. Will open new ticket for any script cleanups or new script requests.