FlowSieve  3.0.0
Coarse Graining Routines
Public Member Functions | Public Attributes | List of all members
dataset Class Reference

Class to store main variables. More...

#include <functions.hpp>

Public Member Functions

void load_time (const std::string dim_name, const std::string filename)
 
void load_depth (const std::string dim_name, const std::string filename)
 
void load_latitude (const std::string dim_name, const std::string filename)
 
void load_longitude (const std::string dim_name, const std::string filename)
 
void compute_cell_areas ()
 
void load_variable (const std::string var_name, const std::string var_name_in_file, const std::string filename, const bool read_mask=true, const bool load_counts=true, const bool do_splits=true)
 
void load_region_definitions (const std::string filename, const std::string dim_name, const std::string var_name, const MPI_Comm=MPI_COMM_WORLD)
 
void compute_region_areas ()
 
void check_processor_divisions (const int Nprocs_in_time_input, const int Nprocs_in_depth_input, const MPI_Comm=MPI_COMM_WORLD)
 

Public Attributes

int Nprocs_in_time
 
int Nprocs_in_depth
 
std::vector< double > time
 
std::vector< double > depth
 
std::vector< double > latitude
 
std::vector< double > longitude
 
int Ntime = -1
 
int Ndepth = -1
 
int Nlat = -1
 
int Nlon = -1
 
int full_Ntime = -1
 
int full_Ndepth = -1
 
std::vector< double > areas
 
std::map< std::string, std::vector< double > > variables
 
std::vector< std::string > region_names
 
std::map< std::string, std::vector< bool > > regions
 
std::vector< double > region_areas
 
std::vector< double > region_areas_water_only
 
std::vector< bool > mask
 
std::vector< bool > reference_mask
 
std::vector< int > myCounts
 
std::vector< int > myStarts
 

Detailed Description

Class to store main variables.

This class is used to hold the various source data variables such as velocity components, mask, region definitions, density, etc


The documentation for this class was generated from the following files: