|
icedb
version 0.5.1
Snow particle scattering database API
|
#include <icedb/defs.h>#include <boost/program_options.hpp>#include <iostream>#include <memory>#include <string>#include <vector>#include <icedb/shape.hpp>#include <icedb/Database.hpp>#include <icedb/error.hpp>#include <icedb/fs_backend.hpp>#include "shape.hpp"#include "shapeIOtext.hpp"
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Variables | |
| const std::map< std::string, std::set< sfs::path > > | file_formats |
| 3d_structures_example program - Shows you how to write a shape More... | |
| float | resolution_um = 0 |
| The resolution of each shape lattice, in micrometers. More... | |
| icedb::Groups::Group::Group_ptr | basegrp |
| Shapes get written to this location in the output database. More... | |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 38 of file shapes-main.cpp.
References basegrp, icedb::fs::impl::collectDatasetFiles(), ICEDB_throw, icedb::Examples::Shapes::ShapeDataBasic::optional, icedb::Examples::Shapes::ShapeRequiredData::particle_id, icedb::Examples::Shapes::ShapeCommonOptionalData::particle_scattering_element_spacing, icedb::Examples::Shapes::readPSUfile(), icedb::Examples::Shapes::readTextFile(), icedb::Examples::Shapes::ShapeDataBasic::required, resolution_um, icedb::Examples::Shapes::ShapeDataBasic::toShape(), and icedb::error::xBadInput.

| icedb::Groups::Group::Group_ptr basegrp |
Shapes get written to this location in the output database.
Definition at line 36 of file shapes-main.cpp.
| const std::map<std::string, std::set<sfs::path> > file_formats |
3d_structures_example program - Shows you how to write a shape
This program reads shape files (in ADDA or DDSCAT formats) and writes an HDF5/netCDF file as an output. The program demonstrates how to create shapes using the library's C++ interface.
Here's how the program works:
Definition at line 27 of file shapes-main.cpp.
| float resolution_um = 0 |
The resolution of each shape lattice, in micrometers.
Definition at line 34 of file shapes-main.cpp.
1.8.13