Skip to content

Commit

Permalink
Merge branch 'hotfix/hf-1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpu-creare committed Mar 2, 2020
2 parents 735b891 + 922aead commit aeba1a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion podpac/core/data/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def get_native_coordinates(self):
# check to see if the coordinates are rotated used affine
affine = self.dataset.transform

if isinstance(self.dataset.crs, rasterio.crs.CRS):
if isinstance(self.dataset.crs, rasterio.crs.CRS) and "init" in self.dataset.crs:
crs = self.dataset.crs["init"].upper()
elif isinstance(self.dataset.crs, dict) and "init" in self.dataset.crs:
crs = self.dataset.crs["init"].upper()
Expand Down
3 changes: 2 additions & 1 deletion podpac/datalib/gfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def open_dataset(self):
s3.Object(BUCKET, self._key).download_fileobj(f)
f.seek(0)
self.cache_ctrl and self.put_cache(f.read(), key=cache_key)
f.seek(0)

dataset = f.open()

Expand Down Expand Up @@ -108,7 +109,7 @@ def init(self):
nc = self._sources[0].native_coordinates
base_time = datetime.datetime.strptime("%s %s" % (self.date, self.hour), "%Y%m%d %H%M")
forecast_times = [base_time + datetime.timedelta(hours=int(h)) for h in self.forecasts]
tc = Coordinates([[dt.strftime("%Y-%m-%d %H:%M") for dt in forecast_times]], dims=["time"])
tc = Coordinates([[dt.strftime("%Y-%m-%d %H:%M") for dt in forecast_times]], dims=["time"], crs=nc.crs)
self.set_trait("native_coordinates", merge_dims([nc, tc]))

def get_data(self, coordinates, coordinates_index):
Expand Down
2 changes: 1 addition & 1 deletion podpac/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
##############
MAJOR = 1
MINOR = 3
HOTFIX = 0
HOTFIX = 1
##############


Expand Down

0 comments on commit aeba1a3

Please sign in to comment.