NetCDFConstituentRepository

NetCDFConstituentRepository(self, fp)

A repository of tidal constituents stored in a NetCDF file.

Methods

Name Description
get_current_constituents Get the current constituents for a given longitude and latitude.
get_level_constituents Get the level constituents for a given longitude and latitude.

get_current_constituents

NetCDFConstituentRepository.get_current_constituents(lon, lat)

Get the current constituents for a given longitude and latitude.

Parameters

Name Type Description Default
lon float The longitude. required
lat float The latitude. required

Returns

Name Type Description
dict[str, CurrentConstituent] The current constituents.

get_level_constituents

NetCDFConstituentRepository.get_level_constituents(lon, lat)

Get the level constituents for a given longitude and latitude.

Parameters

Name Type Description Default
lon float The longitude. required
lat float The latitude. required

Returns

Name Type Description
dict[str, LevelConstituent] The level constituents.