Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

SoluteTracerTool


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 880.5 KB
Created: Nov 23, 2021 at 3:12 p.m.
Last updated: May 19, 2023 at 3:45 p.m.
Citation: See how to cite this resource
Sharing Status: Public
Views: 538
Downloads: 35
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

Stream solute tracers have been a popular tool to study transport and transformation of solutes through streams and their connected river corridors for decades. From an initial focus on travel times (“time of passage” studies) and advection-dispersion [e.g., Fischer et al., 1979], the toolkit for interpretation of these data has grown substantially. Current, popular techniques include advection-dispersion modeling [ibid], interpretation of holdback [Danckwerts, 1953], temporal moments [Harvey and Gorelick, 1995; Gupta and Cvetkovic, 2000], channel water balance [Payn et al., 2009], separation of mass involved in transient storage [Wlostowski et al., 2017], and StorAge Selection frameworks [Harman, 2015; Harman et al., 2016; Ward et al., 2019a]. Moreover, several models exist to interpret findings using an inverse modeling approach, including the popular Transient Storage Model [Bencala and Walters, 1983; Runkel, 1998], STAMMT-L [Haggerty and Reeves, 2002], and several continuous-time random-walk models [e.g., Boano et al., 2007]. My lab group currently has toolboxes built in Matlab to execute these analyses, has a track record of sharing our codebase for community use [Ward et al., 2017], and has produced an open-access educational module on HydroLearn to teach best practices in the design, execution, and interpretation of stream solute tracer studies.

Although the execution of a stream solute tracer study is conceptually straightforward, the interpretation of these data is considerably more nuanced. The techniques summarized above each require different mathematical techniques and may provide conflicting information if analyzed individually rather than holistically [Ward et al., 2019; Ward and Packman, 2019]. Moreover, the assumptions made by different researchers can significantly alter the interpretation of the exact same data set) [Drummond et al., 2012]. Thus, we propose to standardize the interpretation of stream solute tracer studies and provide context from other studies to aid in interpretation of data and analyses. By doing so, we will (1) provide data interpretation to users contributing their solute tracer results to the database; (2) aggregate a database of uniformly interpreted tracer studies that may aid informatics approaches to prediction in the future; (3) position HydroShare as the “go-to” data repository for stream solute tracer experiments; and (4) implement open-access training via the HydroLearn platform.

Subject Keywords

Content

readme.md

Stream Tracer Tool README

Tyler Balson

email: tbalson@iu.edu

GitHub renders the images better than HydroShare, for inline images please see the GitHub repo.

Step 1: Create a Resource

Create a new resource on Hydorshare with your experimental data. Review the hydroshare documentation for an overview of resources and how to create one.

Resources on HydroShare

Once you have created the resource you will need the Resource ID from the link, here is an example link from a resource: https://www.hydroshare.org/resource/f44e8baf1682456e9605221deef3a65b/

The Resource ID is: f44e8baf1682456e9605221deef3a65b

There should be exactly three (3) files located within this resource two (2) downstream and one upstream data file (Fig. 1).

Figure 1: Contents of created resource with experimental data.

We strongly recommend using the naming convention DS_INJ1, DS_INJ2 and US_INJ2, and that these files are in .csv format. As shown in this example .xlsx files work, however we suggest .csv. You can also use your own naming strategy if you prefer not to rename your files. You will enter the three (3) file names in the notebook in a subsequent step. Once you have your resource created and files correctly stored within you can start the analysis.

Step 2: Open the tool

Go to the tracer tool resource page found here.

Use the ‘Open with’ button to open the notebook using CUASHI JupyterHub (Fig 2).

Figure 2: Open with

Select the Python3.8 environment (Fig. 3).

Figure 3: Python 3.8 environment.

Step 3: Populate the tool with user data and metadata

Once the tool is launched you will need to populate the notebook with your Resource ID so the notebook can read in your experimental data. First enter your Resource ID in the notebook box labeled Step 1: Enter Resource ID (see Fig. 4).

![Figure 4: Resource ID.](readmefigs/rm_fig4.png]

Once you have entered your Resource ID you need to sign into your Hydroshare account so the tool can access your experimental data located within your resource. This is done within the Step 2a: Sign in box (see Fig. 5).

Figure 5: Sign in.

You can confirm the notebook can access your files by executing the cell block labeled Step 2b, (see Fig. 6).

Figure 6: Files from user resource visible to the tool.

The user must fill out metadata associated with their experiment before proceeding. We require stream order, drainage area, date and the latitude and longitude of the geographic location. We have provided a cell for the user to include any additional metadata they have available, in addition we have provided an example .csv file if the user would prefer to include a .csv. **If the user provides a .csv file it must be located in the same resource as the three input files and not in a sub-directory. In this case the output of Step 2b (Figure 6) will include a file named meta.csv. If you use a file it MUST be named meta.csv, and it must show up in the output from Step 2b. If you add your own metadata please follow the syntax outline within the notebook (Fig. 7). If a user has substantial metadata you are encouraged to contact the author at tbalson@iu.edu (message TRACER TOOL) in order to facilitate the incorporation.

Figure 7: The metadata portion of the notebook that requires users to enter stream order, drainage area, date, and geographic location. There are options for the users to add more metadata variables within the notebook, or simply provide a .csv file labeled meta.csv.

The user is now ready to update the filename so that the names in (Fig. 6) are shown in (Fig. 8.). For example if your first filename is DS_INJ1.xlsx, on line 13 (Fig. 8) inside the single quotes should be: ds1file = path + ‘DS_INJ1.xlsx

If your downstream injection point 1 file is labeled something different (e.g., ds1.xlsx) then line 13 should read:

ds1file = path + ‘ds1.xlsx’

Figure 8: Defining file names.

Lastly the user will need to enter experiment specific data including stream geometries, mass of tracer for Slug 1 and 2, and the date and time of each injection converted to serial datetime (Fig. 9).

Figure 9: User input data. Stream Geometries. Slug masses. Serial date time.

A google sheet is available to convert a date time to a serial date time here.

Step 4: Execute each cell and get results

You are now ready to proceed cell by cell. The execution of the final cell block will populate your Resouce ID with the results of your analysis in addition to populating our database. The population of our database is what gives users the contextual output in order to see where your experiment fits in with all other solute-tracer experiments stored within our database. Once you execute this step your experiment will be queued for incorporation to our database to support continued contextual output for future users.

If you would like your results stored in a different location separate from the raw experimental data. For example a user may want a resource for experimental data and a resource for results. You will need to create two resources, and update the ‘storeit_USER’ variable with the Resource ID in the last cell block so it is not the same as the Resource ID with your experimental data (see, Fig. 9).

![Figure 10: The storeit_USER variable is shown to be the same as the resource ID the user supplied at the start of the analysis that includes their experimental files. In order to store the results in a different location a separate resource must be created and supplied to line 5.]((readmefigs/rm_fig10.png)

Assuming the same resource ID is used the results files will be stored alongside your three experimental files (see, Fig. 10).

Figure 11: The inclusion of the two results files to the users resource after the completion of the analysis.

How to Cite

Balson, T. (2023). SoluteTracerTool, HydroShare, http://www.hydroshare.org/resource/6f3eee8ca110402ca432ebee52ab286f

This resource is shared under the Creative Commons Attribution CC BY.

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

There are currently no comments

New Comment

required