Skip to content

Commit 00cdcf9

Browse files
authored
more documentation standardization (#47)
simplify GOT and FES inputs to be similar to OTIS output constituent IDs from GOT read program
1 parent 2e46286 commit 00cdcf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+306
-264
lines changed

doc/source/user_guide/bilinear_interp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ data = bilinear_interp(ilon,ilat,idata,lon,lat)
1010
```
1111
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/bilinear_interp.py)
1212

13-
#### Inputs
13+
#### Arguments
1414
1. `ilon`: longitude of tidal model
1515
2. `ilat`: latitude of tidal model
1616
3. `idata`: tide model data
1717
4. `lon`: output longitude
1818
5. `lat`: output latitude
1919

20-
#### Options
20+
#### Keyword arguments
2121
- `fill_value`: invalid value
2222
- `dtype`: output data type
2323

24-
#### Outputs
24+
#### Returns
2525
- `data`: interpolated data

doc/source/user_guide/calc_astrol_longitudes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ s,h,p,N,PP = calc_astrol_longitudes(MJD, ASTRO5=True)
1212
```
1313
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/calc_astrol_longitudes.py)
1414

15-
#### Inputs
15+
#### Arguments
1616
1. `MJD`: Modified Julian Day of input date
1717

18-
#### Options
18+
#### Keyword arguments
1919
- `MEEUS`: use additional coefficients from Meeus Astronomical Algorithms
2020
- `ASTRO5`: use Meeus Astronomical coefficients as implemented in ASTRO5
2121

22-
#### Outputs
22+
#### Returns
2323
- `s`: mean longitude of moon (degrees)
2424
- `h`: mean longitude of sun (degrees)
2525
- `p`: mean longitude of lunar perigee (degrees)

doc/source/user_guide/calc_delta_time.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ deltat = calc_delta_time(delta_file, idays)
1010
```
1111
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/calc_delta_time.py)
1212

13-
#### Inputs
14-
1. `delta_file`:
15-
- http://maia.usno.navy.mil/ser7/deltat.data
16-
- ftp://cddis.nasa.gov/products/iers/deltat.data
17-
2. `idays`: times to interpolate as days since 1992-01-01T00:00:00
13+
#### Arguments
14+
1. `delta_file`:
15+
- http://maia.usno.navy.mil/ser7/deltat.data
16+
- ftp://cddis.nasa.gov/products/iers/deltat.data
17+
2. `idays`: times to interpolate as days since 1992-01-01T00:00:00
1818

19-
#### Outputs
19+
#### Returns
2020
- `deltat`: (TT - UT1) in days

doc/source/user_guide/compute_equilibrium_tide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ compute_equilibrium_tide.py
22
===========================
33

44
- Calculates the long-period equilibrium ocean tides using fifteen spectral lines from Cartwright-Tayler-Edden tables
5-
- Can be used to calculate tidal corrections for imagery
5+
- Can be used to calculate tidal corrections for imagery
66

77
#### Calling Sequence
88
```python
@@ -11,9 +11,9 @@ lpet = compute_equilibrium_tide(time,lat)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/compute_equilibrium_tide.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `t`: days relative to Jan 1, 1992 (48622mjd)
1616
2. `lat`: latitudes in degrees
1717

18-
#### Outputs
18+
#### Returns
1919
- `lpet`: long-period equilibrium tide values

