Title: | climateR |
---|---|
Description: | Find, subset, and retrive geospatial data by AOI. |
Authors: | Mike Johnson [aut, cre], Justin Singh [ctb], ESIP [fnd], NOAA OWP [fnd] |
Maintainer: | Mike Johnson <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.7 |
Built: | 2024-12-05 06:32:37 UTC |
Source: | https://github.com/mikejohnson51/climateR |
Extract grid metadata from NC Pointer
.resource_grid(URL, X_name = NULL, Y_name = NULL, stopIfNotEqualSpaced = TRUE)
.resource_grid(URL, X_name = NULL, Y_name = NULL, stopIfNotEqualSpaced = TRUE)
URL |
location of data to process |
X_name |
Name of X diminsion. If NULL it is found |
Y_name |
Name of Y diminsion. If NULL it is found |
stopIfNotEqualSpaced |
stop if not equal space grid |
list
Other dap:
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Retrieves grid dimension metadata and calculates grid properties.
.resource_grid_zarr( URL, X_name = NULL, Y_name = NULL, stopIfNotEqualSpaced = TRUE )
.resource_grid_zarr( URL, X_name = NULL, Y_name = NULL, stopIfNotEqualSpaced = TRUE )
URL |
Character. The URL of the Zarr file. |
X_name |
Character. Name of the X-coordinate variable. Defaults to NULL. |
Y_name |
Character. Name of the Y-coordinate variable. Defaults to NULL. |
stopIfNotEqualSpaced |
Logical. Whether to stop if grid cells are not equally spaced. Defaults to TRUE. |
A data frame with grid properties.
Other zarr:
.resource_time_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_get()
,
zarr_to_terra()
,
zarr_xyzv()
Extract time metadata from NC Pointer
.resource_time(URL, T_name = NULL)
.resource_time(URL, T_name = NULL)
URL |
location of data to process |
T_name |
Name of T dimension. If NULL it is found |
list
Other dap:
.resource_grid()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Retrieves time dimension metadata and calculates time intervals.
.resource_time_zarr(URL, T_name = NULL)
.resource_time_zarr(URL, T_name = NULL)
URL |
Character. The URL of the Zarr file. |
T_name |
Character. Name of the time variable. Defaults to NULL. |
A list with time duration, interval, and count information.
Other zarr:
.resource_grid_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_get()
,
zarr_to_terra()
,
zarr_xyzv()
Animate a SpatRaster object as a gif.
animation(data, AOI = NULL, feild_pattern = NULL, outfile, colors = blues9)
animation(data, AOI = NULL, feild_pattern = NULL, outfile, colors = blues9)
data |
a SpatVect or sf object |
AOI |
optional AOI sf or SpatVect object to overlay on gif |
feild_pattern |
optional string vector to filter the desired attributes by |
outfile |
path to write gif file, must have .gif extenstion |
colors |
colors to plot with |
file.path
Other viz:
animation_raster()
,
animation_vector()
Animate a SpatRaster object as a gif.
animation_raster(data, AOI = NULL, outfile, colors = blues9)
animation_raster(data, AOI = NULL, outfile, colors = blues9)
data |
a single SpatRast object |
AOI |
optional AOI sf or SpatVect object to overlay on gif |
outfile |
path to write gif file, must have .gif extenstion |
colors |
colors to plot with |
file.path
Other viz:
animation()
,
animation_vector()
Animate a sf or SpatVect object as a gif.
animation_vector(data, feild_pattern = NULL, outfile, colors = blues9)
animation_vector(data, feild_pattern = NULL, outfile, colors = blues9)
data |
a SpatVect or sf object |
feild_pattern |
optional string vector to filter the desired attributes by |
outfile |
path to write gif file, must have .gif extenstion |
colors |
colors to plot with |
file.path
Other viz:
animation()
,
animation_raster()
ClimateR Catalog
catalog
catalog
An object of class tbl_df
(inherits from tbl
, data.frame
) with 112398 rows and 29 columns.
Other catalog:
read_live_catalog()
Check that there is a netrc file with a valid entry for urs.earthdata.nasa.gov.
checkDodsrc(dodsrcFile = getDodsrcPath(), netrcFile = getNetrcPath())
checkDodsrc(dodsrcFile = getDodsrcPath(), netrcFile = getNetrcPath())
dodsrcFile |
File path to dodsrc file to check. |
netrcFile |
File path to netrc file to check. |
logical
Other netrc:
checkNetrc()
,
getDodsrcPath()
,
getNetrcPath()
,
writeDodsrc()
,
writeNetrc()
Check that there is a netrc file with a valid entry for urs.earthdata.nasa.gov.
checkNetrc(netrcFile = getNetrcPath(), machine = "urs.earthdata.nasa.gov")
checkNetrc(netrcFile = getNetrcPath(), machine = "urs.earthdata.nasa.gov")
netrcFile |
A character. File path to netrc file to check. |
machine |
the machine you are logging into |
logical
Other netrc:
checkDodsrc()
,
getDodsrcPath()
,
getNetrcPath()
,
writeDodsrc()
,
writeNetrc()
ClimateR dry run
climater_dap(id, args, verbose, dryrun, print.arg = FALSE)
climater_dap(id, args, verbose, dryrun, print.arg = FALSE)
id |
The resource name, agency, or catalog identifier |
args |
The parent function arguments |
verbose |
Should messages be emited? |
dryrun |
Return summary of data prior to retrieving it |
print.arg |
should arguments be printed? Usefull for debugging |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Filter the climateR catalog based on a set of constraints
climater_filter( id = NULL, asset = NULL, AOI = NULL, startDate = NULL, endDate = NULL, varname = NULL, model = NULL, scenario = NULL, ensemble = NULL )
climater_filter( id = NULL, asset = NULL, AOI = NULL, startDate = NULL, endDate = NULL, varname = NULL, model = NULL, scenario = NULL, ensemble = NULL )
id |
The resource, agency, or catalog identifier |
asset |
The subdataset or asset in a given resource |
AOI |
an sf of SpatVect point or polygon to extract data for |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
ensemble |
The model ensemble member used to generate data |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
this function provides a consistent data access protocol (dap) to a wide range of local and remote resources including VRT, TDS, NetCDF
Define and get data from a DAP resource
dap( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, varname = NULL, grid = NULL, start = NULL, end = NULL, toptobottom = FALSE, ID = NULL, verbose = TRUE )
dap( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, varname = NULL, grid = NULL, start = NULL, end = NULL, toptobottom = FALSE, ID = NULL, verbose = TRUE )
URL |
local file path or URL |
catalog |
subset of open.dap catalog |
AOI |
an sf of SpatVect point or polygon to extract data for |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
varname |
variable name to extract (e.g. tmin) |
grid |
a list containing an extent (), and crs |
start |
for non "dated" items, start can be called by index |
end |
for non "dated" items, end can be called by index |
toptobottom |
should data be inverse? |
ID |
a column of unique identifiers |
verbose |
Should dap_summary be printed? |
Wraps dap_get and dap_crop into one. If AOI is NULL no spatial crop is executed. If startDate AND endDate are NULL, no temporal crop is executed. If just endDate is NULL it defaults to the startDate.
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Crop DAP file
dap_crop( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, start = NULL, end = NULL, varname = NULL, verbose = TRUE )
dap_crop( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, start = NULL, end = NULL, varname = NULL, verbose = TRUE )
URL |
local file path or URL |
catalog |
subset of open.dap catalog |
AOI |
an sf of SpatVect point or polygon to extract data for |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
start |
for non "dated" items, start can be called by index |
end |
for non "dated" items, end can be called by index |
varname |
variable name to extract (e.g. tmin) |
verbose |
Should dap_summary be printed? |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Get DAP resource data
dap_get(dap, varname = NULL)
dap_get(dap, varname = NULL)
dap |
data.frame from catalog or dap_crop |
varname |
name of variable to extract. If NULL, then get all |
SpatRaster
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Find DAP Metadata
dap_meta(raw)
dap_meta(raw)
raw |
data.frame |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Print summary information about a DAP summary
dap_summary(dap = NULL, url = NULL)
dap_summary(dap = NULL, url = NULL)
dap |
data.frame from catalog or dap_crop |
url |
Unique Resource Identifier (http or local) |
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Convert OpenDAP to start/count call
dap_to_local(dap, get = TRUE)
dap_to_local(dap, get = TRUE)
dap |
dap description |
get |
should data be collected? |
numeric array
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Get XYTV data from DAP URL
dap_xyzv(obj, varname = NULL, varmeta = FALSE)
dap_xyzv(obj, varname = NULL, varmeta = FALSE)
obj |
an OpenDap URL or NetCDF object |
varname |
name of variable to extract. If NULL, then get all |
varmeta |
should variable metadata be appended? |
data.frame with (varname, X_name, Y_name, T_name)
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
extract timeseries values from a raster stack for a set of points
extract_sites(r, pts, ID = NULL)
extract_sites(r, pts, ID = NULL)
r |
a SpatRaster object |
pts |
point to extract from |
ID |
the unique identifier of each point (column name from pts) |
a data.frame with columes representing points, and rows time periods
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Get DAP Array
get_data(dap)
get_data(dap)
dap |
dap description |
SpatRast
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Get USGS 3DEP DEMs
get3DEP(AOI, resolution = "30m", ID = NULL)
get3DEP(AOI, resolution = "30m", ID = NULL)
AOI |
an sf of SpatVect point or polygon to extract data for |
resolution |
DEM resolution (10m or 30m (default)) |
ID |
a column of unique identifiers |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get BCCA data
getBCCA( AOI, varname, model = "CCSM4", scenario = "rcp45", ensemble = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getBCCA( AOI, varname, model = "CCSM4", scenario = "rcp45", ensemble = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
ensemble |
The model ensemble member used to generate data |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
The California Basin Characterization Model (CABCM) dataset provides historical and projected climate and hydrology data at a 270 meter resolution, which is relevant for watershed-scale evaluation and planning.
getCABCM( AOI = NULL, varname = NULL, model = "CNRM", scenario = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getCABCM( AOI = NULL, varname = NULL, model = "CNRM", scenario = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get CHIRPS data
getCHIRPS( AOI, varname = NULL, timeRes = "daily", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getCHIRPS( AOI, varname = NULL, timeRes = "daily", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
timeRes |
"Pentad", "Annual", "Daily" (default), or "Monthly" |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
This dataset provides Daymet Version 4 model output data as gridded estimates of daily weather parameters for North America. Daymet output variables include the following parameters: minimum temperature, maximum temperature, precipitation, shortwave radiation, vapor pressure, snow water equivalent, and day length. The dataset covers the period from January 1, 1980 to December 31 of the most recent full calendar year. Each subsequent year is processed individually at the close of a calendar year after allowing adequate time for input weather station data to be of archive quality. Daymet variables are continuous surfaces provided as individual files, by year, at a 1-km x 1-km spatial resolution and a daily temporal resolution. Data are in a Lambert Conformal Conic projection for North America and are in a netCDF file format compliant with Climate and Forecast (CF) metadata conventions.
getDaymet( AOI, varname = NULL, startDate = NULL, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getDaymet( AOI, varname = NULL, startDate = NULL, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get a default dodsrc file path
getDodsrcPath()
getDodsrcPath()
A character vector containing the default netrc file path
Other netrc:
checkDodsrc()
,
checkNetrc()
,
getNetrcPath()
,
writeDodsrc()
,
writeNetrc()
getDodsrcPath()
getDodsrcPath()
Get GLDAS data
getGLDAS( AOI, varname = NULL, model = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getGLDAS( AOI, varname = NULL, model = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
gridMET is a dataset of daily high-spatial resolution (~4-km, 1/24th degree) surface meteorological data covering the contiguous US from 1979-yesterday. These data are updated daily.
getGridMET( AOI, varname, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getGridMET( AOI, varname, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
World Soil Information (International Soil Reference and Information Centre) serves the international community with open access global soil data
getISRIC_soils(AOI = NULL, varname = NULL, verbose = TRUE, ID = NULL)
getISRIC_soils(AOI = NULL, varname = NULL, verbose = TRUE, ID = NULL)
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Land Change Monitoring, Assessment, and Projection
getLCMAP(AOI, year = 2019, type = "primary landcover", ID = NULL)
getLCMAP(AOI, year = 2019, type = "primary landcover", ID = NULL)
AOI |
an sf of SpatVect point or polygon to extract data for |
year |
Land cover product year 1985 - 2019 (default = 2019) |
type |
product type (primary landcover (default), secondary landcover, primary confidence, secondary confidence, cover change, change day, change magniture, model cquality, spectral stability, spectral lastchance) |
ID |
a column of unique identifiers |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get Livneh data
getLivneh( AOI, varname = NULL, startDate, endDate = NULL, timeRes = "daily", verbose = FALSE, ID = NULL, dryrun = FALSE )
getLivneh( AOI, varname = NULL, startDate, endDate = NULL, timeRes = "daily", verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
timeRes |
daily or monthly |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get Livneh Flux data
getLivneh_fluxes( AOI, varname = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getLivneh_fluxes( AOI, varname = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
LOCA is a statistical downscaling technique that uses past history to add improved fine-scale detail to global climate models. LOCA has been used to downscale 32 global climate models from the CMIP5 archive at a 1/16th degree spatial resolution, covering North America from central Mexico through Southern Canada. The historical period is 1950-2005, and there are two future scenarios available: RCP 4.5 and RCP 8.5 over the period 2006-2100 (although some models stop in 2099). The variables currently available are daily minimum and maximum temperature, and daily precipitation. For more information visit: http://loca.ucsd.edu/.
getLOCA( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getLOCA( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get LOCA Hydrology data
getLOCA_hydro( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getLOCA_hydro( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Multivariate Adaptive Constructed Analogs (MACA) is a statistical method for downscaling Global Climate Models (GCMs) from their native coarse resolution to a higher spatial resolution that captures reflects observed patterns of daily near-surface meteorology and simulated changes in GCMs experiments.
getMACA( AOI, varname, timeRes = "day", model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getMACA( AOI, varname, timeRes = "day", model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
timeRes |
daily or monthly |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get MODIS data
getMODIS( AOI, asset = NULL, varname = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getMODIS( AOI, asset = NULL, varname = NULL, startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
asset |
The MODIS sensor |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get NASA Global DEM
getNASADEM(AOI, ID = NULL)
getNASADEM(AOI, ID = NULL)
AOI |
an sf of SpatVect point or polygon to extract data for |
ID |
a column of unique identifiers |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get a default netrc file path
getNetrcPath()
getNetrcPath()
A character vector containing the default netrc file path
Other netrc:
checkDodsrc()
,
checkNetrc()
,
getDodsrcPath()
,
writeDodsrc()
,
writeNetrc()
getNetrcPath()
getNetrcPath()
Get USGS National Land Cover Dataset
getNLCD(AOI, year = 2019, type = "land cover", ID = NULL)
getNLCD(AOI, year = 2019, type = "land cover", ID = NULL)
AOI |
an sf of SpatVect point or polygon to extract data for |
year |
Landcover product year (2001, 2011,2016,2019) |
type |
product type |
ID |
a column of unique identifiers |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get NLDAS data
getNLDAS( AOI, varname = NULL, model = "FORA0125_H.002", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getNLDAS( AOI, varname = NULL, model = "FORA0125_H.002", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get PRISM data
getPRISM( AOI, varname = NULL, startDate, endDate = NULL, timeRes = "daily", verbose = FALSE, ID = NULL, dryrun = FALSE )
getPRISM( AOI, varname = NULL, startDate, endDate = NULL, timeRes = "daily", verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
timeRes |
daily or monthly |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
Get Terra Climate Data for an Area of Interest
getTerraClim( AOI, varname = NULL, startDate = NULL, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getTerraClim( AOI, varname = NULL, startDate = NULL, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClimNormals()
,
getVIC()
,
getWorldClim()
These layers from TerraClimate were creating using climatically aided interpolation of monthly anomalies from the CRU Ts4.0 and Japanese 55-year Reanalysis (JRA-55) datasets with WorldClim v2.0 climatologies.
getTerraClimNormals( AOI, varname, scenario = "19812010", month = 1:12, verbose = FALSE, ID = NULL, dryrun = FALSE )
getTerraClimNormals( AOI, varname, scenario = "19812010", month = 1:12, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
scenario |
A climate or modeling scenario |
month |
numeric. and month or vector of months to access. Default is 1:12 |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getVIC()
,
getWorldClim()
Get VIC data
getVIC( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
getVIC( AOI, varname, model = "CCSM4", scenario = "rcp45", startDate, endDate = NULL, verbose = FALSE, ID = NULL, dryrun = FALSE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
scenario |
A climate or modeling scenario |
startDate |
a start date given as "YYYY-MM-DD" to extract data for |
endDate |
an end date given as "YYYY-MM-DD" to extract data for |
verbose |
Should messages be emited? |
ID |
a column of unique identifiers |
dryrun |
Return summary of data prior to retrieving it |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getWorldClim()
WorldClim is a database of high spatial resolution global weather and climate data. These data can be used for mapping and spatial modeling.
getWorldClim( AOI = NULL, varname = NULL, model = "wc2.1_5m", month = 1:12, ID = NULL, verbose = TRUE )
getWorldClim( AOI = NULL, varname = NULL, model = "wc2.1_5m", month = 1:12, ID = NULL, verbose = TRUE )
AOI |
an sf of SpatVect point or polygon to extract data for |
varname |
variable name to extract (e.g. tmin) |
model |
GCM model name generating |
month |
numeric. and month or vector of months to access. Default is 1:12 |
ID |
a column of unique identifiers |
verbose |
Should messages be emited? |
if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.
Other shortcuts:
get3DEP()
,
getBCCA()
,
getCABCM()
,
getCHIRPS()
,
getDaymet()
,
getGLDAS()
,
getGridMET()
,
getISRIC_soils()
,
getLCMAP()
,
getLOCA()
,
getLOCA_hydro()
,
getLivneh()
,
getLivneh_fluxes()
,
getMACA()
,
getMODIS()
,
getNASADEM()
,
getNLCD()
,
getNLDAS()
,
getPRISM()
,
getTerraClim()
,
getTerraClimNormals()
,
getVIC()
Read formated DAP URL as SpatRast
go_get_dap_data(dap)
go_get_dap_data(dap)
dap |
output from dap_crop |
SpatRast
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
This function retrieves or prepares metadata for data stored in a Zarr format.
go_get_zarr(zarr, get = TRUE)
go_get_zarr(zarr, get = TRUE)
zarr |
A data frame containing details of the Zarr resource to process. Each row should correspond to a single Zarr resource. |
get |
Logical. If 'TRUE', retrieves data; if 'FALSE', returns metadata information. |
If 'get = TRUE', returns the requested data as a matrix. If 'get = FALSE', returns a data frame containing metadata information for the resource.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_get()
,
zarr_to_terra()
,
zarr_xyzv()
## Not run: # Example usage (assuming `zarr` is a properly formatted data frame): # result <- go_get_zarr(zarr, get = TRUE) ## End(Not run)
## Not run: # Example usage (assuming `zarr` is a properly formatted data frame): # result <- go_get_zarr(zarr, get = TRUE) ## End(Not run)
Find DAP grid metadata
grid_meta(raw)
grid_meta(raw)
raw |
data.frame |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Convert catalog entry to extent
make_ext(cat)
make_ext(cat)
cat |
catalog entry (data.frame with an (Xn, X1, Yn, Y1, crs) |
SpatExtent
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Make Vector
make_vect(cat)
make_vect(cat)
cat |
catalog entry (data.frame with an c(Xn, X1, Yn, Y1, crs)) |
SpatVect
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Given a list of SpatRasters with possibly shared names, merge across time
merge_across_time(data)
merge_across_time(data)
data |
list of names SpatRasters |
data.frame with (varname, X_name, Y_name, T_name)
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Parse Dates from duration and interval
parse_date(duration, interval)
parse_date(duration, interval)
duration |
time duration |
interval |
time interval |
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Reads an OpenDap resources and returns metadata
read_dap_file(URL, varname = NULL, id, varmeta = TRUE)
read_dap_file(URL, varname = NULL, id, varmeta = TRUE)
URL |
URL to OpenDap resource |
varname |
name of variable to extract. If NULL, then get all |
id |
character. Uniquely named dataset identifier |
varmeta |
should variable metadata be appended? |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Read from FTP
read_ftp(URL, cat, lyrs = 1, AOI, ext = NULL, crs = NULL, dates = NULL)
read_ftp(URL, cat, lyrs = 1, AOI, ext = NULL, crs = NULL, dates = NULL)
URL |
Unique Resource Identifier (http or local) |
cat |
catalog element |
lyrs |
lyrs to extract |
AOI |
Area of Interest |
ext |
extent of source (if needed) |
crs |
crs of source (if needed) |
dates |
dates of data |
SpatRaster
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Every month, our data catalog is refreshed. This function reads the most current catalog from the Github release.
read_live_catalog( url = paste0("https://github.com/mikejohnson51/climateR-catalogs", "/releases/latest/download/", "catalog.parquet") )
read_live_catalog( url = paste0("https://github.com/mikejohnson51/climateR-catalogs", "/releases/latest/download/", "catalog.parquet") )
url |
URL to read |
data.frame
Other catalog:
catalog
Reads a Zarr file from a specified URL and extracts metadata and variable information.
read_zarr_file(URL, varname = NULL, id, varmeta = TRUE)
read_zarr_file(URL, varname = NULL, id, varmeta = TRUE)
URL |
Character. The URL of the Zarr file. |
varname |
Character. Variable name to extract. Defaults to NULL. |
id |
Character. An identifier for the dataset. |
varmeta |
Logical. Whether to include variable metadata. Defaults to TRUE. |
A data frame with merged metadata and variable information.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
go_get_zarr()
,
zarr_crop()
,
zarr_get()
,
zarr_to_terra()
,
zarr_xyzv()
Find DAP time metadata
time_meta(raw)
time_meta(raw)
raw |
data.frame |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
try_att()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
TryCatch around RNetCDF::att.get.nc()
try_att(nc, variable, attribute)
try_att(nc, variable, attribute)
nc |
"NetCDF" object which points to the NetCDF dataset. Found with RNetCDF::open.nc. |
variable |
ID or name of the variable from which the attribute will be read, or "NC_GLOBAL" for a global attribute. |
attribute |
Attribute name or ID. |
Vector with a data type that depends on the NetCDF variable. For NetCDF variables of type NC_CHAR, the R type is either character or raw, as specified by argument rawchar. For NC_STRING, the R type is character. Numeric variables are read as double precision by default, but the smallest R type that exactly represents each external type is used if fitnum is TRUE.
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
var_to_terra()
,
variable_meta()
,
vrt_crop_get()
Variable Array to SpatRast
var_to_terra(var, dap)
var_to_terra(var, dap)
var |
numeric array |
dap |
dap description |
SpatRast
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
variable_meta()
,
vrt_crop_get()
Find DAP variable metadata
variable_meta(raw, verbose = TRUE)
variable_meta(raw, verbose = TRUE)
raw |
data.frame |
verbose |
emit messages |
data.frame
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
vrt_crop_get()
VRT Crop
vrt_crop_get( URL = NULL, catalog = NULL, AOI = NULL, grid = NULL, varname = NULL, start = NULL, end = NULL, toptobottom = FALSE, verbose = TRUE )
vrt_crop_get( URL = NULL, catalog = NULL, AOI = NULL, grid = NULL, varname = NULL, start = NULL, end = NULL, toptobottom = FALSE, verbose = TRUE )
URL |
local file path or URL |
catalog |
subset of open.dap catalog |
AOI |
an sf of SpatVect point or polygon to extract data for |
grid |
a list containing an extent (), and crs |
varname |
variable name to extract (e.g. tmin) |
start |
for non "dated" items, start can be called by index |
end |
for non "dated" items, end can be called by index |
toptobottom |
should data be inverse? |
verbose |
Should dap_summary be printed? |
SpatRaster
Other dap:
.resource_grid()
,
.resource_time()
,
climater_dap()
,
climater_filter()
,
dap()
,
dap_crop()
,
dap_get()
,
dap_meta()
,
dap_summary()
,
dap_to_local()
,
dap_xyzv()
,
extract_sites()
,
get_data()
,
go_get_dap_data()
,
grid_meta()
,
make_ext()
,
make_vect()
,
merge_across_time()
,
parse_date()
,
read_dap_file()
,
read_ftp()
,
time_meta()
,
try_att()
,
var_to_terra()
,
variable_meta()
Write a dodsrc file that is valid for a netrc file
writeDodsrc(netrcFile = getNetrcPath(), dodsrcFile = ".dodsrc")
writeDodsrc(netrcFile = getNetrcPath(), dodsrcFile = ".dodsrc")
netrcFile |
A character. A path to where the netrc file should be. |
dodsrcFile |
The path to the dodsrc file you want to write By default will go to your home directory, which is advised |
A character vector containing the netrc file path
Other netrc:
checkDodsrc()
,
checkNetrc()
,
getDodsrcPath()
,
getNetrcPath()
,
writeNetrc()
Write a netrc file that is valid for accessing urs.earthdata.nasa.gov
writeNetrc( login, password, machine = "urs.earthdata.nasa.gov", netrcFile = getNetrcPath(), overwrite = FALSE )
writeNetrc( login, password, machine = "urs.earthdata.nasa.gov", netrcFile = getNetrcPath(), overwrite = FALSE )
login |
A character. Email address used for logging in on earthdata |
password |
A character. Password associated with the login. |
machine |
the machine you are logging into |
netrcFile |
A character. A path to where the netrc file should be written. By default will go to your home directory, which is advised |
overwrite |
A logical. overwrite the existing netrc file? |
The database is accessed with the user's credentials. A netrc file storing login and password information is required. See here. Once set up you must do the following (1) Login to EarthData (2) Go to Applications > Authorized Apps (3) If NASA GESDISC DATA ARCHIVE is not in the Approved Applications list, select APPROVE MORE APPLICATIONS (4) Find NASA GESDISC DATA ARCHIVE and click AUTHORIZE for instruction on how to register and set DataSpace credential.
A character vector containing the netrc file path
Other netrc:
checkDodsrc()
,
checkNetrc()
,
getDodsrcPath()
,
getNetrcPath()
,
writeDodsrc()
## Not run: writeNetrc( login = "[email protected]", password = "yourSecretPassword" ) ## End(Not run)
## Not run: writeNetrc( login = "[email protected]", password = "yourSecretPassword" ) ## End(Not run)
Crops data in a Zarr file based on spatial (AOI) and temporal (start/end) filters.
zarr_crop( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, start = NULL, end = NULL, varname = NULL, verbose = TRUE )
zarr_crop( URL = NULL, catalog = NULL, AOI = NULL, startDate = NULL, endDate = NULL, start = NULL, end = NULL, varname = NULL, verbose = TRUE )
URL |
Character. The URL of the Zarr file. Defaults to NULL. |
catalog |
Data frame. Metadata catalog for the Zarr file. Defaults to NULL. |
AOI |
Spatial object. Area of interest for cropping. Defaults to NULL. |
startDate |
Character. Start date for cropping. Defaults to NULL. |
endDate |
Character. End date for cropping. Defaults to NULL. |
start |
Numeric. Start index for cropping. Defaults to NULL. |
end |
Numeric. End index for cropping. Defaults to NULL. |
varname |
Character. Variable name to crop. Defaults to NULL. |
verbose |
Logical. Whether to print verbose output. Defaults to TRUE. |
A cropped dataset matching the specified criteria.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_get()
,
zarr_to_terra()
,
zarr_xyzv()
This function processes Zarr resources and converts them into terra spatial objects.
zarr_get(zarr, varname = NULL)
zarr_get(zarr, varname = NULL)
zarr |
A data frame containing details of the Zarr resources to process. Each row should correspond to a single Zarr resource. |
varname |
Character vector specifying the variable names to retrieve. If 'NULL', retrieves all available variables. |
Returns processed data as terra SpatRaster objects or merged data frames, depending on the input and Zarr properties.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_to_terra()
,
zarr_xyzv()
## Not run: # Example usage (assuming `zarr` is a properly formatted data frame): # result <- zarr_get(zarr, varname = "temperature") ## End(Not run)
## Not run: # Example usage (assuming `zarr` is a properly formatted data frame): # result <- zarr_get(zarr, varname = "temperature") ## End(Not run)
Converts extracted Zarr data into terra SpatRaster objects or data frames based on spatial and temporal dimensions.
zarr_to_terra(var, zarr)
zarr_to_terra(var, zarr)
var |
A variable containing extracted Zarr data. |
zarr |
A data frame containing details of the Zarr resource, including metadata. |
Returns a terra SpatRaster object or data frame containing the processed data.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_get()
,
zarr_xyzv()
## Not run: # Example usage (assuming `var` and `zarr` are properly formatted): # result <- zarr_to_terra(var, zarr) ## End(Not run)
## Not run: # Example usage (assuming `var` and `zarr` are properly formatted): # result <- zarr_to_terra(var, zarr) ## End(Not run)
Extracts variable and coordinate information from a Zarr object.
zarr_xyzv(obj, varname = NULL, varmeta = FALSE)
zarr_xyzv(obj, varname = NULL, varmeta = FALSE)
obj |
Zarr object or file path. |
varname |
Character. Specific variable name to extract. Defaults to NULL. |
varmeta |
Logical. Whether to include variable metadata. Defaults to FALSE. |
A data frame containing variable metadata and coordinate information.
Other zarr:
.resource_grid_zarr()
,
.resource_time_zarr()
,
go_get_zarr()
,
read_zarr_file()
,
zarr_crop()
,
zarr_get()
,
zarr_to_terra()