diff --git a/README.md b/README.md index e3a1887..7eb9eff 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ intake-coops [![codecov](https://codecov.io/gh/axiom-data-science/intake-coops/branch/main/graph/badge.svg)](https://codecov.io/gh/axiom-data-science/intake-coops) --> [![License:MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT) +[![Python Package Index](https://img.shields.io/pypi/v/intake-coops.svg?style=for-the-badge)](https://pypi.org/project/intake-coops) Intake interface to NOAA CO-OPS data @@ -13,6 +14,8 @@ Uses the [`noaa_coops`](https://github.com/GClunies/noaa_coops) package to read Currently limited to currents only with limited selections. Returns an `xarray` Dataset, but there are `intake` Sources for both `DataFrame` and `xarray`. +This is intake v1 still. + --------
Project based on the cookiecutter science project template.
@@ -20,6 +23,13 @@ Currently limited to currents only with limited selections. Returns an `xarray` # Installation +## PyPI + + >>> pip install intake-coops + + +## Local installation + Clone from github (HTTPS or SSH) >>> git clone https://github.com/axiom-data-science/intake-coops.git diff --git a/intake_coops/coops.py b/intake_coops/coops.py index d84da19..f2d16b1 100644 --- a/intake_coops/coops.py +++ b/intake_coops/coops.py @@ -151,9 +151,9 @@ def _load(self): "standard_name": "depth", "axis": "Z", } - self._ds["longitude"] = self.metadata["minLongitude"] + self._ds["longitude"] = self.metadata["lon"] self._ds["longitude"].attrs = {"standard_name": "longitude"} - self._ds["latitude"] = self.metadata["minLatitude"] + self._ds["latitude"] = self.metadata["lat"] self._ds["latitude"].attrs = {"standard_name": "latitude"} self._ds = self._ds.assign_coords( {"longitude": self._ds["longitude"], "latitude": self._ds["latitude"]}