Managing Datastream Metadata
Datastreams represent time series of observations measured at or created at a monitoring site. You must first create the metadata for a datastream before loading observation values into that datastream.
Creating a Datastream
Creating and managing datastreams is done on the landing page for a monitoring site. To create a new datastream, click on the 'Add datastream' button at the top right of the datastreams table. This will launch the 'Create datastream' window.
In this form, you can create the basic metadata for a datastream. The following are included:
- Method: The instrument, procedure, computation, or other method used to create the observations.
- Observed Property: The quantity or parameter that was observed.
- Unit: The unit of measure for the observed values.
- Processing Level: The degree of processing the observation values have undergone.
- Medium: The environmental medium in which the observations were made.
- Status: The current status of the datastream.
- Aggregation Statistic: The specific statistic recorded.
- Nodata value: The value used for missing data.
- Time aggregation interval: The temporal footprint over which each observation was made (observation support)
- Intended time spacing: The intended spacing of the observations.
- Datastream name: A brief text name for the datastream.
- Datastream Description: A longer text description for the datastream.
Some attributes of a datastream are simple selections on the form and others are linked metadata objects describing the method, observed property, unit, and processing level. Linked metadata can be selected from a drop down list if they exist already, or they can be created by clicking on the green '+' next to the metadata element.
Enter a Datastream name using the guidance below. For the Datastream description, you can enter your own text or use the 'Auto-Fill from Form' button after completing the other fields. You can edit the generated description to add details about the datastream.
Naming Datastreams
Choose a datastream name that is unique and unambiguous within its monitoring site. Keep the name focused on the data itself: do not include the monitoring site name in the datastream name.
We recommend this format:
<Observed Property> - <variant when needed>The observed property identifies what the datastream measures. The optional variant adds only the specific context needed to distinguish similar datastreams at the same site, such as units, processing level (raw or quality controlled), intended time spacing, or aggregation statistic. Each organization can define variants that fit its internal policies, while keeping names short and easy to scan.
For example:
Water Temp - 15 min, RAWDischarge - Daily MeanDischarge - Hourly RAWDischarge - Daily QCDischarge - Hourly Max (CFS)Discharge - Hourly Min (ac-ft)
Datastreams are usually shown in the context of their monitoring site, such as on a site details page or in an orchestration form. When an app presents datastreams from more than one site, the app should add the site context separately using this display format:
<datastream.name> @ <monitoringSite.name>For example, Discharge - Hourly RAW @ Kanarraville and Discharge - Hourly RAW @ USGS Coal Creek Near Cedar City distinguish datastreams from different sites without repeating site information in the stored datastream name.
With the minimum datastream metadata set, you can click the 'Create datastream' button to save the datastream.
NOTE: Some of the metadata elements on the 'Create datastream' form (e.g., Medium, Status, and Aggregation Statistic) are controlled vocabulary lists. These controlled vocabularies can be modified by a HydroServer Administrator if needed. See Controlled Vocabularies in the admin dashboard guide.

Once the datastream is created, it will be displayed in the list of datastreams on the site landing page. It is now ready for loading data.
Creating Linked Metadata for a Datastream
When an item does not exist in the dropdown list for method, observed property, unit, or processing level, it must be created before it can be used. This can be done by clicking on the green '+' next to those attributes. Each one has a metadata entry form that will pop up.
Every linked metadata item has a required name (up to 255 characters), which is the label shown in the frontend. Methods, observed properties, processing levels, and result qualifiers also require a free-text description and allow an optional code (up to 255 characters) for an external or organizational identifier. Units have neither description nor code. Methods, observed properties, processing levels, and units allow an optional definition URL (up to 2,000 characters) pointing to a vocabulary term, standard, or manual. Result qualifiers have no definition field. See the data dictionary for these conventions and the distinction between definition, link, and linked resource URL.
NOTE: Linked metadata can also be created on the Metadata tab of the Manage workspaces page. Select a workspace, open the Metadata tab, and you can set up all of your methods, observed properties, processing levels, and units before creating datastreams to make it easier and to enable choosing existing linked metadata from the drop down lists.
NOTE: All metadata in a HydroServer instance is created within a workspace. If you have multiple workspaces and you want to be able to use the same list of methods, observed properties, processing levels, and units across multiple workspaces, a HydroServer administrator can set these up as 'System metadata' for use across workspaces.
Creating a Datastream from a Template
Because creating the metadata for a datastream can be a little tedious, we created a button to load a template for a datastream. If you have multiple monitoring sites with similar datastreams (e.g., multiple sites with the same installed instruments), you can choose a datastream from another site to serve as a template.
To use this functionality, click the 'Add datastream' button on the site landing page, then select the 'Load template' button at the top right of the 'Create datastream' form. You will select a site and then you will see a list of existing datastreams you can choose from.

Choosing a template will copy all of the metadata elements for that datastream into the new datastream and then you can make any necessary edits like changing the name or the description.
Editing Datastream Metadata
Once a datastream is created, it can be edited by finding it in the list of datastreams on the site landing page, clicking on the Actions button (the three vertical dots) and selecting 'Edit datastream metadata'. This will launch the datastream's metadata into the same form you used to create the datastream and you can edit it there.
Datastream Tags and Linked Resources
Like monitoring sites, datastreams can have tags (custom key-value metadata) and linked resources (uploaded files or links to external URLs, such as a calibration report). The Data Management App does not edit these for datastreams yet. Use the Data Management API or a client package instead, for example hs_api.datastreams.set_tag(...) and hs_api.datastreams.add_linked_resource(...) in hydroserverpy. See Photos and Linked Resources for more about linked resources.
Deleting a Datastream
You can delete the observation values from a datastream by locating the datastream in the list at the bottom of the site landing page, clicking on the Action button (the three vertical dots) and selecting 'Delete data from datastream'. This is useful if you want to clear any data you have loaded into a datastream and start over with loading data.
You can delete an entire datastream by clicking on the Action button (the three vertical dots) and selecting 'Delete datastream'. This will open a dialog warning you that this action will delete the datastream and all associated observations for all users of HydroServer.
WARNING: Deleting the observation values from a datastream and deleting an entire datastream are permanent. If you delete a datastream, all of the data associated with that datastream will also be deleted.
