-
Notifications
You must be signed in to change notification settings - Fork 4
/
NetCDFIO.pxd
77 lines (64 loc) · 3.19 KB
/
NetCDFIO.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
cimport ParallelMPI
cimport TimeStepping
cimport PrognosticVariables
cimport DiagnosticVariables
cimport Grid
cimport ReferenceState
cdef class NetCDFIO_Stats:
cdef:
object root_grp
object profiles_grp
object ts_grp
str stats_file_name
str stats_path
str output_path
str path_plus_file
str uuid
public double last_output_time
public double frequency
public bint do_output
cpdef initialize(self, dict namelist, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef setup_stats_file(self, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef add_profile(self, var_name, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa, units=*, nice_name=*, desc=*)
cpdef add_reference_profile(self, var_name, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa, units=*, nice_name=*, desc=*)
cpdef add_ts(self, var_name, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa, units=*, nice_name=*, desc=*)
cpdef open_files(self, ParallelMPI.ParallelMPI Pa)
cpdef close_files(self, ParallelMPI.ParallelMPI Pa)
cpdef write_profile(self, var_name, double[:] data, ParallelMPI.ParallelMPI Pa)
cpdef write_reference_profile(self, var_name, double[:] data, ParallelMPI.ParallelMPI Pa)
cpdef write_ts(self, var_name, double data, ParallelMPI.ParallelMPI Pa)
cpdef write_simulation_time(self, double t, ParallelMPI.ParallelMPI Pa)
cdef class NetCDFIO_Fields:
cdef:
str fields_file_name
str fields_path
public str output_path
str path_plus_file
str uuid
list diagnostic_fields
public double last_output_time
public double frequency
public bint do_output
cpdef initialize(self, dict namelist, ParallelMPI.ParallelMPI Pa)
cpdef update(self, Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, DiagnosticVariables.DiagnosticVariables DV, TimeStepping.TimeStepping TS, ParallelMPI.ParallelMPI Pa)
cpdef create_fields_file(self, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef dump_prognostic_variables(self, Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV)
cpdef dump_diagnostic_variables(self, Grid.Grid Gr, DiagnosticVariables.DiagnosticVariables DV, ParallelMPI.ParallelMPI Pa)
cpdef dump_vmr(self, Grid.Grid Gr, PrognosticVariables.PrognosticVariables PV, DiagnosticVariables.DiagnosticVariables DV, ReferenceState.ReferenceState Rs)
cpdef add_field(self, name)
cpdef write_field(self, name, double[:] data)
cdef class NetCDFIO_CondStats:
cdef:
str stats_file_name
str stats_path
str output_path
str path_plus_file
str uuid
public double last_output_time
public double frequency
public bint do_output
cpdef initialize(self, dict namelist, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef create_condstats_group(self, str groupname, str dimname, double[:] dimval, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef add_condstat(self, str varname, str groupname, str dimname, Grid.Grid Gr, ParallelMPI.ParallelMPI Pa)
cpdef write_condstat(self, varname, groupname, double[:,:] data, ParallelMPI.ParallelMPI Pa)
cpdef write_condstat_time(self, double t, ParallelMPI.ParallelMPI Pa)