Skip to content

Commit

Permalink
cleaned up and added attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng committed Jun 22, 2023
1 parent e7968a5 commit 61757b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions intake_coops/coops.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ def _load(self):
.pivot_table(index=inds)
.to_xarray()
)
self._ds["t"].attrs = {"standard_name": "time"}
self._ds["depth"].attrs = {
"standard_name": "depth",
"axis": "Z",
}
self._ds["longitude"] = self.metadata["minLongitude"]
self._ds["longitude"].attrs = {"standard_name": "longitude"}
self._ds["latitude"] = self.metadata["minLatitude"]
self._ds["latitude"].attrs = {"standard_name": "latitude"}
self._ds = self._ds.assign_coords(
{"longitude": self._ds["longitude"], "latitude": self._ds["latitude"]}
)
if self._process_adcp:
self.process_adcp()

Expand Down

0 comments on commit 61757b0

Please sign in to comment.