https://github.com/aquaveo/hydroserver_cli
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: Aquaveo
- Language: Python
- Default Branch: main
- Size: 10.7 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
HydroServer Data Uploader
This Python script provides a command-line interface for uploading stations, observations, and datastreams to a HydroServer. The script uses the httpx library for making HTTP requests and pandas for handling CSV data.
Prerequisites
- Python 3.x
- Required Python packages:
httpx,pandas
Installation
- Clone the repository:
github
git clone <repository_url>
cd Hydroserver_cli
- Create the following env:
github
conda env create -f environment.yaml
Usage
Upload Stations
To upload stations to a HydroServer, use the following command:
```github
python uploaddata.py upload-things
```
<username>: HydroServer username<password>: HydroServer password<hydroserver_url>: HydroServer URL, (Do not put a trailing slash)- *
<file_path>: *Path to the file containing station information (CSV format)
Upload Observations
To upload observations to a HydroServer, use the following command:
github
python upload_data.py upload-observations <username> <password> <hydroserver_url> <file_path> <date_column> <value_column> <datastream_id>
<username>: HydroServer username<password>: HydroServer password<hydroserver_url>: HydroServer URL (Do not put a trailing slash)<file_path>: Path to the file containing observation data (CSV format)<date_column>: Column name for date values<value_column>: Column name for observation values<datastream_id>: ID of the datastream to associate the observations with
Delete All Things
To delete all stations from a HydroServer, use the following command:
github
python upload_data.py delete-all-things <username> <password> <hydroserver_url>
<username>: HydroServer username<password>: HydroServer password<hydroserver_url>: HydroServer URL (Do not put a trailing slash)
Notes
- Ensure that the required Python packages are installed (
httpxandpandas) before running the script. - Make sure to replace
<repository_url>with the actual URL if you are cloning the repository.
Feel free to modify the script according to your specific needs and requirements.
Owner
- Name: Aquaveo
- Login: Aquaveo
- Kind: organization
- Email: it@aquaveo.com
- Location: Provo
- Website: aquaveo.com
- Repositories: 38
- Profile: https://github.com/Aquaveo