MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_station.c File Reference

MRTKLIB Station Module — Implementation. More...

#include "mrtklib/mrtk_station.h"
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "mrtklib/mrtk_trace.h"
Include dependency graph for mrtk_station.c:

Go to the source code of this file.

Macros

#define PI   3.1415926535897932 /* pi */
#define D2R   (PI / 180.0) /* deg to rad */

Functions

int readblqrecord (FILE *fp, double *odisp)
 Read a single BLQ record (6 lines x 11 values).
int readelmask (const char *file, int16_t *elmask)
 Read elevation mask file.
void readpos (const char *file, const char *rcv, double *pos)
 Read station positions from file.
int readblq (const char *file, const char *sta, double *odisp)
 Read BLQ ocean tide loading parameters.

Detailed Description

MRTKLIB Station Module — Implementation.

All functions and static data in this file are cut-and-paste extractions from the legacy rtkcmn.c with zero algorithmic changes.

Definition in file mrtk_station.c.

Macro Definition Documentation

◆ D2R

#define D2R   (PI / 180.0) /* deg to rad */

Definition at line 42 of file mrtk_station.c.

◆ PI

#define PI   3.1415926535897932 /* pi */

Definition at line 41 of file mrtk_station.c.

Function Documentation

◆ readblq()

int readblq ( const char * file,
const char * sta,
double * odisp )
extern

Read BLQ ocean tide loading parameters.

Parameters
[in]fileBLQ ocean tide loading parameter file
[in]staStation name
[out]odispOcean tide loading parameters
Returns
Status (1:ok, 0:file open error)

Definition at line 179 of file mrtk_station.c.

References readblqrecord(), and trace().

Referenced by readotl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readblqrecord()

int readblqrecord ( FILE * fp,
double * odisp )
extern

Read a single BLQ record (6 lines x 11 values).

Parameters
[in]fpOpen file pointer
[out]odispOcean tide loading parameters (6*11 values)
Returns
1:ok, 0:format error or EOF

Definition at line 49 of file mrtk_station.c.

Referenced by readblq(), and readblqgrid().

Here is the caller graph for this function:

◆ readelmask()

int readelmask ( const char * file,
int16_t * elmask )
extern

Read elevation mask file.

Parameters
[in]fileElevation mask file
[out]elmaskElevation mask vector (360 x 1) (0.1 deg) elmask[i]: elevation mask at azimuth i (deg)
Returns
Status (1:ok, 0:file open error)
Note
Text format: AZ EL per line. Text after %% or # is comment.

Definition at line 90 of file mrtk_station.c.

References trace().

Here is the call graph for this function:

◆ readpos()

void readpos ( const char * file,
const char * rcv,
double * pos )
extern

Read station positions from file.

Parameters
[in]fileStation position file (lat lon height name per line)
[in]rcvStation name to search
[out]posStation position {lat,lon,h} (rad/m) (all 0 if search error)

Definition at line 135 of file mrtk_station.c.

References D2R, stas, and trace().

Here is the call graph for this function: