Skip to content

Commit 16c33d8

Browse files
authored
Merge pull request #5 from axiom-data-science/update_now
updates to get working now
2 parents 310b88b + 9fe700a commit 16c33d8

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ intake-coops
55
[![codecov](https://codecov.io/gh/axiom-data-science/intake-coops/branch/main/graph/badge.svg)](https://codecov.io/gh/axiom-data-science/intake-coops) -->
66
[![License:MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
77
<!-- [![conda-forge](https://img.shields.io/conda/dn/conda-forge/intake-coops?label=conda-forge)](https://anaconda.org/conda-forge/intake-coops)[![Documentation Status](https://readthedocs.org/projects/intake-coops/badge/?version=latest)](https://intake-coops.readthedocs.io/en/latest/?badge=latest) -->
8+
[![Python Package Index](https://img.shields.io/pypi/v/intake-coops.svg?style=for-the-badge)](https://pypi.org/project/intake-coops)
89

910

1011
Intake interface to NOAA CO-OPS data
@@ -13,13 +14,22 @@ Uses the [`noaa_coops`](https://github.com/GClunies/noaa_coops) package to read
1314

1415
Currently limited to currents only with limited selections. Returns an `xarray` Dataset, but there are `intake` Sources for both `DataFrame` and `xarray`.
1516

17+
This is intake v1 still.
18+
1619
--------
1720

1821
<p><small>Project based on the <a target="_blank" href="https://github.com/jbusecke/cookiecutter-science-project">cookiecutter science project template</a>.</small></p>
1922

2023

2124
# Installation
2225

26+
## PyPI
27+
28+
>>> pip install intake-coops
29+
30+
31+
## Local installation
32+
2333
Clone from github (HTTPS or SSH)
2434

2535
>>> git clone https://github.com/axiom-data-science/intake-coops.git

intake_coops/coops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def _load(self):
151151
"standard_name": "depth",
152152
"axis": "Z",
153153
}
154-
self._ds["longitude"] = self.metadata["minLongitude"]
154+
self._ds["longitude"] = self.metadata["lon"]
155155
self._ds["longitude"].attrs = {"standard_name": "longitude"}
156-
self._ds["latitude"] = self.metadata["minLatitude"]
156+
self._ds["latitude"] = self.metadata["lat"]
157157
self._ds["latitude"].attrs = {"standard_name": "latitude"}
158158
self._ds = self._ds.assign_coords(
159159
{"longitude": self._ds["longitude"], "latitude": self._ds["latitude"]}

0 commit comments

Comments
 (0)