MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_tides.h
Go to the documentation of this file.
1/*------------------------------------------------------------------------------
2 * mrtk_tides.h : tide displacement correction functions
3 *
4 * Copyright (C) 2026 H.SHIONO (MRTKLIB Project)
5 * Copyright (C) 2023-2025 Cabinet Office, Japan
6 * Copyright (C) 2024-2025 Lighthouse Technology & Consulting Co. Ltd.
7 * Copyright (C) 2023-2025 Japan Aerospace Exploration Agency
8 * Copyright (C) 2023-2025 TOSHIBA ELECTRONIC TECHNOLOGIES CORPORATION
9 * Copyright (C) 2015- Mitsubishi Electric Corp.
10 * Copyright (C) 2014 Geospatial Information Authority of Japan
11 * Copyright (C) 2014 T.SUZUKI
12 * Copyright (C) 2007-2023 T.TAKASU
13 *
14 * SPDX-License-Identifier: BSD-2-Clause
15 *----------------------------------------------------------------------------*/
16/**
17 * @file mrtk_tides.h
18 * @brief MRTKLIB Tides Module — Tidal displacement corrections.
19 *
20 * This header declares the public tidal displacement function (tidedisp)
21 * extracted from tides.c.
22 *
23 * @note All functions in this module are pure cut-and-paste extractions
24 * from tides.c with zero algorithmic changes.
25 */
26#ifndef MRTK_TIDES_H
27#define MRTK_TIDES_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "mrtklib/mrtk_peph.h"
34#include "mrtklib/mrtk_time.h"
35
36/*============================================================================
37 * Tidal Displacement Functions
38 *===========================================================================*/
39
40/**
41 * @brief Compute displacements by earth tides.
42 * @param[in] tutc Time in UTC
43 * @param[in] rr Site position (ECEF) (m)
44 * @param[in] opt Options (bitwise OR):
45 * 1: solid earth tide
46 * 2: ocean tide loading
47 * 4: pole tide
48 * 8: eliminate permanent deformation
49 * @param[in] erp Earth rotation parameters (NULL: not used)
50 * @param[in] odisp Ocean loading parameters (NULL: not used)
51 * odisp[0+i*6]: constituent i amplitude radial (m)
52 * odisp[1+i*6]: constituent i amplitude west (m)
53 * odisp[2+i*6]: constituent i amplitude south (m)
54 * odisp[3+i*6]: constituent i phase radial (deg)
55 * odisp[4+i*6]: constituent i phase west (deg)
56 * odisp[5+i*6]: constituent i phase south (deg)
57 * (i=0:M2,1:S2,2:N2,3:K2,4:K1,5:O1,6:P1,7:Q1,
58 * 8:Mf,9:Mm,10:Ssa)
59 * @param[out] dr Displacement by earth tides (ECEF) (m)
60 */
61void tidedisp(gtime_t tutc, const double* rr, int opt, const erp_t* erp, const double* odisp, double* dr);
62
63/**
64 * @brief Compute displacement by ocean tide loading (11 constituents).
65 * @param[in] tut Time in UT
66 * @param[in] odisp Ocean tide loading parameters (6*11 values)
67 * @param[out] denu Displacement in ENU (m)
68 */
69void tide_oload(gtime_t tut, const double* odisp, double* denu);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* MRTK_TIDES_H */
MRTKLIB Precise Ephemeris Module — Earth rotation parameter types and ERP I/O functions.
void tidedisp(gtime_t tutc, const double *rr, int opt, const erp_t *erp, const double *odisp, double *dr)
Compute displacements by earth tides.
Definition mrtk_tides.c:261
void tide_oload(gtime_t tut, const double *odisp, double *denu)
Compute displacement by ocean tide loading (11 constituents).
Definition mrtk_tides.c:146
MRTKLIB Time Module — GNSS time types and conversion functions.
ERP (earth rotation parameter) type.
Definition mrtk_peph.h:59
GNSS time representation.
Definition mrtk_time.h:49