caladapt-py
is an API client that makes it easier to work with data from Cal-Adapt.org in Python and ArcGIS. The role of
caladapt-py
is to bring data into Python and ArcGIS and provide high-level
functions to get it into your GIS for further analysis:
caladapt-py
allows you to:
‘Beta’ status means:
caladapt-py
is hosted on GitHub. To install, download the zip
file
from github and uncompress the zip file into
your project folder. For ArcGIS, load the python toolbox into your ArcGIS Project and use
the tools in the toolbox. For Python, import the libarary and use the different modules as
needed.
In general, there are three steps to getting data via the Cal-Adapt API:
import arcpy
arcpy.ImportToolbox(r'D:\Data\ArcGIS\Projects\CalAdapt_Cookbook\CalAdaptLib\CalAdapt.pyt','')
import CalAdaptLib as cal
ie. arcpy.GetDataAPI("Get Data from API Input Feature Set (Polygons)", None,
'', "tair", "gfdl-cm3", "month", True, True, True, False, "mean",
r"D:\Data\ArcGIS\Projects\CalAdaptpy_Test\CalAdaptpy_Test.gdb\GetDataAPI")