Package: caladaptr 0.7.0

Andy Lyons

caladaptr: Import Climate Data from Cal-Adapt via the API

Base functions for importing climate data using the Cal-Adapt API <https://cal-adapt.org/>.

Authors:Andy Lyons [aut, cre], Regents of the University of California [cph], California Strategic Growth Council [fnd]

caladaptr_0.7.0.tar.gz
caladaptr_0.7.0.zip(r-4.7-any)caladaptr_0.7.0.zip(r-4.6-any)caladaptr_0.7.0.zip(r-4.5-any)
caladaptr_0.7.0.tgz(r-4.6-any)caladaptr_0.7.0.tgz(r-4.5-any)
caladaptr_0.7.0.tar.gz(r-4.7-any)caladaptr_0.7.0.tar.gz(r-4.6-any)
caladaptr_0.7.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
caladaptr/json (API)

# Install 'caladaptr' in R:
install.packages('caladaptr', repos = c('https://ajlyons.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ucanr-igis/caladaptr/issues

Pkgdown/docs site:https://ucanr-igis.github.io

Datasets:

On CRAN:

Conda:

cal-adaptclimate-data

5.19 score 7 stars 89 scripts 38 exports 113 dependencies

Last updated from:2f1bafefc6. Checks:7 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develNOTE324
source / vignettesOK284
linux-releaseNOTE339
macos-releaseNOTE211
macos-oldrelNOTE190
windows-develNOTE217
windows-releaseNOTE229
windows-oldrelNOTE229
wasm-releaseOK175

Exports:%>%bbox_resizeca_aoipreset_geomca_apicallsca_apireqca_biggeom_blocksca_catalog_fetchca_catalog_rsca_catalog_searchca_cvarca_datesca_db_indicesca_db_infoca_db_readca_example_apireqca_gcmca_getcacheca_getrst_starsca_getvals_dbca_getvals_tblca_livnehca_loc_aoipresetca_loc_ptca_loc_sfca_locagrid_geomca_optionsca_periodca_preflightca_read_dbca_read_starsca_scenarioca_settingsca_slugca_stars_6dca_stars_indexca_stars_mosaicca_stars_readca_years

Dependencies:abindaskpassbackportsbase64encbitbit64blobbslibcachemclassclassIntclicolorspacecols4allcommonmarkcpp11crayoncrosstalkcurldata.tableDBIdbplyrdigestdplyre1071evaluatefarverfastmapfastmatchfontawesomefsgenericsgeojsonsfgeometriesgluehighrhtmltoolshtmlwidgetshttpuvhttrjquerylibjsonifyjsonliteKernSmoothknitrlabelinglaterlatticelazyevalleafemleafglleaflegendleafletleaflet.providersleafsynclifecycleloggerlwgeommagrittrmaptilesmemoisemimeopensslotelpillarpkgconfigpngpromisesproxypurrrR6rapidjsonrrappdirsrasterRColorBrewerRcpprlangrmarkdownRSQLites2sassscalesservrsfsfheadersshinysourcetoolsspspacesXYZstarsstringdiststringistringrsysterratibbletidyrtidyselecttinytextmaptmaptoolsunitsutf8vctrsviridisLitewithrwkxfunXMLxtableyamlyyjsonrzip

API Requests
Introduction | Specifying Location | Datasets | Specifying Datasets | Dates | Options | Checking the integrity of an API request

Last update: 2025-05-12
Started: 2021-09-07

Large Queries
Introduction | Example: Query Data for 450 Census Tracks | Fetch Data | Remote Tibbles | Mounting an existing SQLite database as a remote tibble | Reading databases with SQL | Optimizating Database Performance | How many databases? | How many tables? | Indices | Reducing the Number of API Calls by Grouping Locations by Loca Grid Cell

Last update: 2025-05-12
Started: 2021-09-07

Rasters Part I: Download, Combine, Subset, and Compute Pixel Summaries
Introduction | Download Practice Data | Read TIFs into R | Explore a stars object | Subsetting stars objects | Plotting stars objects | Overlay a vector feature | Create a List Index | Subset the list by GCM & emissions scenario | Time Filters | Date Filter | Month Filter | Julian Day Filter | Compute GDD | Prepare one season of daily min/max in Celsius | Compute Daily GDD | Explore results | Accumulated GDD | Plot a Accumulated GDD Surface | Save to disk | How many frost days per year?

Last update: 2025-05-12
Started: 2021-09-07

Rasters Part II: Six-Dimensional Climate Data Cubes and Spatial Queries
Think of rasters as arrays | Import Merced County raster data | Create a 6D data cube | Subsetting with square brackets | Example 1. Square bracket notation to subet multiple dimensions simultaneously | Example 2. Square bracket notation within a loop | Spatial Subsetting | Spatial Aggregation | Compute Accumulated GDD for Merced County Supervisor Districts

Last update: 2025-05-12
Started: 2021-09-07

Rasters Part III: Downloading Rasters for Large Areas
Introdution | Downloading NetCDF Files | Break-up a large area-of-interest into blocks | Download TIFs | Import TIFs and mosaic them | Create a 6D mosaic | Parallel Processing

Last update: 2025-05-12
Started: 2021-09-07

Readme and manuals

Help Manual

Help pageTopics
Area-of-interest presetsaoipreset_idflds aoipreset_idval aoipreset_types
Resize a bounding box objectbbox_resize
Get the geometry of an AOI Preset areaca_aoipreset_geom
Creates a new API request objectca_apireq
Cal-Adapt base URLca_baseurl
Split a large geom into blocks small enough to ask the API for rastersca_biggeom_blocks
Fetch a new copy of the Cal-Adapt raster series catalogca_catalog_fetch
Get the Cal-Adapt raster series data catalogca_catalog_rs
Search the Cal-Adapt raster series data catalogca_catalog_search
Add climate variable(s) to a Cal-Adapt API requestca_cvar
Adds a start and end date of a Cal-Adapt API callca_dates
Add or delete indicesca_db_indices
View properties of a Cal-Adapt SQLlite databaseca_db_info
Load a Cal-Adapt SQLite database into Rca_db_read
Sample API requestsca_example_apireq
Adds GCM(s) to a Cal-Adapt API requestca_gcm
Manage cache directoryca_getcache ca_setcache
Get cropped rastersca_getrst_stars
Write values from an API request to a local databaseca_getvals_db
Get values from an API request object as a tibbleca_getvals_tbl
Use Livneh data in a Cal-Adapt API callca_livneh
Adds a preset location to a Cal-Adapt API requestca_loc_aoipreset
Add point location(s) to a Cal-Adapt API requestca_loc_pt
Use a sf data frame as the location for a Cal-Adapt API requestca_loc_sf
Get the LOCA grid cells as a sf objectca_locagrid_geom
Add processing options to a Cal-Adapt API callca_options
Assign temporal aggregation period to a Cal-Adapt API callca_period
Run checks on an API request objectca_preflight
Add emission scenario(s) to a Cal-Adapt API requestca_scenario
Manage package settingsca_settings
Adds slug(s) to a Cal-Adapt API callca_slug
Create a six-dimensional stars object for modeled climate dataca_stars_6d
Create an index for a list of stars rastersca_stars_index
Mosaic stars objects into a seamless array for large areasca_stars_mosaic
Read tif files from diskca_stars_read
Adds the start and end year to a Cal-Adapt API callca_years
Climate variablescvars
Format a ca_apireq objectformat.ca_apireq
Format a ca_db_info object for printing at the consoleformat.ca_db_info
Global climate modelsgcms
Temporal aggregation periodsperiods
Plot a ca_apireq objectplot.ca_apireq
Print a ca_apireq objectprint.ca_apireq
Print a ca_db_info objectprint.ca_db_info
Scenariosscenarios