resourcecode0.5.0 package

Access to the 'RESOURCECODE' Hindcast Database

compute_sea_state_2d_spectrum

Compute sea_state parameter from wave directional spectrum

convert_spectrum_2d1d

Converts a 2D spectrum time series to a 1D spectrum

cut_directions

Directional binning

cut_seasons

Get season from date time object

dispersion

Compute the dispersion relation of waves Find k s.t. (2.pi.f)^2 = ...

fastTrapz

Fast implementation of pracma::trapz from the Armadillo C++ library

fractional_day_of_year

Compute Fractional Day of Year from POSIXct

get_1d_spectrum

Download the 1D spectrum data from IFREMER ftp

get_2d_spectrum

Download the 2D spectrum data from IFREMER ftp

get_parameters

Download time series of sea-state parameters from RESOURCECODE databas...

grapes-nin-grapes

Value Matching

jonswap

JONWSAP spectrum

mean_direction

Mean Direction

metconv2zmcomp

Convert meteorological wind speed and direction to u/v components

plot_1d_specta

Plot a wave density 1D spectrum at a given time

plot_2d_specta

Plot a wave density 2D spectrum

closest_point_field

Find the closest point of the FIELD grid to the specified position

closest_point_spec

Find the closest point of the SPEC grid to the specified position

compute_orbital_speeds

Compute the orbital speed at a given depth from the wave elevation 1D ...

compute_sea_state_1d_spectrum

Compute sea_state parameter from wave spectrum

resourcecode-package

resourcecode: Access to the 'RESOURCECODE' Hindcast Database

rscd_mapplot

Create a map of the provided variable on the RESOURCECODE field grid

weather_windows

Compute Weather Windows

zmcomp2metconv

Convert u/v to meteorological wind speed and direction

Utility functions to download data from the 'RESOURCECODE' hindcast database of sea-states, time series of sea-state parameters and time series of 1D and 2D wave spectra. See <https://resourcecode.ifremer.fr> for more details about the available data. Also provides facilities to plot and analyse downloaded data, such as computing the sea-state parameters from both the 1D and 2D surface elevation variance spectral density.

  • Maintainer: Nicolas Raillard
  • License: GPL (>= 3)
  • Last published: 2025-11-10