bw2regional.density
Module Contents
Functions
|
Create a new raster file at |
|
Get area of a spherical quadrangle. |
|
- bw2regional.density.divide_by_area(source_fp, destination_fp)[source]
Create a new raster file at
destination_fp, dividing the values insource_fpby their cell’s area.Will raise an error is the CRS is not geographic, or the raster is rotated.
- bw2regional.density.get_area(lat1, lat2, width)[source]
Get area of a spherical quadrangle.
lat1, lat2, and width should all be in degrees.
Uses the formula derived and demonstrated in https://gis.stackexchange.com/questions/127165/more-accurate-way-to-calculate-area-of-rasters.