Aether
0.0
Ionosphere-Thermosphere model
include
read_indices_files.h
1
// Copyright 2020, the Aether Development Team (see doc/dev_team.md for members)
2
// Full license can be found in License.md
3
4
#ifndef INCLUDE_READ_INDICES_H_
5
#define INCLUDE_READ_INDICES_H_
6
7
/**************************************************************
8
* A set of routines to read in a number of different indices
9
* files, including the NGDC F10.7 files, and OMNIWeb files.
10
**************************************************************/
11
12
#include <vector>
13
#include <string>
14
15
#include "aether.h"
16
17
/**********************************************************************
18
\brief Reads in all of the indices files and stores them in Indices
19
20
This function goes through all of the input indices files and
21
reads in the files, then stores the values into the Indices class.
22
At this point, it can read in the following file types:
23
1. NGDC F10.7 files.
24
2. OMNIWeb files that include IMF, Solar Wind, and/or AE/AU/AL.
25
26
\param indices the indices class
27
\param args info about how user has configured things
28
\param report allow reporting to occur
29
**/
30
int
read_and_store_indices(
Indices
&indices,
Inputs
args,
Report
&report);
31
32
/**********************************************************************
33
\brief Read the NGDC F10.7 file format and store in the index_file struct
34
\param f107_file the f10.7 file to read in
35
\param report allow reporting to occur
36
**/
37
index_file_output_struct
read_f107_file(std::string f107_file,
38
Indices
indices,
39
Report
&report);
40
41
/**********************************************************************
42
\brief Read the OMNIWeb file format and store in the index_file struct
43
\param omni_file the onmiweb file to read
44
\param indices needed to get the indices index for each variable
45
\param report allow reporting to occur
46
**/
47
index_file_output_struct
read_omni_file(std::string omni_file,
48
Indices
indices,
49
Report
&report);
50
51
/**********************************************************************
52
\brief This code compares a string to return the variable index
53
\param variable_name the name of the variable to match with for OMNIWeb files
54
\param indices needed to get the indices index for each variable
55
**/
56
int
pair_omniweb_index(std::string,
Indices
index);
57
58
/**********************************************************************
59
\brief This code returns the missing value for a given OMNIWeb variable
60
\param variable_name the name of the variable to get the OMNIWeb missing value
61
**/
62
precision_t get_omniweb_missing_value(std::string);
63
64
#endif // INCLUDE_READ_INDICES_H_
index_file_output_struct
Definition:
indices.h:33
Inputs
Definition:
inputs.h:10
Report
Definition:
report.h:28
Indices
Definition:
indices.h:63
Generated by
1.8.17