28 : input(new
HdfFile(input_filename))
38 double ExampleMetFile::read_scalar(
const std::string& field)
const 40 return input->read_field<double, 1>(field, TinyVector<int, 1>(data_index), TinyVector<int, 1>(1))(0);
47 Array<double, 1> ExampleMetFile::read_array(
const std::string& Field)
const 49 TinyVector<int, 2> sz = input->read_shape<2>(Field);
50 Array<double, 2> raw = input->read_field<double, 2>(Field, TinyVector<int, 2>(data_index, 0), TinyVector<int, 2>(1, sz[1]));
51 Array<double, 1>
value(raw.extent(secondDim));
53 value = raw(0, Range::all());
ExampleMetFile(const boost::shared_ptr< HdfFile > &input_file, const std::string &observation_id)
Constructor.
Defines the interface for supplying meteorological data.
Defines a simple mechanism by where a specific dataset from a HDF file is read along with some sort o...
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
This class reads and writes a HDF5 file.
Apply value function to a blitz array.
This class implements and example Meteorological reader that reads data from an HDF file with dataset...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
double value(const FullPhysics::AutoDerivative< double > &Ad)