Skip to content

Gyda

Latest
Compare
Choose a tag to compare
@kauedesousa kauedesousa released this 13 Jan 11:56
· 11 commits to master since this release

ENHANCEMENTS

  • Add new function get_chirts() to fetch temperature data from CHC server (https://data.chc.ucsb.edu/products/CHIRTSdaily/v1.0/global_cogs_p05/)
  • Implement data fetching from CHC server in get_chirps() which offers a better alternative for requests with multiple data points using GoC files from CHC server (https://data.chc.ucsb.edu/products/CHIRPS-2.0/global_daily/cogs/) and the terra package
  • New S3 methods in get_chirps() for objects of class 'SpatVector' and 'SpatRaster' from the terra package
  • Data can be returned as an object of class 'matrix' when using the argument as.matrix = TRUE in the S3 methods for objects of class 'default', 'SpatVector' and 'SpatRaster'
  • Updates the URL to request data from ClimateSERV

CHANGES IN BEHAVIOUR

  • New argument server = is added to indicate from which server the function should send the request, either 'CHC' or 'ClimateSERV'. Please use the argument server = "ClimateSERV" for backward compatibility with previous versions of the package.
  • API requests to ClimateSERV use package httr instead of curl
  • Argument operation = in get_chirps() is only required when server = "ClimateSERV"
  • Updates function as.geojson() to matches with the new requirements for ClimateSERV