as.geojson() is added to replace the functions data.frame_to_geojson() and sf_to_geojson()get_imerg() to fetch IMERG data https://disasters.nasa.gov/instruments/imergprint() method is added for objects that inherits the class ‘chirps_df’dataframe_to_geojson(), sf_to_geojson() are added as exported functions avoiding chirps:::tapajos is given avoiding chirps:::goodpractice::gp(). Avoid long code lines, it is bad for readability. Avoid 1:length(…), 1:nrow(…), 1:ncol(…), 1:NROW(…) and 1:NCOL(…) expressions. Not import packages as a whole, as this can cause name clashes between the imported packages.S3 methods for objects of class “geojson” in get_chirps() and get_esi()
Package vignette
Prepare for submission to ropensci
Validations in internal functions to transform ‘sf’ into geojson
Add properties features to geojson output in get_chirps() and get_esi() via .add_geojson_properties()
get_esi is added to retrieve Evaporative Stress Index with S3 methods for “data.frame” and “sf”
S3 methods for objects of class “data.frame” and “sf” in get_chirps
.get_request_progress and a while condition are added to check the progress of large requests and prevent the function to fail.
.GET is added as a general function to retrieve other datasets from ClimateSERV
improvements in internal functions documentation
precip_indices over a time span