FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
netcdf_sinmod::Parser Class Reference

#include <NetCDFParser.h>

Public Member Functions

 Parser ()
 Construct parser with null values.
 
 ~Parser (void)
 Destructor - closes file.
 
void LoadFile (string NetCDF_Filepath)
 
Grid GetGridInfo ()
 
void GetStaticData (double *layer_depth, double *depth_map, Date *timeline)
 
void SetCurrentTime (int offset_from_start_time)
 
void GetDynamicData (double *x_velocity, double *y_velocity, double *z_velocity)
 

Detailed Description

Parser for NetCDF bathymetry and current files.

Provides methods for loading NetCDF files, extracting grid dimensions, and querying static/dynamic field data.

Member Function Documentation

◆ GetDynamicData()

void netcdf_sinmod::Parser::GetDynamicData ( double *  x_velocity,
double *  y_velocity,
double *  z_velocity 
)

Get dynamic data (velocity components).

Parameters
[out]x_velocityX velocity array.
[out]y_velocityY velocity array.
[out]z_velocityZ velocity array.

◆ GetGridInfo()

Grid netcdf_sinmod::Parser::GetGridInfo ( )

Get grid information.

Returns
Grid structure with dimensions.

◆ GetStaticData()

void netcdf_sinmod::Parser::GetStaticData ( double *  layer_depth,
double *  depth_map,
Date timeline 
)

Get static data (depth map, layer depths, timeline).

Parameters
[out]layer_depthLayer depth array.
[out]depth_mapDepth map array.
[out]timelineDate/time array.

◆ LoadFile()

void netcdf_sinmod::Parser::LoadFile ( string  NetCDF_Filepath)

Load NetCDF file.

Parameters
[in]NetCDF_FilepathPath to NetCDF file.

◆ SetCurrentTime()

void netcdf_sinmod::Parser::SetCurrentTime ( int  offset_from_start_time)

Set active time coordinate.

Parameters
[in]offset_from_start_timeTime offset index.

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