Recent Releases of gfwr
gfwr - gfwr 3.0
This is a major release of the package, with several changes and additions.
Breaking changes
-
Prefix change: All
gfwrfunctions are now prefixed withgfw_to make a
direct reference to the package. This replaces the prefixget_.
This allows functions from the package to appear together in searches and menus, and avoids possible confusion with other functions starting with"get_"in other R packages -
In addition to the prefix change,
get_raster()was renamed to
gfw_ais_fishing_hours()to avoid confusion with the new incoming "raster"
datasets implemented in this version and to be consistent with the output of the
model, which is expressed in (apparent) fishing hours. -
The two datasets in the package were also renamed to
gfw_:gfw_marine_regionsandgfw_test_shape -
In
gfw_region_id(), the parameterregion_namewas renamed toregionfor precision, since it accepts both region names and ISO codes. (#196)
New functions and endpoints
gfw_ais_presence()implements the AIS-based Vessel presence dynamic
dataset, which can be found in the Global Fishing Watch map.
This dataset aggregates the presence of all vessels (fishing and non-fishing), expressed in hours of activity in each cell.gfw_sar_vessel_detections()incorporates the SAR-based vessel detections
(presence), also found in the map. See Paolo et al 2024 for more details.
Non-breaking changes
gfw_event()has no longer thegap_intentional_disablingparameter because all gaps returned are high confidence and considered to be intentional:- The gap event must be at least 12 hours
- It must start at least 50 nautical miles from shore
- It must start in an area with a satellite reception quality greater than 10 positions per day
- The vessel must have at least 14 satellite positions in the 12 hours prior to the gap
See the gap events documentation for more details behind these rules.
Bug fixes
- fixed
gfw_event_stats()(previouslyget_event_stats()) filter by flag (#215) - fixed #224 and
gfw_marine_regionsdataset (previouslymarine_regions) is available without attachinggfwr(thanks to @jaseeverett) - fixes the
includesparameter ofgfw_vessel_info(), reported in #231
Biosphere - Marine Life and Fishery
- HTML
Published by AndreaSanchezTapia 4 months ago
gfwr - gfwr 2.0.4
Aug 5 2025
No breaking changes
- Adds a new dataset,
marine_regions, a simplified version of the Marine Regions v12 table to retrieve IDs whenregion_source = "EEZ".
Full Changelog: https://github.com/GlobalFishingWatch/gfwr/compare/v.2.0.3...v.2.0.4
Biosphere - Marine Life and Fishery
- HTML
Published by AndreaSanchezTapia 10 months ago
gfwr - gfwr 2.0.3
No breaking changes
Bug fixes
geartypesandshiptypeswill be unnested only when they are returned in the
responses--this was causing an error reported in #193get_region_id():- MPA, EEZ, RFMO ids are no longer enforced to be numeric,
this was causing errors for character and alphanumeric ids in RFMOS and MPAs get_region_id()can now process empty id strings ("") and returnNA
tibbles instead of returning an error, this allows to process events happening
in the high-seas (#201)
- MPA, EEZ, RFMO ids are no longer enforced to be numeric,
Documentation improvements
get_event()can receive a string of severalvesselIds(not twenty as
previously stated). However, requests that are too long in character length will
fail with error HTTP422: Unprocessable entity. This means around 2,000
vesselIDscan be sent per request.- RFMO documentation was improved to clarify that we have the complete list of
RFMOs #194 - The readme has more subsections for easier reference and explicit calls to
gfw_auth()are no longer suggested.
Full Changelog: https://github.com/GlobalFishingWatch/gfwr/compare/v.2.0.2...v.2.0.3
Biosphere - Marine Life and Fishery
- HTML
Published by AndreaSanchezTapia about 1 year ago
gfwr - gfwr 2.0.2
General review of the documentation, parameter reordering and improving descriptions. No breaking changes.
What's Changed
- update develop to current version by @AndreaSanchezTapia in https://github.com/GlobalFishingWatch/gfwr/pull/184
- minor edits to results comments in README by @rociojoo in https://github.com/GlobalFishingWatch/gfwr/pull/190
- Update documentation by @AndreaSanchezTapia in https://github.com/GlobalFishingWatch/gfwr/pull/191
- Mainly updates to documentation and parameter order and description by @AndreaSanchezTapia in https://github.com/GlobalFishingWatch/gfwr/pull/192
Full Changelog: https://github.com/GlobalFishingWatch/gfwr/compare/v.2.0.1...v.2.0.2
Biosphere - Marine Life and Fishery
- HTML
Published by AndreaSanchezTapia about 1 year ago
gfwr - gfwr 2.0.1
Major change - bug fix
- We updated the parsing of the output of
get_vessel_info(). For some advanced
queries usingwhere, the function was returning only a subset of the vessels.
This issue is now solved and the number of results should be equal to the number
of vessels returned by Vessel Viewer on our map. (solves #176)
Breaking changes
-
Some fields in the response were renamed across outputs (addressing issue #146):
get_vessel_info(): in$registryInfowe renamedidtoregistryIdget_event(): we renamedidtoeventIdandtypetoeventType
New features
-
get_vessel_info(): We added anindexcolumn to indicate whichvesselIds
are grouped together and belong to the same vessel. This should help associate
information from the returned datasets and guide the user when requesting events
for a single vessel or a group of vessels. -
get_event(): We unnested the column-list"vessel"to give more visibility to
the vessels each event corresponds to.
Minor changes
- We updated the
get_event()section in the README to improve the workflow and
send groups ofvesselIdscorresponding to one or multiple vessels.
Biosphere - Marine Life and Fishery
- HTML
Published by rociojoo over 1 year ago
gfwr - gfwr 2.0.0
gfwr was updated to work with version 3 of our APIs. This results in various breaking changes in parameter names and output formats. We aim to list here the major modifications but please also check the API documentation and the migration guide if anything is new or missing.
Endpoints
-
Same endpoints as in v1.1.0
get_raster()communicates with the 4Wings API to get fishing effortget_vessel_info()communicates with the Vessels APIget_event()communicates with the Events API
-
New endpoints:
get_events_stats()to get events statistics worldwide or for a specific
regionget_last_report()to check status of last API request toget_raster()
Note: Some APIs will not be implemented because they were primarily designed for a front-end application rather than for data download. These APIs are:
/v3/4wings/generate-png/v3/4wings/tile/:type/:z/:x/:y/v3/4wings/interaction/{z}/{x}/{y}/{cells}/v3/4wings/bins/:z
Major changes and new features
-
General
- Improved documentation in-package, including two vignettes that can be accessed
on our website https://globalfishingwatch.github.io/gfwr/ - Functions have a new parameter
print_requestthat will print the API request and
will be useful when requesting support. Please describe the problem, send a simplified
script and copy the string of the request when filling an issue. - The
regionargument forget_raster()andget_event()now acceptssfpolygons rather than GeoJSON strings
- Improved documentation in-package, including two vignettes that can be accessed
-
get_vessel_info()- Incorporated non-fishing vessel types to the datasets. A simple search will return
vessels of all vessel types ("CARRIER", "SUPPORT", "PASSENGER", "OTHER_NON_FISHING", "SEISMIC_VESSEL", "BUNKER_OR_TANKER", and "CARGO" in addition to "FISHING") search_type = searchreplacessearch type = "basic"and"advanced". Instead, use parameterqueryfor basic search or parameterwherefor advanced search (i.e. when using SQL expressions)- Registry information is now available: Parameter
includesallows the search to include ownership information, public authorizations from public registries, and the criteria for matching with AIS data
- Incorporated non-fishing vessel types to the datasets. A simple search will return
-
get_event()- Vessel types supported now include non-fishing vessels: "FISHING", "CARRIER", "SUPPORT", "PASSENGER", "OTHER_NON_FISHING", "SEISMIC_VESSEL", "BUNKER_OR_TANKER", and "CARGO"
- Event types now include fishing, gaps in AIS transmission, encounters, loitering events and port visits. Fishing events are specific to fishing vessels, loitering events are specific to carrier vessels. Port visits and encounters are available for all vessel types. Parameter
confidence(1 to 4) allows filtering for high-confidence port visits. - All parameters must now be specified using UPPER CASE (ex.
event_type = "FISHING"instead ofevent_type = "fishing") - A user-defined shapefile can now be sent in the requests, as an
sfobject
-
get_raster()- All parameters must now be specified using UPPER CASE (ex.
spatial_resolution = "LOW"instead ofspatial_resolution = "low") - The
regionargument now acceptssfpolygons rather than a GeoJSON string - Parameters
start_dateandend_datereplacedate_rangefor consistency with other functions
- All parameters must now be specified using UPPER CASE (ex.
Biosphere - Marine Life and Fishery
- HTML
Published by AndreaSanchezTapia over 1 year ago
gfwr - v1.1.0
New features:
-
In addition to your own JSON region, can now pass EEZ or MPA id to
get_rasterfunction to query specific region -
get_region_idnow takes id and returns label. This allows you to get the label for the id values returned by certain endpoints (e.g.get_event) -
Considerable speed increases in
get_eventfunction
Bug fixes:
get_eventprints"Your request returned zero results"and returnsNULLwhen the API response contains no results instead of causing an error.
Other news:
Updated documentation
-
get_raster: requiresgroup_byand appropriate parameter name isgearType -
Added a
NEWS.mdfile to track changes to the package.
Biosphere - Marine Life and Fishery
- HTML
Published by tclavelle over 3 years ago
gfwr - Initial gfwr release
This is the initial release of the gfwr package. It includes functions to access three GFW APIs - Vessels API, Events API, and Map Visualization (4Wings) API. Updated release to add DOI.
Biosphere - Marine Life and Fishery
- HTML
Published by tclavelle almost 4 years ago