doc/source/user_guide/compute_tide_corrections.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ tide = compute_tide_corrections(x, y, delta_time, DIRECTORY=DIRECTORY,
1414
```
1515
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/compute_tide_corrections.py)
1616

17-
#### Inputs
17+
#### Arguments
1818
1. `x`: x-coordinates in projection EPSG
1919
2. `y`: y-coordinates in projection EPSG
2020
3. `delta_time`: seconds since EPOCH
2121

22-
#### Options
22+
#### Keyword arguments
2323
- `DIRECTORY`: working data directory for tide models
2424
- `MODEL`: Tide model to use in correction
2525
- `EPOCH`: time period for calculating delta times
@@ -40,5 +40,5 @@ tide = compute_tide_corrections(x, y, delta_time, DIRECTORY=DIRECTORY,
4040
- `EXTRAPOLATE`: Extrapolate with nearest-neighbors
4141
- `FILL_VALUE`: output invalid value
4242

43-
#### Outputs
43+
#### Returns
4444
- `tide`: tide height correction reconstructed using the nodal corrections

doc/source/user_guide/convert_ll_xy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ lon,lat = convert_ll_xy(x,y,PROJ,'B')
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/convert_ll_xy.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `i1`: longitude ('F') or projection easting x ('B')
1616
2. `i2`: latitude ('F') or projection northing y ('B')
1717
3. `PROJ`: spatial reference system code for coordinate transformations
1818
4. `BF`: backwards ('B') or forward ('F') translations
1919

20-
#### Options
20+
#### Keyword arguments
2121
- `EPSG`: spatial reference system code for input (F) and output (B) coordinates
2222

23-
#### Outputs
23+
#### Returns
2424
- `o1`: projection easting x ('F') or longitude ('B')
2525
- `o2`: projection northing y ('F') or latitude ('B')

doc/source/user_guide/iers_mean_pole.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ x,y,flag = iers_mean_pole(input_file,input_epoch,version,FILL_VALUE=FILL_VALUE)
1212
```
1313
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/iers_mean_pole.py)
1414

15-
#### Inputs
15+
#### Arguments
1616
1. `input_file`: full path to mean-pole.tab file provided by IERS
17-
2. `input_epoch`: dates for which the angular coordinates of the Conventional Mean Pole are desired in decimal years
17+
2. `input_epoch`: dates for which the angular coordinates of the Conventional Mean Pole are desired in decimal years
1818
3. `version`: Year of the conventional model (2003, 2010, 2015)
1919

20-
#### Options
20+
#### Keyword arguments
2121
- `FILL_VALUE`: value for invalid flags
2222

23-
#### Outputs
23+
#### Returns
2424
- `x`: Angular coordinate x of conventional mean pole [arcsec]
2525
- `y`: Angular coordinate y of conventional mean pole [arcsec]
2626
- `flag`: epoch is valid for version and version number is valid

doc/source/user_guide/infer_minor_corrections.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ dh = infer_minor_corrections(t, zmajor, constituents,
1212
```
1313
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/infer_minor_corrections.py)
1414

15-
#### Inputs
15+
#### Arguments
1616
1. `t`: days relative to Jan 1, 1992 (48622mjd)
1717
2. `zmajor`: Complex oscillations for given constituents/points
1818
3. `constituents`: tidal constituent IDs
1919

20-
#### Options
20+
#### Keyword arguments
2121
- `DELTAT`: time correction for converting to Ephemeris Time (days)
2222
- `CORRECTIONS`: use nodal corrections from OTIS/ATLAS or GOT models
2323

24-
#### Outputs
24+
#### Returns
2525
- `dh`: height from minor constituents

doc/source/user_guide/load_constituent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ amplitude,phase,omega,alpha,species = load_constituent(c)
1010
```
1111
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/load_constituent.py)
1212

13-
#### Inputs
13+
#### Arguments
1414
1. `c`: tidal constituent IDs
1515

16-
#### Outputs
16+
#### Returns
1717
- `amplitude`: amplitude of equilibrium tide in m for tidal constituent
1818
- `phase`: phase of tidal constituent
1919
- `omega`: angular frequency of constituent in radians

doc/source/user_guide/load_nodal_corrections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ pu,pf,G = load_nodal_corrections(MJD,constituents)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/load_nodal_corrections.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `MJD`: Modified Julian Day of input date
1616
2. `zmajor`: Complex oscillations for given constituents/points
1717
3. `constituents`: tidal constituent IDs
1818

19-
#### Outputs
19+
#### Returns
2020
- `pu`,`pf`: nodal corrections for the constituents
2121
- `G`: phase correction in degrees

