Package: resourcecode 0.5.1.9000

Image

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.1.9000.tar.gz
resourcecode_0.5.1.9000.zip(r-4.6)resourcecode_0.5.1.9000.zip(r-4.5)resourcecode_0.5.1.9000.zip(r-4.4)
resourcecode_0.5.1.9000.tgz(r-4.6-x86_64)resourcecode_0.5.1.9000.tgz(r-4.6-arm64)resourcecode_0.5.1.9000.tgz(r-4.5-x86_64)resourcecode_0.5.1.9000.tgz(r-4.5-arm64)
resourcecode_0.5.1.9000.tar.gz(r-4.6-arm64)resourcecode_0.5.1.9000.tar.gz(r-4.6-x86_64)resourcecode_0.5.1.9000.tar.gz(r-4.5-arm64)resourcecode_0.5.1.9000.tar.gz(r-4.5-x86_64)
resourcecode_0.5.1.9000.tgz(r-4.5-emscripten)
resourcecode.pdf |resourcecode.html
resourcecode/json (API)
NEWS

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

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

Pkgdown/docs site:https://resourcecode-project.github.io

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

On CRAN:

Conda:

openblascpp

4.85 score 1 stars 4 scripts 183 downloads 23 exports 62 dependencies

Last updated from:64cab64ff8. Checks:13 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-arm64OK186
linux-devel-x86_64OK198
source / vignettesOK667
linux-release-arm64OK713
linux-release-x86_64OK622
macos-devel-arm64OK187
macos-devel-x86_64OK224
macos-release-arm64OK112
macos-release-x86_64OK262
windows-develOK162
windows-releaseOK149
windows-oldrelOK167
wasm-releaseOK667

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:abindclassclassIntclicommonmarkcpp11curlDBIdplyre1071farvergenericsgeosphereggplot2gluegridtextgtableisobandjpegjsonliteKernSmoothlabelinglatticelifecyclelitedownlubridatemagrittrmarkdownMASSncdf4patchworkpillarpkgconfigpngpracmaproxypurrrR6RColorBrewerRcppRcppArmadilloresourcecodedatarlangs2S7scalessfspstringistringrtibbletidyrtidyselecttimechangeunitsutf8vctrsviridisLitewithrwkxfunxml2

Introduction to {resourcecode}

Rendered fromresourcecode.Rmdusingknitr::rmarkdownon Dec 16 2025.

Last update: 2024-12-02
Started: 2023-09-05

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
Resourcecode directional binsrscd_dir
Resourcecode frequency vector of 1D and 2D spectrarscd_freq
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

  • Image