NetCDF Assembler documentation 1.0.0
Loading...
Searching...
No Matches
assembler Class Reference

Public Member Functions

 assembler (int argc, char **argv)
 The assembler class constructor.
 
 ~assembler ()
 The assembler class destructor.
 
void copy_attributes (int32_t in_i_input_file, variable_information_t &in_s_ref_var, variable_information_t &in_s_fill_var)
 Copy the attributes from the input file to the output file.
 
void add_globals_attributes (void)
 Add the global attributes to the output file and copy globals attributes from first input file.
 
variable_information_t get_variable_from_dim_id (file_information_t &in_s_file, size_t in_i_dim_id)
 Get the variable from the dimension id.
 
void copy_dimensions (void)
 Copy the dimensions from the input files to the output file.
 
void sort_variable (variable_information_t &in_s_current_var)
 Sort a variable.
 
size_t * get_start_from_input (size_t in_i_file, variable_information_t &in_s_input_var, variable_information_t &in_s_output_var, size_t *in_ai_input_start)
 Get the output start index from the start index of an input variable.
 
void add_data_to_dim_variable (size_t in_i_file, variable_information_t &in_s_input_var, variable_information_t &in_s_output_var)
 Add data to a dimension variable from an input dimension variable.
 
void add_data_to_variable (size_t in_i_file, variable_information_t &in_s_input_var, variable_information_t &in_s_output_var)
 Add data to a variable from an input variable.
 
void copy_variables (void)
 Copy the variables.
 

Protected Attributes

std::vector< file_information_t_vs_input_files
 
file_information_t _s_output_file = {0}
 

Member Function Documentation

◆ add_data_to_dim_variable()

void add_data_to_dim_variable ( size_t in_i_file,
variable_information_t & in_s_input_var,
variable_information_t & in_s_output_var )

Add data to a dimension variable from an input dimension variable.

Parameters
in_i_fileThe file input index
in_s_input_varThe input variable
in_s_output_varThe output variable
Returns
void

◆ add_data_to_variable()

void add_data_to_variable ( size_t in_i_file,
variable_information_t & in_s_input_var,
variable_information_t & in_s_output_var )

Add data to a variable from an input variable.

Parameters
in_i_fileThe file input index
in_s_input_varThe input variable
in_s_output_varThe output variable
Returns
void

◆ add_globals_attributes()

void add_globals_attributes ( void )

Add the global attributes to the output file and copy globals attributes from first input file.

Returns
void

◆ copy_attributes()

void copy_attributes ( int32_t in_i_input_file,
variable_information_t & in_s_ref_var,
variable_information_t & in_s_fill_var )

Copy the attributes from the input file to the output file.

Parameters
in_i_input_fileThe index of the input file
in_s_ref_varThe variable information of the input file
in_s_fill_varThe variable information of the output file
Returns
void

◆ copy_dimensions()

void copy_dimensions ( void )

Copy the dimensions from the input files to the output file.

Returns
void

◆ copy_variables()

void copy_variables ( void )

Copy the variables.

Returns
void

◆ get_start_from_input()

size_t * get_start_from_input ( size_t in_i_file,
variable_information_t & in_s_input_var,
variable_information_t & in_s_output_var,
size_t * in_ai_input_start )

Get the output start index from the start index of an input variable.

Parameters
in_i_fileThe file input index
in_s_input_varThe input variable
in_s_output_varThe output variable
in_ai_input_startThe input start index
Returns
size_t * The start index

◆ get_variable_from_dim_id()

variable_information_t get_variable_from_dim_id ( file_information_t & in_s_file,
size_t in_i_dim_id )

Get the variable from the dimension id.

Parameters
in_s_fileThe file information
in_i_dim_idThe dimension id
Returns
variable_information_t The variable information

◆ sort_variable()

void sort_variable ( variable_information_t & in_s_current_var)

Sort a variable.

Parameters
in_s_current_varThe variable to sort
Returns
void

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