View source: R/imd_processing.R
| read_imd_rainfall_cropped | R Documentation |
Reads only the spatial hyperslab that contains bbox directly from the
disk with ncvar_get(start, count). The function does not read the full
national grid into memory and then filter it. For a small region and many
years, this method is orders of magnitude faster. It also uses much less
memory (GB -> MB, minutes -> seconds).
read_imd_rainfall_cropped(file_path, year, bbox)
file_path |
Path to the IMD NetCDF rainfall file. |
year |
Year of the data (for the date axis). |
bbox |
Named numeric vector or list with north, south, east, and west. |
data.frame with columns date, latitude, longitude, rainfall.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.