HydroSensorReader
This project aims to provide a simple way to read scientific files produced by any kind of probe, sensor, or anything used in hydrogeology.
Installation
You can directly install this package with the command:
pip install HydroSensorReader.
After the installation, you can use the package by using
import hydsensread as hsr
# File based reader
file_path = 'my_file_path'
# Files Generating Timeseries results
# =====================================
# read CR1000 files
r = hsr.DATCampbellCRFileReader(file_path)
# read Hanna multiparameter probes
# - (model HI-9828 and HI-9829 tested)
# - Supported extension : '.xls', '.xlsx'
r = hsr.XLSHannaFileReader(file_path)
# Read Solinst Levelogger and Barologger files
# - Supported extension : '.lev', '.xle', '.csv'
r = hsr.SolinstFileReader(file_path)
# Plot the results with
r.plot()
# Files Generating Generic results
# =====================================
# read Maxxam laboratory analysis files.
# - Supported extension : '.xls', '.xlsx'
r = hsr.XSLMaxxamFileReader(file_path)
# Web data scrappers
# These data scrappers use the station name.
station = 'StationName'
r = hsr.GNBWaterQualityStation(station)
Dependencies
Main package definition
file_reader
Implementation of different file readers. Each python file contains a main launcher to the class.
- compagny_file_reader - Reader of generated files comming from different probes or labs.
- web_page_reader - Web crawlers in charge of extracting data from web sites
file_parser
This package contains the classes in charge of reading the different files. More information about these packages is available in the code.
- abstract_file_parser.py
- AbstractFileParser - Abstract class used as an interface to implement the others
- concrete_file_parser.py
- CSVFileParser
- TXTFileParser
- EXCELFileParser
- WEB_XMLFileParser
site_and_records
This package contains classes defining the domain elements and the data describing them
- site.py
- Site - A basic site class with the site name a the visited date
- SensorPlateform - A Plateform is an object that can take measurements as a standalone object
- Sample - Sample as an object manipulated by a laboratory
- StationSite - Modelisation of a station object
- StreamFlowStation - This specialized class was created to store the information of the ECCC website
- records.py
- Parameter - Class acting as a structure to store a parameter value (what is observed) and its associated unit
- Record - A record must have a date, a parameter, a unit, and a value.
- TimeSeriesRecords
- The record_date corresponds to the first date of the list of values. Values are stored as a Dict as follows :
- { date1: value1, date2: value2,...}
- ChemistryRecord -A chemistry record has a detection limit, a report date, an analysis type and all the attributes of a Record
file_example
This folder contains several examples of files for testing.
Work To Do
- Add a
.LASreader to take care of borehole geophysics files - Add a
.LASreader to take care of LiDar data - Create a Strategy class so you can input a file and the strategy class select the correct
file_readerclass - Continue documentation... always...
Metadata
Release files for HydroSensorReader 1.7.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| HydroSensorReader-1.7.6.tar.gz | 1.4 MB | Without provenance | Details for HydroSensorReader-1.7.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| HydroSensorReader-1.7.6-py3-none-any.whl | Python 3 | none | any | Details for HydroSensorReader-1.7.6-py3-none-any.whl |
Total release size: 2.9 MB
Release files / HydroSensorReader-1.7.6.tar.gz
| Download URL | HydroSensorReader-1.7.6.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a35b749a233cdcce2a80f750062b02e88210240de381411972040431cf8cfb2
|
|
BLAKE2b-256 checksum How to use checksums |
2974ee76e51b7997afeb339fc901707d2fcaae4aca7f12a504451fb712f0188a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Release files / HydroSensorReader-1.7.6-py3-none-any.whl
| Download URL | HydroSensorReader-1.7.6-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1594524862fc3851c69987a2b0682941bb40adf1fd0b412d87656441d051c10b
|
|
BLAKE2b-256 checksum How to use checksums |
d41563d4605e74ab39cece8e027081b02835d2b82642a36d2d708ba16052b48f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Security for HydroSensorReader 1.7.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.