Recent Releases of rsi
rsi - rsi 0.3.2
Failed downloads and merges should now be handled a bit better. Thanks to @h-a-graham for #89 and to @lucas-johnson for #81.
If
composite = NULLand the resource has duplicated asset timestamps,get_stac_data()will now generate unique filenames (rather than saving multiple files to the same path). Thanks to @h-a-graham for #89 and #90.
- R
Published by mikemahoney218 about 1 year ago
rsi - rsi 0.3.0
rsi has been peer-reviewed by the rOpenSci project! Huge thank you to @OldLipe and @mdsumner for their extremely helpful reviews.
sentinel2_mask_function()now masks out SCL values of 2, "DARK_AREA", by default.landsat_mask_function()gains an argument,masked_bits, that allows you to specify the values you wish to mask out by bit values rather than just integers. Refer to the Landsat science product guide for further information on what bit values represent for your platform of interest.get_stac_data()no longer fails if downloading an asset fails, but instead returns a raster with all available data. This may still fail when a single asset fails to download while downloading multiple assets combined within a single raster; please open an issue if this happens to you! Thanks to @laurenkwick in #74 (#75).
- R
Published by mikemahoney218 over 1 year ago
rsi - rsi 0.2.1
calculate_indices()gains several new arguments:overwrite, which is passed directly toterra::predict(). Thanks to @Cidree in #69 (#70).woptandcores, which are passed directly toterra::predict().extra_objects, which lets you provide additional objects for calculating indices inside of the minimal environment used to isolate potentially untrustworthy code.
Band mapping objects now have a
c()method, making it easier to add assets you wish to download to an existing object. Thanks to @laurenkwick in #71 (#72).stack_rasters()gains a new argument,check_crs, which can be set toFALSEto skip checking if all rasters share the same CRS.Added a new section to the "How can I?" article on the pkgdown site, with pointers on how to "Calculate all possible indices using a certain data set". Thanks to @alkimj in #60 (#61).
- R
Published by mikemahoney218 over 1 year ago
rsi - rsi 0.2.0 (GitHub Update)
This release is a small stub intended to publish a new section of the "How Can I" vignette; there are no changes to code or functionality.
- R
Published by mikemahoney218 almost 2 years ago
rsi - rsi 0.2.0
(This is a re-release of v0.2.0, designed to trigger a Zenodo archive)
Deprecations
default_query_function()has been renamed torsi_query_api(). Please update any code using the old name; it will be removed in a future release.
New features
get_stac_data()gains an argument,download_function, which takes aSTACItemCollectionobject and returns a data frame, where columns correspond to distinct assets, rows correspond to distinct items, and cells contain file paths to the downloaded data.rsi_download_rasters()is a new function that exposes howget_stac_data()downloads assets.get_alos_palsar_imagery()andalos_palsar_mask_function()are new functions to help you get and mask ALOS PALSAR imagery, respectively. Thanks to @h-a-graham via #48 and #50.get_naip_data()is a function for getting National Agricultural Imagery Program data from (by default) Planetary Computer. Data covers the continental United States.landsat_mask_function()gains an argument,include, which lets you specify whether you'd like to include pixels that represent land ("land"), water ("water"), or both ("both"). Thanks to @mateuszrydzik for the report via37 (#46).
Bug fixes and other changes
Progress bars have been split into separate bars for downloading, masking, compositing and so on.
get_stac_data()no longer errors in (rare) circumstances where calculating the intersection of bounding boxes between your AOI and an individual item, performed when settingcomposite_function = NULL, produces a bounding box withyminorxminhigher thanymaxorxmax.Functions will no longer error if you construct their arguments with
glue::glue()(or otherwise if they have more than one class).stack_rasters()will only rename bands ifband_namesis the same length as the number of bands in the output raster (or missing, or defined by a function). It will now warn you if these lengths are different. Previously, if you provided more than the required number of band names,stack_rasters()would silently ignore the extra names, and would error if you provided fewer names than bands.get_stac_data()now warns ifasset_namesisNULLand there is more than one asset per item.Functions sending HTTP requests now set a user agent of
rsi (https://permian-global-research.github.io/rsi/)
- R
Published by mikemahoney218 almost 2 years ago
rsi - rsi 0.1.1
get_stac_data()now removes colons (:) from the file names generated whencomposite_function = NULL. This means that datetimes are now generally formatted as YYYY-MM-DDTHHMMSSZ, which is slightly dissatisfying but is a valid path on Windows systems (thanks to @jguelat, #29, #32).stacK_rasters()no longer includes"-r", "bilinear"in its default value forgdalwarp_options(#27, #30).get_stac_data()now provides a more informative error when 0 items are found for a given query (#26, #31).
- R
Published by mikemahoney218 about 2 years ago