Skip to content

Commit ac09aa3

Browse files
committed
Rename repository
1 parent e988386 commit ac09aa3

4 files changed

Lines changed: 21 additions & 28 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
![example workflow](https://github.com/neaps/tide-predictor/actions/workflows/test.yml/badge.svg) [![codecov](https://codecov.io/gh/neaps/tide-predictor/branch/main/graph/badge.svg?token=KEJK5NQR5H)](https://codecov.io/gh/neaps/tide-predictor)
1+
![example workflow](https://github.com/neaps/neaps/actions/workflows/test.yml/badge.svg) [![codecov](https://codecov.io/gh/neaps/neaps/branch/main/graph/badge.svg?token=KEJK5NQR5H)](https://codecov.io/gh/neaps/neaps)
22

33
# Neaps
44

55
A tide prediction engine written in TypeScript.
66

7-
> [!CAUTION]
7+
> [!WARNING]
88
> **Not for navigational use**
99
>
1010
> Do not use calculations from this project for navigation, or depend on them in any situation where inaccuracies could result in harm to a person or property. Tide predictions are only as good as the harmonics data available, and these can be inconsistent and vary widely based on the accuracy of the source data and local conditions. The tide predictions do not factor events such as storm surge, wind waves, uplift, tsunamis, or sadly, climate change. 😢

packages/neaps/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"tides",
77
"harmonics"
88
],
9-
"homepage": "https://github.com/neaps/tide-predictor#readme",
9+
"homepage": "https://github.com/neaps/neaps#readme",
1010
"bugs": {
11-
"url": "https://github.com/neaps/tide-predictor/issues"
11+
"url": "https://github.com/neaps/neaps/issues"
1212
},
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/neaps/tide-predictor.git"
15+
"url": "git+https://github.com/neaps/neaps.git",
16+
"directory": "packages/neaps"
1617
},
1718
"license": "MIT",
1819
"author": "Brandon Keepers <brandon@openwaters.io>",

packages/tide-predictor/README.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,23 @@
1-
![example workflow](https://github.com/neaps/tide-predictor/actions/workflows/test.yml/badge.svg) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor?ref=badge_shield) [![codecov](https://codecov.io/gh/neaps/tide-predictor/branch/main/graph/badge.svg?token=KEJK5NQR5H)](https://codecov.io/gh/neaps/tide-predictor)
2-
3-
# Tide predictor
1+
# @neaps/tide-predictor
42

53
A tide harmonic calculator written in TypeScript.
64

75
<!-- START DOCS -->
86

9-
## 🚨Warning🚨
10-
11-
**Do not use calculations from this project for navigation, or depend on them in any situation where inaccuracies could result in harm to a person or property.**
12-
13-
Tide predictions are only as good as the harmonics data available, and these can be inconsistent and vary widely based on the accuracy of the source data and local conditions.
14-
15-
The tide predictions do not factor events such as storm surge, wind waves, uplift, tsunamis, or sadly, climate change. 😢
7+
> [!WARNING]
8+
> **Not for navigational use**
9+
>
10+
> Do not use calculations from this project for navigation, or depend on them in any situation where inaccuracies could result in harm to a person or property. Tide predictions are only as good as the harmonics data available, and these can be inconsistent and vary widely based on the accuracy of the source data and local conditions. The tide predictions do not factor events such as storm surge, wind waves, uplift, tsunamis, or sadly, climate change. 😢
1611
1712
# Installation
1813

19-
```
20-
#npm
14+
```sh
2115
npm install @neaps/tide-predictor
22-
23-
# yarn
24-
yarn add @neaps/tide-predictor
25-
2616
```
2717

2818
# Usage
2919

30-
Neaps requires that you [provide your own tidal harmonics information](#constituent-object) to generate a prediction.
31-
32-
Because many constituent datum come with multiple phases (in the case of NOAA's data, they are `phase_local` and `phase_GMT`), there is a `phaseKey` option for choosing which to use.
33-
34-
Note that, for now, Neaps **will not** do any timezone corrections. This means you need to pass date objects that align with whatever timezone the constituents are in.
20+
`@neaps/tide-predictor` requires that you [provide your own tidal harmonics information](#constituent-object) to generate a prediction. For a complete tide prediction solution, including finding nearby stations and their harmonics, check out the [`neaps` package](https://github.com/neaps/neaps).
3521

3622
```typescript
3723
import TidePredictor from '@neaps/tide-predictor'
@@ -55,13 +41,15 @@ const highLowTides = TidePredictor(constituents, {
5541
})
5642
```
5743

44+
Note that, for now, Neaps **will not** do any timezone corrections. This means you need to pass date objects that align with whatever timezone the constituents are in.
45+
5846
## Tide prediction object
5947

6048
Calling `tidePredictor` will generate a new tide prediction object. It accepts the following arguments:
6149

6250
- `constituents` - An array of [constituent objects](#constituent-object)
6351
- `options` - An object with one of:
64-
- `phaseKey` - The name of the parameter within constituents that is considered the "phase"
52+
- `phaseKey` - The name of the parameter within constituents that is considered the "phase" because many constituent datum come with multiple phases (in the case of NOAA's data, they are `phase_local` and `phase_GMT`).
6553
- `offset` - A value to add to **all** values predicted. This is useful if you want to, for example, offset tides by mean high water, etc.
6654

6755
### Tide prediction methods

packages/tide-predictor/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "@neaps/tide-predictor",
33
"version": "0.1.1",
44
"description": "Tide predictor",
5-
"repository": "https://github.com/neaps/tide-predictor",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/neaps/neaps",
8+
"directory": "packages/tide-predictor"
9+
},
610
"author": "Kevin Miller <keveemiller@gmail.com>",
711
"license": "MIT",
812
"type": "module",

0 commit comments

Comments
 (0)