Skip to content

Commit cb87ea5

Browse files
committed
Minor fixes and update version
1 parent 9e9fc31 commit cb87ea5

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

hrds/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
"""
2424

25-
__version__ = "0.1.1"
25+
__version__ = "0.1.2"
2626

2727
from .raster import RasterInterpolator # NOQA
2828
from .raster_buffer import CreateBuffer # NOQA

hrds/hrds.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class HRDSError(Exception):
3333
pass
3434

3535

36-
class HRDS(object):
36+
class HRDS():
3737
"""
3838
The main HRDS class. Create a raster stack and initialise::
3939
@@ -84,12 +84,17 @@ class HRDS(object):
8484
def __init__(self, baseRaster, rasters=None, distances=None,
8585
buffers=None, minmax=None, saveBuffers=False):
8686
"""
87-
baseRaster is the low res raster filename across whole domain.
88-
rasters is a list of filenames of the other rasters in priority order.
89-
distances is the distance to create a buffer (in same units as
90-
corresponding raster) for each.
91-
buffers is a lost of buffer filenames in the same order as rasters
92-
if created already. In this case, don't supply distances.
87+
Set up our hrds object
88+
89+
Args:
90+
baseRaster: the low res raster filename across whole domain.
91+
rasters: a list of filenames of the other rasters in priority order.
92+
distances: the distance to create a buffer (in same units as
93+
corresponding raster) for each.
94+
buffers: a list of buffer filenames in the same order as rasters
95+
if created already. In this case, don't supply distances.
96+
minmax: list of minimum and maximum values to use
97+
saveBuffers: boolean to save buffers if needed
9398
"""
9499

95100
if distances is None:

0 commit comments

Comments
 (0)