EcohydroLib
1.29
|
Query soils data from WCS service provided by CSIRO/Geoscience Australia. More...
Functions | |
def | ordinalToAlpha (ordinal) |
Return unicode character ranging from A-Z for ordinal values from 1-26. More... | |
def | getSoilsRasterDataForBoundingBox |
Download soil property rasters from http://www.clw.csiro.au/aclep/soilandlandscapegrid/ For each property, rasters for the first 1-m of the soil profile will be downloaded from which the depth-weighted mean of the property will be calculated and stored in outpufDir. More... | |
Variables | |
string | FORMAT_GEOTIFF = 'GeoTIFF' |
tuple | FORMATS = set([FORMAT_GEOTIFF]) |
dictionary | MIME_TYPE = {FORMAT_GEOTIFF: 'image/GeoTIFF'} |
dictionary | VARIABLE |
string | URL_BASE = "http://www.asris.csiro.au/ArcGis/services/TERN/{variable}_ACLEP_AU_TRN_N/MapServer/WCSServer" |
string | DC_PUBLISHER = "http://www.clw.csiro.au/aclep/soilandlandscapegrid/" |
list | COVERAGES |
dictionary | WEIGHTS |
Query soils data from WCS service provided by CSIRO/Geoscience Australia.
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.geosciaus.soilwcs.getSoilsRasterDataForBoundingBox | ( | config, | |
outputDir, | |||
bbox, | |||
srs = 'EPSG:4326' , |
|||
resx = 0.000277777777778 , |
|||
resy = 0.000277777777778 , |
|||
interpolation = 'bilinear' , |
|||
fmt = FORMAT_GEOTIFF , |
|||
overwrite = False , |
|||
verbose = False , |
|||
outfp = sys.stdout |
|||
) |
Download soil property rasters from http://www.clw.csiro.au/aclep/soilandlandscapegrid/ For each property, rasters for the first 1-m of the soil profile will be downloaded from which the depth-weighted mean of the property will be calculated and stored in outpufDir.
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 interpolation method is not known |
Exception | if fmt is not a known format |
Exception | if output already exists by overwrite is False |
Exception | if a gdal_calc.py command fails |
def ecohydrolib.geosciaus.soilwcs.ordinalToAlpha | ( | ordinal | ) |
Return unicode character ranging from A-Z for ordinal values from 1-26.
list ecohydrolib.geosciaus.soilwcs.COVERAGES |
string ecohydrolib.geosciaus.soilwcs.DC_PUBLISHER = "http://www.clw.csiro.au/aclep/soilandlandscapegrid/" |
string ecohydrolib.geosciaus.soilwcs.FORMAT_GEOTIFF = 'GeoTIFF' |
tuple ecohydrolib.geosciaus.soilwcs.FORMATS = set([FORMAT_GEOTIFF]) |
dictionary ecohydrolib.geosciaus.soilwcs.MIME_TYPE = {FORMAT_GEOTIFF: 'image/GeoTIFF'} |
string ecohydrolib.geosciaus.soilwcs.URL_BASE = "http://www.asris.csiro.au/ArcGis/services/TERN/{variable}_ACLEP_AU_TRN_N/MapServer/WCSServer" |
dictionary ecohydrolib.geosciaus.soilwcs.VARIABLE |
dictionary ecohydrolib.geosciaus.soilwcs.WEIGHTS |