Package: resourcecode 0.5.4

Nicolas Raillard

resourcecode: Access to the 'RESOURCECODE' Hindcast Database

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.

Authors:Nicolas Raillard [aut, cre]

resourcecode_0.5.4.tar.gz
resourcecode_0.5.4.tar.gz(r-4.7-arm64)resourcecode_0.5.4.tar.gz(r-4.7-x86_64)resourcecode_0.5.4.tar.gz(r-4.6-arm64)resourcecode_0.5.4.tar.gz(r-4.6-x86_64)
resourcecode_0.5.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
resourcecode/json (API)
NEWS

# Install 'resourcecode' in R:
install.packages('resourcecode', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/resourcecode-project/r-resourcecode/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

3.54 score 4 scripts 267 downloads 23 exports 64 dependencies

Last updated from:c8180421b2. Checks:4 OK, 2 ERROR. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK428
linux-devel-x86_64ERROR430
source / vignettesOK874
linux-release-arm64OK426
linux-release-x86_64ERROR426
wasm-releaseOK150

Exports:%nin%closest_point_fieldclosest_point_speccompute_orbital_speedscompute_sea_state_1d_spectrumcompute_sea_state_2d_spectrumconvert_spectrum_2d1dcut_directionscut_seasonsdispersionfastTrapzfractional_day_of_yearget_1d_spectrumget_2d_spectrumget_parametersjonswapmean_directionmetconv2zmcompplot_1d_spectaplot_2d_spectarscd_mapplotweather_windowszmcomp2metconv

Dependencies:abindaskpassclassclassIntclicommonmarkcpp11curlDBIdplyre1071farvergenericsgeosphereggplot2gluegridtextgtablehttr2isobandjpegKernSmoothlabelinglifecyclelitedownlubridatemagrittrmarkdownMASSncdf4opensslpatchworkpillarpkgconfigpngpracmaproxypurrrR6rappdirsRColorBrewerRcppRcppArmadilloresourcecodedatarlangs2S7scalessfstringistringrsystibbletidyrtidyselecttimechangeunitsutf8vctrsviridisLitewithrwkxfunxml2

Introduction to {resourcecode}

Rendered fromresourcecode.Rmdusingknitr::rmarkdownon Jun 06 2026.

Last update: 2026-02-06
Started: 2024-12-03

Readme and manuals

Help Manual

Help pageTopics
Value Matching%nin%
Find the closest point of the FIELD grid to the specified positionclosest_point_field
Find the closest point of the SPEC grid to the specified positionclosest_point_spec
Compute the orbital speed at a given depth from the wave elevation 1D spectracompute_orbital_speeds
Compute sea_state parameter from wave spectrumcompute_sea_state_1d_spectrum
Compute sea_state parameter from wave directional spectrumcompute_sea_state_2d_spectrum
Converts a 2D spectrum time series to a 1D spectrumconvert_spectrum_2d1d
Directional binningcut_directions
Get season from date time objectcut_seasons
Compute the dispersion relation of waves Find _k_ s.t. (2.pi.f)^2 = g.k.tanh(k.d)dispersion
Fast implementation of pracma::trapz from the Armadillo C++ libraryfastTrapz
Compute Fractional Day of Year from POSIXctfractional_day_of_year
Download the 1D spectrum data from IFREMER ftpget_1d_spectrum
Download the 2D spectrum data from IFREMER ftpget_2d_spectrum
Download time series of sea-state parameters from RESOURCECODE databaseget_parameters
JONWSAP spectrumjonswap
Mean Directionmean_direction
Convert meteorological wind speed and direction to u/v componentsmetconv2zmcomp
Plot a wave density 1D spectrum at a given timeplot_1d_specta
Plot a wave density 2D spectrumplot_2d_specta
Resourcecode data extractrscd_data_example
Create a map of the provided variable on the RESOURCECODE field gridrscd_mapplot
Compute Weather Windowsweather_windows
Convert u/v to meteorological wind speed and directionzmcomp2metconv