Skip to content

Commit

Permalink
Adding meters projection information to LULC and population rasters. RE:
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Nov 16, 2021
1 parent a1cea27 commit 32834c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/natcap/invest/urban_nature_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
'about': (
"A map of LULC codes. "
"All values in this raster must have corresponding entries "
"in the LULC attribute table."),
"in the LULC attribute table. This raster must be linearly "
"projected in meters."),
},
'lulc_attribute_table': {
'name': 'LULC attribute table',
Expand Down Expand Up @@ -71,9 +72,10 @@
1: {'type': 'number', 'units': u.none}
},
'projected': True,
'projection_units': u.meter,
'about': (
"A raster representing the number of people who live in each "
"pixel. This raster must be linearly projected."
"pixel. This raster must be linearly projected in meters."
),
},
'admin_unit_vector_path': {
Expand Down Expand Up @@ -207,6 +209,7 @@ def _resample_population_raster(
Args:
source_population_raster_path (string): The source population raster.
Pixel values represent the number of people occupying the pixel.
Must be linearly projected in meters.
target_population_raster_path (string): The path to where the target,
warped population raster will live on disk.
target_pixel_size (tuple): A tuple of the pixel size for the target
Expand All @@ -215,7 +218,8 @@ def _resample_population_raster(
Passed directly to ``pygeoprocessing.warp_raster``.
target_projection_wkt (string): The Well-Known Text of the target
spatial reference fro the target raster. Passed directly to
``pygeoprocessing.warp_raster``.
``pygeoprocessing.warp_raster``. Assumed to be a linear projection
in meters.
working_dir (string): The path to a directory on disk. A new directory
is created within this directory for the storage of temporary files
and then deleted upon successful completion of the function.
Expand Down

0 comments on commit 32834c4

Please sign in to comment.