EcohydroLib
1.29
|
Query NLCD datasets from WCS service provided by U.S. More...
Functions | |
def | getNLCDRasterDataForBoundingBox |
Download NLCD rasters from http://raster.nationalmap.gov/arcgis/rest/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer. More... | |
Variables | |
string | FORMAT_GEOTIFF = 'GeoTIFF' |
tuple | FORMATS = set([FORMAT_GEOTIFF]) |
dictionary | MIME_TYPE = {FORMAT_GEOTIFF: 'image/GeoTIFF'} |
dictionary | FORMAT_EXT = {FORMAT_GEOTIFF: 'tif'} |
string | URL_BASE = "http://raster.nationalmap.gov/arcgis/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer/WCSServer" |
string | DC_PUBLISHER = "http://raster.nationalmap.gov/arcgis/rest/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer" |
dictionary | COVERAGES |
dictionary | USER_COVERAGES |
dictionary | LC_TYPE_TO_COVERAGE |
string | DEFAULT_COVERAGE = 'Land_Cover_2011_CONUS_2' |
dictionary | INTERPOLATION_METHODS = {'near': 'NEAREST'} |
Query NLCD datasets from WCS service provided by U.S.
Geological Survey
This software is provided free of charge under the New BSD License. Please see the following license information:
Copyright (c) 2015, University of North Carolina at Chapel Hill All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
def ecohydrolib.usgs.nlcdwcs.getNLCDRasterDataForBoundingBox | ( | config, | |
outputDir, | |||
bbox, | |||
coverage = DEFAULT_COVERAGE , |
|||
filename = 'NLCD' , |
|||
srs = 'EPSG:4326' , |
|||
resx = 0.000277777777778 , |
|||
resy = 0.000277777777778 , |
|||
interpolation = 'near' , |
|||
fmt = FORMAT_GEOTIFF , |
|||
overwrite = False , |
|||
verbose = False , |
|||
outfp = sys.stdout |
|||
) |
Download NLCD rasters from http://raster.nationalmap.gov/arcgis/rest/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer.
config | A Python ConfigParser (not currently used) |
outputDir | String representing the absolute/relative path of the directory into which output raster should be written |
bbox | Dict representing the lat/long coordinates and spatial reference of the bounding box area for which the raster is to be extracted. The following keys must be specified: minX, minY, maxX, maxY, srs. |
srs | String representing the spatial reference of the raster to be returned. |
resx | Float representing the X resolution of the raster(s) to be returned |
resy | Float representing the Y resolution of the raster(s) to be returned |
interpolation | String representing resampling method to use. Must be one of spatialdatalib.utils.RASTER_RESAMPLE_METHOD. |
fmt | String representing format of raster file. Must be one of FORMATS. |
overwrite | Boolean True if existing data should be overwritten |
verbose | Boolean True if detailed output information should be printed to outfp |
outfp | File-like object to which verbose output should be printed |
Exception | if coverage is not known |
Exception | if interpolation method is not known |
Exception | if fmt is not a known format |
Exception | if output already exists by overwrite is False |
dictionary ecohydrolib.usgs.nlcdwcs.COVERAGES |
string ecohydrolib.usgs.nlcdwcs.DC_PUBLISHER = "http://raster.nationalmap.gov/arcgis/rest/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer" |
string ecohydrolib.usgs.nlcdwcs.DEFAULT_COVERAGE = 'Land_Cover_2011_CONUS_2' |
dictionary ecohydrolib.usgs.nlcdwcs.FORMAT_EXT = {FORMAT_GEOTIFF: 'tif'} |
string ecohydrolib.usgs.nlcdwcs.FORMAT_GEOTIFF = 'GeoTIFF' |
tuple ecohydrolib.usgs.nlcdwcs.FORMATS = set([FORMAT_GEOTIFF]) |
dictionary ecohydrolib.usgs.nlcdwcs.INTERPOLATION_METHODS = {'near': 'NEAREST'} |
dictionary ecohydrolib.usgs.nlcdwcs.LC_TYPE_TO_COVERAGE |
dictionary ecohydrolib.usgs.nlcdwcs.MIME_TYPE = {FORMAT_GEOTIFF: 'image/GeoTIFF'} |
string ecohydrolib.usgs.nlcdwcs.URL_BASE = "http://raster.nationalmap.gov/arcgis/services/LandCover/USGS_EROS_LandCover_NLCD/MapServer/WCSServer" |
dictionary ecohydrolib.usgs.nlcdwcs.USER_COVERAGES |