Skip to content

Commit

Permalink
add a workaround for timeless datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lat1le committed Aug 30, 2016
1 parent 0dd8c6a commit dda18fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datacube/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ def open(self):
raise e

def wheres_my_band(self, src, time):
if GDAL_NETCDF_TIME not in src.tags(1):
_LOG.warning("NetCDF dataset has no time dimension") # HACK: should support time-less datasets
return 1

sec_since_1970 = datetime_to_seconds_since_1970(time)

idx = 0
Expand Down

0 comments on commit dda18fc

Please sign in to comment.