View source: R/Monthly_data_utils.R
import_monthly_data | R Documentation |
Import a monthly SpatRaster from monthly NCDF or GeoTIFF files.
import_monthly_data(rst_path, start_date, end_date, years = NULL)
rst_path |
File path to either:
|
start_date |
Position where the dates of the raster files start. For example, start_date = 10 for 'ProductX_1989-02.tif' as the date start in the 10th character. |
end_date |
Position where the dates of the raster files end. For example, end_date = 16 for 'ProductX_1989-02.tif', and end_date = 13 for 'ProductX_1989.nc'. |
years |
Integer vector indicating the years that should be imported. For example, years <- 2000:2010 for importing monthly data from 2000 to 2010. |
SpatRaster of the monthly data that will be used in further analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.