This python package provides api and utilities for encoding hydrographic datasets in the International Hydrographic Organization (IHO) S-100 format
Project description
s100py
API and Utilities for Working with IHO S-100 HDF5 Data Formats
Overview
This python package includes an API and utilities for encoding hydrographic datasets in the International Hydrographic Organization (IHO) S-100 HDF5 format.
See s100py Read the Docs for more information.
Background
The IHO S-100 standard is a data framework for digital products and services for hydrographic, maritime, and GIS communities, comprised of multiple data encoding formats designed for interoperability with Electronic Navigational Charts (ENCs).
This package includes the following S-100 encoding formats:
- S-102 Bathymetric Surface
- S-104 Water Level Information for Surface Navigation
- S-111 Water Currents for Surface Navigation
However, support for additional formats as they become available will be added in the future. For further information about S-100 formats, see the IHO website.
Create S100 Products
- Follow S-102 examples to create an S-102 File
- Follow S-104 examples to create an S-104 File
- Follow S-111 examples to create an S-111 File
For S100 API Developers
Requirements
This codebase is written for Python >=3.8 and relies on the following python packages:
- h5py
- numpy
- gdal
Installation
Conda
Installing s100py from the conda-forge channel can be achieved by adding conda-forge to your channels with:
conda config --add channels conda-forge
conda config --set channel_priority strict
Once the conda-forge channel has been enabled, s100py can be installed with conda:
conda install s100py
or with mamba:
mamba install s100py
It is possible to list all the versions of s100py available on your platform with conda:
conda search s100py --channel conda-forge
or with mamba:
mamba search s100py --channel conda-forge
Alternatively, mamba repoquery may provide more information:
Search all versions available on your platform:
mamba repoquery search s100py --channel conda-forge
List packages depending on s100py
:
mamba repoquery whoneeds s100py --channel conda-forge
List dependencies of s100py
:
mamba repoquery depends s100py --channel conda-forge
PIP
If installing with PIP, this package requires GDAL Python bindings be present,
so it usually can't be installed just using pip install gdal
, but for more information
visit https://pypi.org/project/GDAL/.
Once gdal
has been installed, s100py can be installed using pip
:
pip install s100py
Release Notes
Version 1.0.0 (2023-10-27)
- This is a major release, which includes several new APIs that encapsulate the latest S-100 standard (S-100 Edition 5.0.0) and S-100 Product Specifications (S-102 Edition 2.2.0, S-111 Edition 1.2.0, S-104 Edition 1.1.0) and adds support for multiple S-100 Editions and Product Specification versions
- Additional convenience utilities have been added to generate:
- S-102 Edition 2.1.0 & 2.2.0 datasets
- S-111 Edition 1.0.0 & 1.2.0 datasets
- S-104 Edition 1.0.0 & 1.1.0 datasets
- S-102 Data Coding Format 9 (Feature Oriented Regular Grid) datasets
- S-104 Data Coding Format 3 (Irregular Grid) datasets
- S-104 Data Coding Format 7 (TIN) datasets
- S-102 Edition 2.1.0 (S-100 Edition 4.0) significant changes include:
- The depth orientation has changed from positive up to positive down
- S-102 Edition 2.2.0 (S-100 Edition 5.0) significant changes include:
- General metadata horizontalDatumReference and horizontalDatumValue have been removed
- General metadata attributes horizontalCRS and typeOfHorizontalCRS were added
- Stricter datatypes have been set for all attributes
- Added the feature attribute table QualityOfSurvey which provides the following additional survey metadata:
- The categorization of the assessment level of bathymetric data for an area
- If the least depth of detected features in an area was measured
- If significant features have or have not been detected in the course of a survey
- The size of detected bathymetric features in an area
- Percentage of depth that a feature of such size could be detected
- If full seafloor coverage has been achieved in the area by hydrographic surveys
- Flag for bathy coverage nodes populated by interpolation
- The best estimate of the fixed horizontal or vertical accuracy component for positions, depths, heights, vertical distances, and vertical clearances
- The factor to be applied to the variable component of uncertainty equation to provide the best estimate of the variable horizontal or vertically accuracy component for positions, depths, heights, vertical distances, and vertical clearances
- The start date of the period of the hydrographic survey
- The end date of the period of the hydrographic survey
- The survey filename or ID
- The authority which as responsible for the hydrographic survey
- An estimate of the magnitude of the difference between true and estimated bathymetric depth, after all appropriate corrections are made
- S-111 Edition 1.2.0 (S-100 Edition 5.0.0) significant changes include:
- General metadata horizontalDatumReference and horizontalDatumValue have been removed
- General metadata attributes horizontalCRS and typeOfHorizontalCRS were added
- Stricter datatypes have been set for all attributes
- General metadata attribute depthTypeIndex has been modified to only allow heightOrDepth or layerAverage
- General metadata datasetDeliveryInterval was added, describing the expected time interval between availability of successive datasets for time-varying data, formatted as an ISO 8601 duration (e.g. 'PnYnMnDTnHnMnS')
- The enumeration attribute for the classification of data according the relationship between the time of its collection, generation or calculation of generation parameters, in relation the time of publication has been changed from typeOfCurrentData to dataDynamicity
- S-104 Edition 1.1.0 (S-100 Edition 5.0.0) significant changes include:
- General metadata horizontalDatumReference and horizontalDatumValue have been removed
- General metadata attributes horizontalCRS and typeOfHorizontalCRS were added
- Stricter datatypes have been set for all attributes
- General metadata datasetDeliveryInterval was added, describing the expected time interval between availability of successive datasets for time-varying data, formatted as an ISO 8601 duration (e.g. 'PnYnMnDTnHnMnS')
- The enumeration attribute for the classification of data according the relationship between the time of its collection, generation or calculation of generation parameters, in relation the time of publication has been changed from typeOfWaterLevelData to dataDynamicity
- General metadata trendInterval was added, describing the interval in minutes over which trend at a particular time is calculated
Version 1.0.0-rc.1 (2021-02-11)
- This is a major release, which includes a new API that encapsulates the data specifications to allow introspection with Python to determine what data is available or should be and what data types would be acceptable. Convenience utilities are available to convert data into S102/S104/S111 so detailed knowledge of the S100 specs and APIs is not required in most cases
- Support for s102 (bathymetry) and s104 (water levels) has been added
- A consistent API for S100 data structures was added and is used to encode S102, S104, and S111
- The previous S111 library has been migrated to this general S100 API and therefore any code written against the previous s100py library will no longer work
- Examples of using the new S111 API are available here
Authors
- Barry Gallagher (NOAA), barry.gallagher@noaa.gov
- Erin Nagel (UCAR), erin.nagel@noaa.gov
- Glen Rice (NOAA), glen.rice@noaa.gov
- Jason Greenlaw
License
This work, as a whole, falls under Creative Commons Zero (see LICENSE).
Disclaimer
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an 'as is' basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file s100py-1.0.2.tar.gz
.
File metadata
- Download URL: s100py-1.0.2.tar.gz
- Upload date:
- Size: 411.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677652e28401eae8ea567bdca8e45b52d87d5c5c96a6e682f69cd9f5b65188a3 |
|
MD5 | 87350574d3bbbf84e0904c6b693b5596 |
|
BLAKE2b-256 | d3b8e8999c9ddae7598668b45dc5b5aac0249f48722ba383195e5667e2982dde |
File details
Details for the file s100py-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: s100py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 185.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2abc7458ca7732c3c233ab34137357aadc0a391ef1bda40040cb7a7f344d30 |
|
MD5 | b8931974d1da16ecdf73a3ee0fd35765 |
|
BLAKE2b-256 | 227a32bb2635d40480a81d1b11c204df9b91787f0f07ccdd5c30f3c4cbc30f3b |