Classify climate regions with Python

Register an Earthdata account

Before running the Python notebook, you first must perform a few preliminary tasks.

The Daymet data is available for anyone to use; however, you must create an Earthdata account to access it. Earthdata accounts are free and give you access to all of the data in NASA's Earth Observing System Data and Information System (EOSDIS).

Note:

If you already have an Earthdata account, skip to the next section.

  1. Open the Register for an Earthdata Login Profile web page.
  2. Complete the form on this page. In the Affiliations section, the following answers are suggested:
    • For Affiliation, choose Education.
    • For User Type, choose Public User.
    • For Study Area, choose Land Processes.
  3. Check the I'm not a robot check box.
  4. Click Register for Earthdata Login.
  5. Close the Earthdata web page.

Build a Python environment

You'll make a clone of the default arcgispro-py3 environment and add the Pydap package to the cloned environment. Pydap is a Python library that implements the OPeNDAP protocol. OPeNDAP provides access to hundreds of scientific datasets, including Daymet.

You'll use the ArcGIS Pro Package Manager to create the new environment and add the new package.

  1. Open ArcGIS Pro and on the start page, click Settings.

    On the start page of ArcGIS Pro, click Settings.

    You'll clone the default arcgispro-py3 environment and name the new environment arcpydap.

  2. On the Settings pane, click Package Manager.

    Open the Package Manager.

  3. On the Package Manager pane, for Active Environment, click the settings button.

    Click the settings button for the Active Environment.

  4. On the Environment Manager window, in the arcgispro-py3 (Default) row, click Clone environment.

    Clone the default environment.

    The Clone Environment window opens.

    Clone Environment window opens.

  5. On the Clone Environment window, in the Destination box, edit the final part of the environment path to change the cloned environment name from arcgispro-py3-clone to arcpydap.

    Change the environment name to be arcpydap.

  6. Click OK.

    On the Environment Manager, an indicator will appear beside the arcgispro-py3 (Default) row to show that the environment is being cloned.

    Clone in progress indicator.

    The cloning process will take about 2 minutes to run.

    When the process is complete, a new row will be added to the Environment Manager for the arcpydap environment.

    The arcpydap environment was created.

  7. On the Environment Manager, in the arcpydap row, point to the end of the row and click the More options button, then click Activate.

    Activate the new environment.

    The new environment will be activated. This process will take several seconds.

  8. On the Environment Manager, click OK.
  9. Close ArcGIS Pro, then restart ArcGIS Pro.

    This ensures that the new environment will be active for the new ArcGIS Pro session.

  10. On the start page, click Settings, and on the Settings pane, click Package Manager.

    On the Package Manager pane, the Active Environment should be arcpydap.

    Active Environment is arcpydap.

  11. On the Package Manager pane, click Add Packages.

    Click Add Packages.

  12. In the Search box, type pydap.

    Type pydap to search for the pydap package.

  13. In the results, for Pydap, click Install.

    Click Install.

  14. Check the box to agree to the terms of use and click Install.

    Agree to the terms and click Install.

    The installation process will take a minute. When it is complete, a green check will appear beside it in the Tasks section.

    Install complete.

  15. Close ArcGIS Pro.

Work in ArcGIS Pro

Next, you'll open the provided ArcGIS Pro project. You'll continue the tutorial with the notebook provided in the project.

  1. Download the Napa_Daymet.zip file.
  2. Locate the downloaded file and unzip it to drive C, so the folder path is C:\Napa_Daymet.
    Caution:

    Some data connections will be broken if you unzip the file to a location other than drive C.

    Select a Destination and Extract Files window

  3. Open the unzipped Napa_Daymet folder and double-click Napa_Daymet.aprx (or Napa_Daymet) to open it in ArcGIS Pro.

    Napa_Daymet.aprx file in the Napa_Daymet folder

  4. If prompted, sign in with your ArcGIS account.

    If you don't have access to ArcGIS Pro or an ArcGIS organizational account, see options for software access.

    ArcGIS Pro appears, showing a small map with the outline of Napa County, California, and a notebook. This notebook is the Daymet.ipynb file found in the Napa_Daymet folder.

  5. Click the Daymet Notebook tab.

    The notebook includes all of the necessary instructions.

  6. Read and run each cell in the notebook.

    Daymet notebook in ArcGIS Pro

Note:

You can learn more about running notebooks in ArcGIS Pro in the tutorial Get started with notebooks in ArcGIS Pro.