Creates a table using the arcpy library and populates the table with the results from the Cal-Adapt API

createTable(results, workspace, tableName, fieldName, variable, gcm, scenario, period, stat)

Arguments

results

Result from the Cal-Adapt API request in JSON format

workspace

Workspace where you would like the table (folder or File Geodatabase)

tableName

Name of table to create

fieldName

Categorical field for each unique part in a multipart featureset

variable

Variable Name

gcm

Global Climate Model

scenario

Emissions Scenario

period

Time Period

stat

Statistic

Details

caladapt-py has the ability to store copies of objects downloaded from Cal-Adapt. An example of this would be the source rasters in netcdf format and tabular data queried using user defined AOI. Using this function you can easily save the data returned from the Cal-Adapt API into a table in an ArcGIS File Geodatabase.

NOTE: if fieldName, using multiples feature in Cal-Adapt API query, the categorical field will be used to store the unique identifier for each feature.

See also