Skip to content

Commit

Permalink
Merge pull request #5 from axiom-data-science/update_now
Browse files Browse the repository at this point in the history
updates to get working now
  • Loading branch information
kthyng authored Jun 21, 2024
2 parents 310b88b + 9fe700a commit 16c33d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<!-- [![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) -->
[![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
Expand All @@ -13,13 +14,22 @@ 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.

--------

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


# 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
Expand Down
4 changes: 2 additions & 2 deletions intake_coops/coops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down

0 comments on commit 16c33d8

Please sign in to comment.