Skip to content

Commit

Permalink
Minor fixes and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
jhill1 committed May 9, 2019
1 parent 9e9fc31 commit cb87ea5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hrds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"""

__version__ = "0.1.1"
__version__ = "0.1.2"

from .raster import RasterInterpolator # NOQA
from .raster_buffer import CreateBuffer # NOQA
Expand Down
19 changes: 12 additions & 7 deletions hrds/hrds.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class HRDSError(Exception):
pass


class HRDS(object):
class HRDS():
"""
The main HRDS class. Create a raster stack and initialise::
Expand Down Expand Up @@ -84,12 +84,17 @@ class HRDS(object):
def __init__(self, baseRaster, rasters=None, distances=None,
buffers=None, minmax=None, saveBuffers=False):
"""
baseRaster is the low res raster filename across whole domain.
rasters is a list of filenames of the other rasters in priority order.
distances is the distance to create a buffer (in same units as
corresponding raster) for each.
buffers is a lost of buffer filenames in the same order as rasters
if created already. In this case, don't supply distances.
Set up our hrds object
Args:
baseRaster: the low res raster filename across whole domain.
rasters: a list of filenames of the other rasters in priority order.
distances: the distance to create a buffer (in same units as
corresponding raster) for each.
buffers: a list of buffer filenames in the same order as rasters
if created already. In this case, don't supply distances.
minmax: list of minimum and maximum values to use
saveBuffers: boolean to save buffers if needed
"""

if distances is None:
Expand Down

0 comments on commit cb87ea5

Please sign in to comment.