Title: | R Package for Working with Satellite Data from Various Providers (Copernicus, GoogleEarthEngine) |
---|---|
Description: | R Package with functions for working with satellite data of Copernicus Climate Data Store (https://cds.climate.copernicus.eu) or GoogleEarthEngine (https://earthengine.google.com/). |
Authors: | Michael Rustler [aut, cre] , Hauke Sonnenberg [ctb] , KEYS [fnd], Kompetenzzentrum Wasser Berlin gGmbH (KWB) [cph] |
Maintainer: | Michael Rustler <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-10-31 16:33:34 UTC |
Source: | https://github.com/KWB-R/kwb.satellite |
Run request (may take a while as nothing happens because many requests R are queued (in addition: maximum request data amount limited to 140000 data points). To check queue status: "https://cds.climate.copernicus.eu/cdsapp#!/yourrequests?tab=form"
copernicus_cds( variable = "2m_temperature", dataset_short_name = "reanalysis-era5-single-levels", product_type = "reanalysis", years = as.character(seq(2010, 2020)), area = c(40, 116, 39, 117), file_format = "grib", export_dir = "." )
copernicus_cds( variable = "2m_temperature", dataset_short_name = "reanalysis-era5-single-levels", product_type = "reanalysis", years = as.character(seq(2010, 2020)), area = c(40, 116, 39, 117), file_format = "grib", export_dir = "." )
variable |
variable to query "2m_temperature" |
dataset_short_name |
"reanalysis-era5-single-levels" |
product_type |
default: "reanalysis" |
years |
character vector of years (default: as.character(seq(2010, 2020))) |
area |
area coordinates in latitude/longitude (default: c(40, 116, 39, 117)) |
file_format |
"grib" or "netcdf" |
export_dir |
default: "." |
path to file with exported data
Runs copernicus_cds
in parallel for all variables defined
in parameter "variables" on all machine cores minus one
copernicus_cds_parallel( variables = c("2m_temperature", "evaporation", "potential_evaporation", "precipitation_type", "runoff", "sub_surface_runoff", "surface_runoff", "total_precipitation"), dataset_short_name = "reanalysis-era5-single-levels", product_type = "reanalysis", years = as.character(seq(2010, 2020)), area = c(40, 116, 39, 117), file_format = "grib", export_dir = "." )
copernicus_cds_parallel( variables = c("2m_temperature", "evaporation", "potential_evaporation", "precipitation_type", "runoff", "sub_surface_runoff", "surface_runoff", "total_precipitation"), dataset_short_name = "reanalysis-era5-single-levels", product_type = "reanalysis", years = as.character(seq(2010, 2020)), area = c(40, 116, 39, 117), file_format = "grib", export_dir = "." )
variables |
default: c("2m_temperature", "evaporation", "potential_evaporation", "precipitation_type", "runoff", "sub_surface_runoff", "surface_runoff", "total_precipitation") |
dataset_short_name |
"reanalysis-era5-single-levels" |
product_type |
default: "reanalysis" |
years |
character vector of years (default: as.character(seq(2010, 2020))) |
area |
area coordinates in latitude/longitude (default: c(40, 116, 39, 117)) |
file_format |
"grib" or "netcdf" |
export_dir |
default: "." |
list with paths to downloaded files
Copernicus: get metadata for ERA5
get_metadata_era5(grib_file)
get_metadata_era5(grib_file)
grib_file |
path to GRIB file |
metadata
Code taken from https://gis.stackexchange.com/a/360652