scl3/task_hii_rail
98
This task calculates the anthropogenic impact of railways on the terrestrial surface as one of the key
drivers for a combined Human Impact Index.
"Impact" is the direct
impact relative to each cell with at least one railway feature; unlike roads, we do not
calculate indirect impact of railways.
The output HII driver calculated by this task is, like all other HII drivers, unitless; it refers to an absolute 0-10
scale but is not normalized to it, so the actual range of values may be smaller than 0-10.
Source railway cells are a combination of:
taskdate
, as rasterized by the
task_hii_osm_csv and
task_hii_osm_ingest tasks. This image,
stored in Earth Engine at projects/HII/v1/osm/osm_image
, contains up to 14
bands for OSM features with railway tags. A cell in each band has a
value of 1 in every 300m pixel if there are any OSM features with that tag in the cell, and NoData otherwise.
This data is available since 2012-09-12, in steadily increasing quantity and quality; for HII calculations we
use OSM data starting in June 2014.We are able to use the different OSM rail types to weight rail impact by type, a key advance over previous Human Footprint efforts. These weights are based on the OSM Wiki descriptions.
railway_weights = {
"osm": {
"railway_abandoned": 4,
"railway_disused": 4,
"railway_miniature": 4,
"railway_preserved": 4,
"railway_funicular": 10,
"railway_halt": 10,
"railway_light_rail": 10,
"railway_monorail": 10,
"railway_narrow_gauge": 10,
"railway_platform": 10,
"railway_rail": 10,
"railway_station": 10,
"railway_subway": 10,
"railway_tram": 10,
},
"vmap": {
"Not_Usable": 6,
"Doubtful": 7,
"Unexamined_Unsurveyed": 10,
"Under_Construction": 9,
"Operational": 10,
},
}
Direct impact is calculated as the per-rail-type full weight (above) for 0.5 km to either side of a railway.
For any given output cell, the end result is the maximum (not the cumulative addition) of each direct
impact calculated for each type of railway. Values are multiplied by 100 and converted to integer for efficient
exporting to and storage in the Earth Engine HII Railway Driver image collection (projects/HII/v1/driver/railways
).
SERVICE_ACCOUNT_KEY=<GOOGLE SERVICE ACCOUNT KEY>
OSM_START = datetime(2014, 6, 4).date()
NOMINAL_RAIL_WIDTH=300
DIRECT_INFLUENCE_WIDTH=1000
DECAY_CONSTANT=-0.0002
All parameters may be specified in the environment as well as the command line.
/app # python task.py --help
usage: task.py [-h] [-d TASKDATE] [--overwrite]
optional arguments:
-h, --help show this help message and exit
-d TASKDATE, --taskdate TASKDATE
--overwrite overwrite existing outputs instead of incrementing
Copyright (C) 2022 Wildlife Conservation Society The files in this repository are part of the task framework for calculating Human Impact Index and Species Conservation Landscapes (https://github.com/SpeciesConservationLandscapes) and are released under the GPL license: https://www.gnu.org/licenses/#GPL See LICENSE for details.
docker pull scl3/task_hii_rail