Skip to content

Releases: ocean-tracking-network/glatos

v0.8.0

20 Sep 03:19
Compare
Choose a tag to compare

What's Changed

From NEWS:

Breaking changes

  • Changed make_transition() to use jarasterize() (see New Features) and
    added input arg buffer.

    • Removed dependence on gdalUtilities.
    • fixes issue #234
  • Removed make_transition2() (deprecated in 0.7) and make_transition3().
    Also removed dependence on fasterize.

  • Updated example TransitionLayer object greatLakesTrLayer using new
    make_transition() and great_lakes_polygon (an sf object) . The new version
    has the same cell size (resolution) as the previous, but different extents
    (matches great_lakes_polygon, so returned values (with same input) will differ
    from earlier versions.

  • Removed 'gganimate_handout' (pdf and html) from 'vignettes'.

New features

  • Add new function vue_convert() to convert VRL file to CSV file (detection
    records only; receiver event log records are not supported).

    • replaces vrl2csv() (deprecated).
  • Add new function vdat_convert() to convert VRL or VDAT files to
    Fathom/VDAT CSV.

  • Add new functions for reading data exported from VRL with VUE software.

    • read_vue_detection_csv() to read data from detection file exported
      from VUE or created using vue_convert() or vrl2csv().
    • read_vue_event_csv() to read data from receiver event log file exported
      from VUE.
  • Add new function read_vdat_csv() to read data exported from VRL or VDAT
    using VDAT.exe (e.g., using vdat_convert()).

  • Add new functions to create, check, and validate glatos_animals objects:

    • glatos_animals() to construct a glatos_animals object from
      individual vectors (one for each column) and optionally check for required
      column names and classes using validate_glatos_animals().
    • as_glatos_animals() to coerce a data.frame, or object that
      inherits from data.frame, to glatos_animals and optionally check for
      required column names and classes using validate_glatos_animals().
    • is_glatos_animals() to check class attribute for "glatos_animals".
    • validate_glatos_animals() to check for existence of required column
      names and classes.
    • fixes issue #126
    • fixes issue #78
  • Add new functions to create, check, and validate glatos_detections objects:

    • glatos_detections() to construct a glatos_detections object from
      individual vectors (one for each column) and optionally check for required
      column names and classes using validate_glatos_detections().
    • as_glatos_detections() to coerce a data.frame, or object that
      inherits from data.frame, to glatos_detections and optionally check for
      required column names and classes using validate_glatos_detections().
    • is_glatos_detections() to check class attribute for "glatos_detections".
    • validate_glatos_detections() to check for existence of required column
      names and classes.
    • fixes issue #126
    • fixes issue #78
  • Add new functions to create, check, and validate glatos_recievers objects:

    • glatos_receivers() to construct a glatos_receivers object from
      individual vectors (one for each column) and optionally check for required
      column names and classes using validate_glatos_receivers().
    • as_glatos_receivers() to coerce a data.frame, or object that
      inherits from data.frame, to glatos_receivers and optionally check for
      required column names and classes using validate_glatos_receivers().
    • is_glatos_receivers() to check class attribute for "glatos_receivers".
    • validate_glatos_receivers() to check for existence of required column
      names and classes.
    • fixes issue #126
    • fixes issue #78
  • Add new function jarasterize() to allow rasterization
    (esp. with all_touched = TRUE) using only sf and raster.
    Used by make_transition().

  • Add new function scale_meters_to_degrees() to inform selection of res
    argument to make_transition().

  • In make_frames(), allow terra::SpatVector input for background map
    (bg_map arg).

    • add test for terra::SpatVector input
  • Add new function detection_range_model() for estimating detection range at which a certain detection efficiency is expected, using output from Innovasea's range testing software.

Bug fixes and minor changes

  • Add @srs slot to greatLakesTrLayer data object and rename file
    'data/greatLakesTrLayer.rda'.

  • Fix bug in read_glatos_workbook() where timestamps during daylight savings
    were shifted one hour on linux operating system (not an issue on windows or
    mac).

  • Omit data.table from class of object returned by read_glatos_detections()
    and read_glatos_receivers().

  • Fix typo in Description to Suggest 'gifski' (not 'gifsky').

  • Various changes to resolve R CMD check errors, warning, and notes (generally
    not user-facing).

Full Changelog: v0.7.3...v0.8.0

v0.7.1

07 Feb 15:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.7.1

0.7.0

11 Jan 18:00
Compare
Choose a tag to compare

glatos 0.7.0 (2024-01-04)

Bug fixes and minor changes

  • Remove dependence on rgeos and rgdal.

  • This package now requires R >= 3.5.0 because serialized objects in
    serialize/load version 3 cannot be read in older versions of R.
    File(s) containing such objects:
    'glatos/inst/testdata/flynn_island_transition.rds'
    'glatos/inst/testdata/higgins_lake_transition.rds'
    'glatos/inst/testdata/test-detect_transmissions-dtc_spout.rds'
    'glatos/inst/testdata/test-transmit_along_path-tr_dfin_spout.rds'

  • Deprecate make_transition and make_transition2; suggest make_transition3
    instead.

  • Deprecate data object greatLakesPoly; suggest great_lakes_polygon
    instead.

  • prepare_deploy_sheet:

    • Set 'skip = header_line - 1' and 'col_names = TRUE' to retain first
      record and column names (read_excel ignores column names, unless set,
      when skip is set).
    • Fix non-working example code.
  • convert_otn_to_att and convert_otn_erddap_to_att:

    • Replaced sp::CRS with sf::st_crs
    • Changed link (URL) to relevant issue from GitLab to GitHub repo.
  • Remove ffmpeg functions.

    • make defunct:
      • check_dependencies
      • install_ffmpeg
      • make_video_ffmpeg
  • Fix issues with several tests caused by changes to CRS/WKT and row.names
    attributes.