Skip to contents

resourcecode (development version)

  • Documentation fixes: corrected the get_2d_spectrum() return description, the rscd_data_example metadata, the closest_point_field()/closest_point_spec() error message, and several typos.
  • cut_seasons(): the amj, jas and ond definitions now order their factor levels according to their season starting point (e.g. amj levels are AMJ, JAS, OND, JFM) instead of always using JFM, AMJ, JAS, OND. Month partitions are unchanged.
  • compute_sea_state_1d_spectrum(): dir and spr are now computed with an energy-weighted circular mean, mirroring the 2D version, instead of integrating the mean direction directly over the frequency.
  • New canonical functions plot_1d_spectra() and plot_2d_spectra(); the misspelled plot_1d_specta() and plot_2d_specta() names remain as exported aliases and now emit a deprecation warning.
  • get_parameters_raw()/get_parameters() now store the user-facing node number in the "node" attribute of the returned data instead of the internal 0-based index.
  • Fixed the CI workflows: the R-CMD-check workflow now runs on main/master branches and the Codecov token in test-coverage.yaml is read from the CODECOV_TOKEN environment variable instead of being hardcoded.

resourcecode 0.5.5

CRAN release: 2026-08-03

  • Remove `-DARMA_USE_CURRENT’ flag which is not needed anymore;
  • Update tests to fail more gracefully on CRAN.

resourcecode 0.5.4

CRAN release: 2026-05-07

  • get_parameters now correctly handles Date format as inputs by spanning on the right period;
  • Update rscd_casandra_end_date with new data availability: 2025-12-31 23:00:00.

resourcecode 0.5.3

CRAN release: 2026-02-06

  • Custom labels are now handled properly in cut_seasons() ;
  • Switch to {httr2} to download files and API request ;
  • Skip plots when the remote database is not available.

resourcecode 0.5.2

CRAN release: 2026-01-09

  • Give informative message when remote database is not available.

resourcecode 0.5.1

CRAN release: 2025-12-16

  • Remove dependency on latex2exp that is scheduled for archival on 2026-01-03

resourcecode 0.5.0

CRAN release: 2025-11-10

  • Update the data retrieving function to fail gracefully whenever the remote database is not accessible.
  • New function ‘weather_windows()’ to compute weather windows of a given duration.
  • Update the ending date of the Hindcast to 2024-12-31.

resourcecode 0.4.0

CRAN release: 2025-10-22

resourcecode 0.3.0

CRAN release: 2025-08-21

resourcecode 0.2.1

CRAN release: 2024-12-03

  • Move out the data from the package to resourcecodedata package to be compliant with CRAN limiting size of 5Mb.

resourcecode 0.1.0

  • Add some code linter;
  • Switch from ftpto https to download the spectral data, to increase stability;
  • Fix typos in the documentation (thanks to @jlegrand35);
  • zmcomp2metconv outputs a data.frame and gains an argument to name columns;
  • Fixed deprecated arguments in ggplot::theme() used in rscd_mapplot;
  • renamecompute_orbital_speeds to compute_orbital_speeds;
  • remove dependency to arrow;
  • make data smaller by using tools::resaveRdaFiles("data/").

resourcecode 0.0.1

Initial version with very crude functionalities

  • Database configuration: coastline, depth, output variables, grids…
  • Download sea-state parameters of the FIELD grid from Casandra database;
  • Download 1D and 2D spectral data from the netCDF files via FTP;
  • Helpers to plot maps (e.g. bathymetry or spatial statistics);
  • Plot 1D and 2 spectrum;
  • Compute sea-state from 1D and 2D spectrum.