doc/source/user_guide/nearest_extrap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ data = nearest_extrap(ilon,ilat,idata,lon,lat)
1010
```
1111
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/nearest_extrap.py)
1212

13-
#### Inputs
13+
#### Arguments
1414
1. `ilon`: longitude of tidal model
1515
2. `ilat`: latitude of tidal model
1616
3. `idata`: tide model data
1717
4. `lon`: output longitude
1818
5. `lat`: output latitude
1919

20-
#### Options
20+
#### Keyword arguments
2121
- `fill_value`: invalid value
2222
- `dtype`: output data type
2323
- `cutoff`: return only neighbors within distance in kilometers
2424
- `EPSG`: projection of tide model data
2525

26-
#### Outputs
26+
#### Returns
2727
- `data`: interpolated data

doc/source/user_guide/output_otis_tides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ output_otis_transport(transport_file,u,v,xlim,ylim,constituents)
1313
```
1414
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/output_otis_tides.py)
1515

16-
#### Inputs
16+
#### Arguments
1717
- `output_otis_grid()`
1818
1. `grid_file`: output OTIS grid file name
1919
2. `xlim`: x-coordinate grid-cell edges of output grid

doc/source/user_guide/predict_tidal_ts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ predict_tidal_ts.py
22
===================
33

44
- Predict tidal time series at a location using harmonic constants
5-
- Can be used to calculate errors as compared to tide gauges or to predict tides at a point
5+
- Can be used to calculate errors as compared to tide gauges or to predict tides at a point
66

77
#### Calling Sequence
88
```python
@@ -11,14 +11,14 @@ ht = predict_tidal_ts(time,hc,con)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/predict_tidal_ts.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `time`: days relative to Jan 1, 1992 (48622mjd)
1616
2. `hc`: harmonic constant vector (complex)
1717
3. `constituents`: tidal constituent IDs
1818

19-
#### Options
19+
#### Keyword arguments
2020
- `DELTAT`: time correction for converting to Ephemeris Time (days)
2121
- `CORRECTIONS`: use nodal corrections from OTIS/ATLAS or GOT models
2222

23-
#### Outputs
23+
#### Returns
2424
- `ht`: time series reconstructed using the nodal corrections

doc/source/user_guide/predict_tide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ predict_tide.py
22
===============
33

44
- Predict tides at a single time using harmonic constants
5-
- Can be used to calculate tidal corrections for imagery
5+
- Can be used to calculate tidal corrections for imagery
66

77
#### Calling Sequence
88
```python
@@ -11,14 +11,14 @@ ht = predict_tide(time,hc,con)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/predict_tide.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `time`: days relative to Jan 1, 1992 (48622mjd)
1616
2. `hc`: harmonic constant vector (complex)
1717
3. `constituents`: tidal constituent IDs
1818

19-
#### Options
19+
#### Keyword arguments
2020
- `DELTAT`: time correction for converting to Ephemeris Time (days)
2121
- `CORRECTIONS`: use nodal corrections from OTIS/ATLAS or GOT models
2222

23-
#### Outputs
23+
#### Returns
2424
- `ht`: tide values reconstructed using the nodal corrections
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
predict_tide_drift.py
22
===============
33

4-
- Predict tides at multiple times and locations using harmonic constants
5-
- Can be used to calculate tidal corrections for airborne and satellite altimetry
4+
- Predict tides at multiple times and locations using harmonic constants
5+
- Can be used to calculate tidal corrections for airborne and satellite altimetry
66

