Lab-0022: Difference between revisions

From CSDMS
m (Include warning about memory use)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
|LabAssociatedLesson=Jupyter Notebook
|LabAssociatedLesson=Jupyter Notebook
|LabURLDownloadNotebook=https://downgit.github.io/#/home?url=https://github.com/ale37911/CSDMS_Labs/tree/main/TCM
|LabURLDownloadNotebook=https://downgit.github.io/#/home?url=https://github.com/ale37911/CSDMS_Labs/tree/main/TCM
|LabURLStartNotebook=https://csdms.rc.colorado.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fale37911%2F%2FCSDMS_Labs&urlpath=tree%2FCSDMS_Labs%2FTCM%2FTCM_Student.ipynb&branch=main
|LabURLStartNotebook=https://jupyter.openearthscape.org/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fale37911%2F%2FCSDMS_Labs&urlpath=tree%2FCSDMS_Labs%2FTCM%2FTCM_Student.ipynb&branch=main
|LabURL2StartNotebook=https://jupyter.openearthscape.org/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fale37911%2F%2FCSDMS_Labs&urlpath=tree%2FCSDMS_Labs%2FTCM%2FTCM_Student.ipynb&branch=main
}}
}}
{{LabContributorData
{{LabContributorData
Line 52: Line 53:
Please go here for the scripts and files used: https://github.com/ale37911/CSDMS_Labs/tree/main/TCM.
Please go here for the scripts and files used: https://github.com/ale37911/CSDMS_Labs/tree/main/TCM.


This lab can be run on the CSDMS JupyterHub. If you don't already have an account, follow the instructions to sign up at: https://csdms.colorado.edu/wiki/JupyterHub. If you're an educator using this lab in a class, you can get CSDMS JupyterHub accounts for students. For more information, please contact us through the CSDMS Help Desk: https://github.com/csdms/help-desk. Run the lab Notebook by clicking the "start" link under the '''Run online''' heading at the top of this page. Note that the data files required for the lab have been uploaded to the CSDMS JupyterHub and placed in the directory <code>/data/TCM_data_CSDMS_Ex</code>; the Notebook will need to be updated with this path. Also note the Notebook uses about 5 GB of memory, so it's possible to run out of memory if many people are using the JupyterHub simultaneously.
<p>This lab can be run on the <em>lab</em> (for educators) and <em>jupyter</em> (for general use) instances of the OpenEarthscape JupyterHub: just click one of the links under the <strong>Run online using</strong> heading at the top of this page, then run the notebook in  the "CSDMS" kernel.</p>
 
<p>If you don't already have a JupyterHub account, follow the instructions to sign up at https://csdms.colorado.edu/wiki/JupyterHub. If you're an educator, you can get JupyterHub accounts for students--please contact us through the CSDMS Help Desk: https://csdms.github.io/help-desk.</p>
 
<p>Note that the data files required for the lab have been uploaded to the CSDMS JupyterHub and placed in the directory <code>/data/TCM_data_CSDMS_Ex</code>; the Notebook will need to be updated with this path. Also note the Notebook uses about 5 GB of memory, so it's possible to run out of memory if many people are using the JupyterHub simultaneously.</p>
|LabNotesRequirements=If run locally, this lab requires the installation of the Python ''numpy'', ''pandas'', and ''matplotlib'' packages. You will also need TCM output data files and a local weather output (I manually cleaned that file of all header information). Download these files from https://drive.google.com/drive/folders/1vKAZbYs3rJGVF2ULqCK0ulcq7qmsTsAi.
|LabNotesRequirements=If run locally, this lab requires the installation of the Python ''numpy'', ''pandas'', and ''matplotlib'' packages. You will also need TCM output data files and a local weather output (I manually cleaned that file of all header information). Download these files from https://drive.google.com/drive/folders/1vKAZbYs3rJGVF2ULqCK0ulcq7qmsTsAi.
|LabAcknowledgements=CSDMS and Mark Piper helped me create and host these labs on jupyterhub.
|LabAcknowledgements=CSDMS and Mark Piper helped me create and host these labs on jupyterhub.
}}
}}

Latest revision as of 14:10, 19 April 2022

Tilt Current Meter Analyses

Model
n/a
Duration
2.0 hrs
Updated
2020-10-27
Download
download
Run online using:
  1. Jupyter
  2. Lab
     

Contributor(s)
    Alejandra C. Ortiz at Colby College.

Introduction
We will be analyzing the data from a month long deployment of a Lowell Tilt Current Meter: https://lowellinstruments.com/products/tcm-1-tilt-current-meter/. These meters were deployed at the boat ramp of Bog Stream in North Pond, Maine (44.647773, -69.865923) from Sept. 25th 2020 - Oct. 22, 2020 as part of a final project for GE 254 at Colby College in conjunction with the 7-lakes alliance (https://www.7lakesalliance.org/).

Classroom organization
This was used as a lab to analyze velocity data from a month long deployment in a nearby stream. It was used as part of a final group project students were doing and to further their introduction and comfort with python and pandas dataframes.

Learning objectives
Skills
  • Importing, analyzing, and visualizing time-series data
  • Cleaning up raw data
  • Averaging burst data
  • Exploring potential drivers of velocity changes at our site (meteorological)
Key concepts
  • Averaging Time-series data at different frequencies
  • Importing long-temporal data series
  • learn how to make more complicated plots in python: 2 y-axes or using color of markers to denote a 3rd variable
  • learn how to utilize date-time objects in pandas to work FOR you in time-series analyses

Lab notes
Make sure students have some understanding of how a TCM (tilt current meter) works - https://www.lowellinstruments.com/download_files/Universal_User_Guide.pdf

Please go here for the scripts and files used: https://github.com/ale37911/CSDMS_Labs/tree/main/TCM.

This lab can be run on the lab (for educators) and jupyter (for general use) instances of the OpenEarthscape JupyterHub: just click one of the links under the Run online using heading at the top of this page, then run the notebook in the "CSDMS" kernel.

If you don't already have a JupyterHub account, follow the instructions to sign up at https://csdms.colorado.edu/wiki/JupyterHub. If you're an educator, you can get JupyterHub accounts for students--please contact us through the CSDMS Help Desk: https://csdms.github.io/help-desk.

Note that the data files required for the lab have been uploaded to the CSDMS JupyterHub and placed in the directory /data/TCM_data_CSDMS_Ex; the Notebook will need to be updated with this path. Also note the Notebook uses about 5 GB of memory, so it's possible to run out of memory if many people are using the JupyterHub simultaneously.


Requirements
If run locally, this lab requires the installation of the Python numpy, pandas, and matplotlib packages. You will also need TCM output data files and a local weather output (I manually cleaned that file of all header information). Download these files from https://drive.google.com/drive/folders/1vKAZbYs3rJGVF2ULqCK0ulcq7qmsTsAi.

Acknowledgements
CSDMS and Mark Piper helped me create and host these labs on jupyterhub.

References