Convert observation data files.
More...
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
Convert observation data files.
Definition in file obsfmt.c.
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file obsfmt.c.
29 {
30
32
34
35
36 if (argc < 6)
37 ERRMSG(
"Give parameters: <ctl> <obs_in> <obsfmt_in>"
38 " <obs_out> <obsfmt_out>");
39
40
42
43
44 ctl.
obsfmt = atoi(argv[3]);
46
47
48 ctl.
obsfmt = atoi(argv[5]);
50
51 return EXIT_SUCCESS;
52}
void read_ctl(int argc, char *argv[], ctl_t *ctl)
Read model control parameters from command-line and configuration input.
void read_obs(const char *dirname, const char *filename, const ctl_t *ctl, obs_t *obs)
Read observation data from an input file.
void write_obs(const char *dirname, const char *filename, const ctl_t *ctl, const obs_t *obs)
Write observation data to an output file in ASCII or binary format.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.
int obsfmt
Observation data file format (1=ASCII, 2=binary).
Observation geometry and radiance data.