# coef.tide: Coefficients For Tidal Object In TideHarmonics: Harmonic Analysis of Tides

## Description

Give coefficients and harmonic constituents of a tidal object.

## Usage

 ```1 2``` ```## S3 method for class 'tide' coef(object, hc = FALSE, mat = hc, utc = 0, ...) ```

## Arguments

 `object` An object of class `'tide'`. `hc` If `TRUE`, returns harmonic constituent values, in order of decreasing amplitude. If `mat` is `FALSE`, a vector is returned containing the amplitudes and then the phase lags. If `mat` is `TRUE`, a four column matrix is returned, with the amplitudes, phase lags, sine coefficients and cosine coefficients in the columns. `mat` If `TRUE`, a matrix is returned. `utc` The phase lags are given in UTC plus or minus `utc` hours. For example, if Australian Eastern Standard Time is required, use positive 10. If Pacific Standard Time is required, use negative 8. `...` Not used.

## Value

A numeric vector or numeric matrix of sine and cosine coefficients, or of amplitudes and phase lags. The phase lags are with respect to the time zone specified by the `utc` argument, which is UTC by default.

`ftide`, `predict.tide`

## Examples

 ```1 2 3 4 5 6 7``` ```hfit1 <- ftide(Hillarys\$SeaLevel, Hillarys\$DateTime, hc60) hfit2 <- ftide(Hillarys\$Sea, Hillarys\$Date, hc7, smsl=TRUE) coef(hfit1, hc = TRUE) coef(hfit2) coef(hfit2, mat = TRUE) coef(hfit2, hc = TRUE) coef(hfit2, hc = TRUE, mat = FALSE) ```

### Example output

```            amplitude     phase          sine        cosine
K1       1.732719e-01 197.27892 -5.146585e-02 -1.654522e-01
O1       1.180523e-01 214.42236 -6.673363e-02 -9.738048e-02
Sa       9.930215e-02  47.74336  7.349752e-02  6.677599e-02
P1       5.462103e-02 190.25093 -9.720333e-03 -5.374916e-02
M2       5.238890e-02 109.59391  4.935522e-02 -1.756869e-02
S2       4.500977e-02  87.99711  4.498228e-02  1.573084e-03
Q1       2.956000e-02 219.11983 -1.865072e-02 -2.293348e-02
Mf       2.299727e-02 356.09392 -1.566599e-03  2.294385e-02
S1       2.222997e-02 330.56846 -1.092343e-02  1.936104e-02
Ssa      1.997538e-02 162.93499  5.861905e-03 -1.909591e-02
N2       1.581963e-02 173.34506  1.833331e-03 -1.571304e-02
K2       1.397703e-02  80.40053  1.378131e-02  2.330803e-03
Mm       1.073224e-02  42.10365  7.195687e-03  7.962604e-03
J1       1.037454e-02 205.84569 -4.522770e-03 -9.336788e-03
mu2      7.204241e-03 168.17534  1.476274e-03 -7.051362e-03
MSf      6.631539e-03 145.39677  3.765986e-03 -5.458449e-03
2Q1      5.091115e-03 222.10904 -3.413815e-03 -3.776946e-03
rho1     4.945835e-03 210.10688 -2.480903e-03 -4.278598e-03
M4       4.730138e-03 268.63849 -4.728803e-03 -1.123909e-04
M1       4.728215e-03 257.70345 -4.619742e-03 -1.006975e-03
2N2      4.487748e-03 162.28114  1.365831e-03 -4.274855e-03
sig1     4.368697e-03 223.87389 -3.027828e-03 -3.149250e-03
1S1k.3   4.186592e-03 187.98393 -5.814982e-04 -4.146012e-03
phi1     4.004293e-03 204.11384 -1.635958e-03 -3.654861e-03
1M1S.4   3.561620e-03 319.46445 -2.314767e-03  2.706841e-03
L2       3.224263e-03  71.57365  3.058958e-03  1.019142e-03
T2       3.214105e-03  84.95827  3.201670e-03  2.824595e-04
pi1      3.202501e-03 158.25837  1.186276e-03 -2.974687e-03
OO1      2.926140e-03 211.52466 -1.529978e-03 -2.494287e-03
M3       2.552284e-03 335.07968 -1.075424e-03  2.314652e-03
1M.1p1   2.537144e-03 203.38548 -1.007031e-03 -2.328731e-03
the1     2.149750e-03 175.14775  1.818400e-04 -2.142045e-03
1M1N.1S2 2.069372e-03 152.90251  9.426111e-04 -1.842223e-03
1S.1o1   2.068107e-03 237.12580 -1.736929e-03 -1.122561e-03
1M1N.4   1.720436e-03 234.22071 -1.395748e-03 -1.005878e-03
nu2      1.715486e-03 177.73695  6.773995e-05 -1.714148e-03
chi1     1.642641e-03 164.03419  4.518309e-04 -1.579278e-03
lam2     1.516103e-03  78.93606  1.487924e-03  2.909468e-04
psi1     1.487529e-03 206.50049 -6.637435e-04 -1.331235e-03
1M1k.3   1.420114e-03 249.36289 -1.328988e-03 -5.005162e-04
1M1o.3   1.202512e-03 176.60292  7.125538e-05 -1.200399e-03
1M1K.4   1.060848e-03 313.46381 -7.699731e-04  7.297535e-04
M6       1.003183e-03  91.31960  1.002917e-03 -2.310257e-05
1k1j.2   9.816151e-04 248.45770 -9.130461e-04 -3.604373e-04
S4       8.206406e-04 256.20693 -7.969759e-04 -1.956538e-04
1o1p.2   7.510531e-04  98.61383  7.425814e-04 -1.124882e-04
1S1o.3   7.233209e-04 242.06281 -6.390263e-04 -3.388782e-04
1S1K.4   6.178415e-04 355.24719 -5.119255e-05  6.157170e-04
1S1N.4   5.943436e-04 319.76515 -3.838997e-04  4.537239e-04
1M1K.1S2 4.727751e-04 202.05779 -1.775467e-04 -4.381706e-04
2M1N.6   4.563877e-04  27.85272  2.132245e-04  4.035158e-04
2M1S.6   3.693245e-04 174.01174  3.852968e-05 -3.673092e-04
2S.1M2   3.259897e-04 317.71382 -2.193369e-04  2.411650e-04
1M1S.1N2 2.937267e-04 279.64795 -2.895723e-04  4.922680e-05
1M1S1N.6 2.373596e-04  70.91269  2.243099e-04  7.761864e-05
2M1K.6   1.882948e-04 223.64661 -1.299626e-04 -1.362521e-04
R2       1.510126e-04  52.77261  1.202424e-04  9.135957e-05
1o1q.2   1.307559e-04 234.72735 -1.067508e-04 -7.550733e-05
2S1M.6   9.645688e-05 297.11022 -8.585931e-05  4.395575e-05
1M1S1K.6 5.281075e-05 357.85535 -1.976312e-06  5.277375e-05
M2_S         S2_S         N2_S         K2_S         K1_S         O1_S
0.049340563  0.044955952  0.001768922  0.013816339 -0.051677718 -0.066612320
P1_S         M2_C         S2_C         N2_C         K2_C         K1_C
-0.009757293 -0.017589727  0.001586936 -0.015620284  0.002305508 -0.165327338
O1_C         P1_C
-0.097388086 -0.053747232
sine       cosine
M2  0.049340563 -0.017589727
S2  0.044955952  0.001586936
N2  0.001768922 -0.015620284
K2  0.013816339  0.002305508
K1 -0.051677718 -0.165327338
O1 -0.066612320 -0.097388086
P1 -0.009757293 -0.053747232
amplitude     phase         sine       cosine
K1 0.17321581 197.35811 -0.051677718 -0.165327338
O1 0.11799000 214.37167 -0.066612320 -0.097388086
P1 0.05462572 190.28944 -0.009757293 -0.053747232
M2 0.05238215 109.62096  0.049340563 -0.017589727
S2 0.04498395  87.97831  0.044955952  0.001586936
N2 0.01572013 173.53905  0.001768922 -0.015620284
K2 0.01400738  80.52644  0.013816339  0.002305508
K1_A         O1_A         P1_A         M2_A         S2_A         N2_A
0.17321581   0.11799000   0.05462572   0.05238215   0.04498395   0.01572013
K2_A         K1_P         O1_P         P1_P         M2_P         S2_P
0.01400738 197.35810533 214.37167464 190.28943804 109.62096130  87.97831050
N2_P         K2_P
173.53905301  80.52644072
```

TideHarmonics documentation built on May 2, 2019, 6:34 a.m.