BISICLES AMR ice sheet model  0.9
fabncio.H
Go to the documentation of this file.
1  #ifdef CH_LANG_CC
2 /*
3 * _______ __
4 * / ___/ / ___ __ _ / / ___
5 * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6 * \___/_//_/\___/_/_/_/_.__/\___/
7 * Please refer to Copyright.txt, in Chombo's root directory.
8 */
9 #endif
10 //===========================================================================
11 // ncio.H
12 // read/write FABs from netcdf files
13 //===========================================================================
14 #ifndef _FABNCIO_H_
15 #define _FABNCIO_H_
16 #include "FArrayBox.H"
17 #include "RealVect.H"
18 #include <map>
19 #include "CH_HDF5.H"
20 #include "DomainDiagnosticData.H"
21 #include "NamespaceHeader.H"
22 
23 #ifdef HAVE_NETCDF
24 namespace NCIO
25 {
26 
27 
29  void writeFAB(const std::string& a_file,
30  const Vector<std::string>& a_names,
31  const Vector<std::string>& a_cf_standard_names,
32  const Vector<std::string>& a_cf_units,
33  const Vector<std::string>& a_cf_long_names,
34  const FArrayBox& a_fab,
35  const Real& a_dx,
36  const RealVect& a_x0,
37  int a_epsg,
38  const DomainDiagnosticData& a_dd,
39  const std::string& a_flattenInfo,
40  const HDF5HeaderData& a_file_header);
41 
43  void readFAB(const std::string& a_file,
44  const Vector<std::string>& a_var,
45  FArrayBox& a_fab,
46  Real& a_dx);
47 
48 
49 
50 }
51 #endif
52 #include "NamespaceFooter.H"
53 #endif
void readFAB(const std::string &a_file, const Vector< std::string > &a_var, FArrayBox &a_fab, Real &a_dx)
read a single FAB from a netcdf file
Definition: fabncio.cpp:356
utility functions needed by writeFAB/readFAB
Definition: fabncio.cpp:27
void writeFAB(const std::string &a_file, const Vector< std::string > &a_names, const Vector< std::string > &a_cf_standard_names, const Vector< std::string > &a_cf_units, const Vector< std::string > &a_cf_long_names, const FArrayBox &a_fab, const Real &a_dx, const RealVect &a_x0, int a_epsg, const DomainDiagnosticData &a_dd, const std::string &a_flattenInfo, const HDF5HeaderData &a_file_header)
write a single FAB to a (CF Compliant) netcdf file
Definition: fabncio.cpp:166
Definition: DomainDiagnosticData.H:88