GlobalFishingWatch / gfwr

R package for accessing data from Global Fishing Watch APIs

Home Page:https://globalfishingwatch.github.io/gfwr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filtering by tuna RFMOs in get_raster not working

tclavelle opened this issue · comments

get_raster(spatial_resolution = 'low',
           temporal_resolution = 'daily',
           group_by = 'flag',
           date_range = '2021-01-01,2021-01-15',
           region = 'ICCAT',
           region_source = 'trfmo',
           key = key)

Yields the following 422 error:

Error in `resp_abort()`:
! HTTP 422 Unprocessable Entity.
• Region not found
Backtrace:
 1. gfwr::get_raster(...)
 6. httr2::req_perform(.)
 7. httr2:::resp_abort(resp, error_body(req, resp))

According to engineering, the error is likely a result of a change in the name of the RFMO dataset from public-tuna-rfmo to public-rfmo.