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/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 36 of file shapes-main.cpp.
References basegrp, icedb::Examples::Shapes::ShapeRequiredData::particle_id, icedb::Examples::Shapes::readTextFile(), icedb::Examples::Shapes::ShapeDataBasic::required, and resolution_um.
icedb::Groups::Group::Group_ptr basegrp |
Shapes get written to this location in the output database.
Definition at line 34 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 26 of file shapes-main.cpp.
float resolution_um = 0 |
The resolution of each shape lattice, in micrometers.
Definition at line 32 of file shapes-main.cpp.