ReFRACtor
output_hdf.h
Go to the documentation of this file.
1 #ifndef OUTPUT_HDF_H
2 #define OUTPUT_HDF_H
3 #include "output.h"
4 #include "hdf_file_generating.h"
5 
6 namespace FullPhysics {
7 /****************************************************************/
46 class OutputHdf : public OutputTemplate<OutputHdf> {
47 public:
48  OutputHdf(const std::string& Fname, int Num_level, int Statevector_size,
49  int Num_aerosol, int Number_band);
50  OutputHdf(const boost::shared_ptr<HdfFileGenerating>& H, int Num_level,
51  int Statevector_size, int Num_aerosol, int Number_band);
52  virtual ~OutputHdf() {}
53  virtual void print(std::ostream& Os) const {Os << "OutputHdf";}
54 protected:
55  virtual void start_write();
56  virtual void end_because_of_error();
57  template<class T> void write_data_t(const std::string& Dataset_name,
58  T Val);
59  template<class T> void write_data_t(const std::string& Dataset_name,
60  const blitz::Array<T, 1>& Val);
61  template<class T> void write_data_t(const std::string& Dataset_name,
62  const blitz::Array<T, 2>& Val);
63  template<class T> void write_data_t(const std::string& Dataset_name,
64  const blitz::Array<T, 3>& Val);
65  friend class OutputTemplate<OutputHdf>;
66 private:
67  int num_level, statevector_size, num_aerosol, num_band;
69  void write_dimension_metadata();
70  void write_shape_metadata();
71  void initialize();
72 };
73 }
74 #endif
This write the output of the Level 2 Full physics.
Definition: output_hdf.h:46
virtual void end_because_of_error()
Notify when an error occurred.
Definition: output_hdf.cc:67
virtual void print(std::ostream &Os) const
Definition: output_hdf.h:53
void write_data_t(const std::string &Dataset_name, T Val)
Definition: output_hdf.cc:117
Most of the time the write_data needed by Output is best done through a template. ...
Definition: output.h:276
virtual void start_write()
Notify derived class that we are starting to write data.
Definition: output_hdf.cc:61
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
OutputHdf(const std::string &Fname, int Num_level, int Statevector_size, int Num_aerosol, int Number_band)
Constructor. This takes the file name to write.
Definition: output_hdf.cc:13

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10