Skip to content

Commit

Permalink
remove forestry from consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-beta-soup committed Jul 16, 2024
1 parent ea59e2d commit 2e43987
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Implementation of https://www.nature.com/articles/s41597-022-01284-8 for New Zea
- [x] Built environments
- [x] Population density
- [x] Night-time lights
- [x] Crop land (_including forestry_)
- [x] Crop land
- [x] Pasture land
- [x] Roads
- [x] Railways
Expand Down
6 changes: 3 additions & 3 deletions docs/methodology.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Annual composite night-time light data are obtained from the Earth Observation G

The units are median monthly radiance, in units of nW cm¯² sr¯¹. The data is clipped to the same New Zealand geogrpaphical area as the other component layers, and then scaled to a 0-65535 range to facilitate the computation of deciles for the Human Footprint index. The boundaries of ten equal deciles are determined ignoring values of 0, and the decile (1 to 10), or 0, is directly used as the footprint score.

### Croplands (including forestry)
### Croplands

We used the land cover information from the Landcover Database version 5.0 for the identification of croplands in 2012 and 2018 [[9]](#9) [[10]](#10). Specifically, classes 30 (short-rotation cropland), 33 (orchards, vineyards or other perennial crops), 64 (forest - harvested), and 71 (exotic forest). We decided to include exotic forest and harvested forests (typically bare ground from the harvesting of exotic forest) under the standard human footprint definition of "cropland" for the purpose of human footprint mapping in New Zealand. This is because exotic forests are a major class of land cover and represent a significant human alteration of the natural landscape.
We used the land cover information from the Landcover Database version 5.0 for the identification of croplands in 2012 and 2018 [[9]](#9) [[10]](#10). Specifically, classes 30 (short-rotation cropland), and 33 (orchards, vineyards or other perennial crops).

The data is downloaded as a vector, rasterised as a binary raster at 10 m² resolution, and then downsampled to 100 m² with a summation algorithm to obtain a 0–100 value for measuring partial pixel cover at this scale (a value of 20 indicates that 20% of the pixel is covered in cropland or forestry). These values are converted to a footprint score using the equation:
The data is downloaded as a vector, rasterised as a binary raster at 10 m² resolution, and then downsampled to 100 m² with a summation algorithm to obtain a 0–100 value for measuring partial pixel cover at this scale (a value of 20 indicates that 20% of the pixel is covered in cropland). These values are converted to a footprint score using the equation:

$$
F = \begin{cases} 7 & \text{if $x > 20$} \\
Expand Down
3 changes: 1 addition & 2 deletions src/rules/lcdb.smk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ rule download_cropland:
output: CROPLAND
wildcard_constraints:
year='\d{4}'
message: "Note that 'Exotic Forest' and 'Forest - Harvested' (LCDB classes) are included in our definition of 'cropland'"
threads: 2
conda: '../envs/gdal.yml'
log: LOGD / "download_cropland_{{year}}.log"
Expand All @@ -25,7 +24,7 @@ rule download_cropland:
nln="cropland",
nlt="multipolygon",
geom_var="geom",
where=lambda wildcards: f"\"Class_{get_nearest(LCDB_YEARS, wildcards.year)}\" IN (30, 33, 64, 71)"
where=lambda wildcards: f"\"Class_{get_nearest(LCDB_YEARS, wildcards.year)}\" IN (30, 33)"
shell: '''
mkdir -p $(dirname {params.tmp}/mainland/{output})
ogr2ogr --config GDAL_HTTP_UNSAFESSL YES -f GPKG -t_srs EPSG:2193 -t_coord_epoch {wildcards.year}.0 {params.tmp}/mainland/{output} WFS:\"{params.host}/services;key={params.key}/wfs/{params.mainland_layer}\" {params.mainland_layer} -nln {params.nln} -nlt {params.nlt} -nlt PROMOTE_TO_MULTI -overwrite -lco GEOMETRY_NAME={params.geom_var} -skipfailures -where "{params.where}" -unsetFid
Expand Down

0 comments on commit 2e43987

Please sign in to comment.