77
#### Calling Sequence
88
```python
@@ -11,14 +11,14 @@ ht = predict_tide_drift(time,hc,con)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/predict_tide_drift.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `time`: days relative to Jan 1, 1992 (48622mjd)
1616
2. `hc`: harmonic constant vector (complex)
1717
3. `constituents`: tidal constituent IDs
1818

19-
#### Options
19+
#### Keyword arguments
2020
- `DELTAT`: time correction for converting to Ephemeris Time (days)
2121
- `CORRECTIONS`: use nodal corrections from OTIS/ATLAS or GOT models
2222

23-
#### Outputs
23+
#### Returns
2424
- `ht`: time series reconstructed using the nodal corrections

doc/source/user_guide/read_FES_model.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ read_FES_model.py
99
#### Calling Sequence
1010
```python
1111
from pyTMD.read_FES_model import read_FES_model
12-
amp,ph = read_FES_model(ilon,ilat,directory,model_files,TYPE='z',
12+
amp,ph = read_FES_model(ilon, ilat, model_files, TYPE='z',
1313
VERSION=version,METHOD='spline',GZIP=True,SCALE=1.0/100.0)
1414
```
1515
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/read_FES_model.py)
1616

17-
#### Inputs
17+
#### Arguments
1818
1. `ilon`: longitude to interpolate
1919
2. `ilat`: latitude to interpolate
20-
3. `directory`: data directory for tide data files
21-
4. `model_files`: list of model files for each constituent
20+
3. `model_files`: list of model files for each constituent
2221

23-
#### Options
22+
#### Keyword arguments
2423
- `TYPE`: tidal variable to read
2524
* `'z'`: heights
2625
* `'u'`: horizontal transport velocities
@@ -37,6 +36,6 @@ amp,ph = read_FES_model(ilon,ilat,directory,model_files,TYPE='z',
3736
- `GZIP`: input files are compressed
3837
- `SCALE`: scaling factor for converting to output units
3938

40-
#### Outputs
39+
#### Returns
4140
- `amplitude`: amplitudes of tidal constituents
4241
- `phase`: phases of tidal constituents
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
read_GOT_model.py
22
=================
33

4-
- Reads files for Richard Ray's Global Ocean Tide (GOT) models
5-
- Spatially interpolates tidal constituents to input coordinates
4+
- Reads files for Richard Ray's Global Ocean Tide (GOT) models
5+
- Spatially interpolates tidal constituents to input coordinates
66

77
#### Calling Sequence
88
```python
99
from pyTMD.read_GOT_model import read_GOT_model
10-
amp,ph = read_GOT_model(ilon,ilat,directory,model_files,METHOD='spline')
10+
amp,ph,c = read_GOT_model(ilon,ilat,model_files,METHOD='spline')
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/read_GOT_model.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `ilon`: longitude to interpolate
1616
2. `ilat`: latitude to interpolate
17-
3. `directory`: data directory for tide data files
18-
4. `model_files`: list of model files for each constituent
17+
3. `model_files`: list of model files for each constituent
1918

20-
#### Options
19+
#### Keyword arguments
2120
- `METHOD`: interpolation method
2221
* `'bilinear'`: quick bilinear interpolation
2322
* `'spline'`: scipy bivariate spline interpolation
2423
* `'linear'`, `'nearest'`: scipy regular grid interpolations
2524
- `GZIP`: input files are compressed
2625
- `SCALE`: scaling factor for converting to output units
2726

28-
#### Outputs
27+
#### Returns
2928
- `amplitude`: amplitudes of tidal constituents
3029
- `phase`: phases of tidal constituents
30+
- `constituents`: list of model constituents

doc/source/user_guide/read_iers_EOP.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
read_iers_EOP.py
22
================
33

4-
- Provides the [daily earth orientation parameters (EOP) from IERS](http://www.usno.navy.mil/USNO/earth-orientation/eo-products/weekly)
5-
- Data format: http://maia.usno.navy.mil/ser7/readme.finals
4+
- Provides the [daily earth orientation parameters (EOP) from IERS](http://www.usno.navy.mil/USNO/earth-orientation/eo-products/weekly)
5+
- Data format: http://maia.usno.navy.mil/ser7/readme.finals
66

77
#### Calling Sequence
88
```python
@@ -11,10 +11,10 @@ MJD,x,y,flag = read_iers_EOP(input_file)
1111
```
1212
[Source code](https://github.com/tsutterley/pyTMD/blob/main/pyTMD/read_iers_EOP.py)
1313

14-
#### Inputs
14+
#### Arguments
1515
1. `input_file`: full path to IERS EOP "finals" file
1616

17-
#### Outputs
17+
#### Returns
1818
- `MJD`: modified Julian date of EOP measurements
1919
- `x`: Angular coordinate [arcsec]
2020
- `y`: Angular coordinate [arcsec]

0 commit comments

Comments
 (0)