Skip to main content

Validation module for HyDAMO data

Project description

The HyDAMO Validation Module: hydamo_validation

Validation Module for HyDAMO data.

Installation

Python installation

Make sure you have an Miniconda or Anaconda installation. You can download these here:

During installation, tick the box "Add Anaconda to PATH", ignore the red remarks

Create the validatietool environment

Use the env/environment.yml in the repository to create the conda environment: validatietool

conda env create -f environment.yml

After installation you can activate your environment in command prompt

conda activate validatietool

Install hydamo_validation

Simply install the module in the activated environment:

pip install hydamo_validation

Develop-install hydamo_validation

Download or clone the repository. Now simply install the module in the activated environment:

pip install .

Run in Python

Specify a coverage directory

To get the validator running you need some AHN data. You can find these in the data directory of this directory. We assume you copy this to your/local/ahn/dir. Now specify your coverage and init the validator in a python-script:

from hydamo_validation import validator
from pathlib import Path

coverage = {"AHN": Path("your/local/ahn/dir")}

hydamo_validator = validator(
    output_types=["geopackage", "csv", "geojson"], coverages=coverage, log_level="INFO"
)

With this validator you can validate a directory that directory should have the following structure. The name of datasets directory and ValidatorRules.json are mandatory. Within datasets you can put one or more geopackages with HyDAMO layers.

your/directory/
├─ datasets/
│  ├─ hydamo.gpkg
├─ ValidationRules.json

Now you can validate the HyDAMO layers inside your/ directory by:


directory = Path("your/directory")

datamodel, layer_summary, result_summary = hydamo_validator(
    directory=directory, raise_error=False
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydamo_validation-1.4.0.tar.gz (75.4 kB view details)

Uploaded Source

File details

Details for the file hydamo_validation-1.4.0.tar.gz.

File metadata

  • Download URL: hydamo_validation-1.4.0.tar.gz
  • Upload date:
  • Size: 75.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hydamo_validation-1.4.0.tar.gz
Algorithm Hash digest
SHA256 4001ae2d7430ad03774f4bc53d4337bde31a3e4820cf7f0a705f1f12de50ce56
MD5 fcdacdffc0fa95c015d7ba60e5168c85
BLAKE2b-256 aa910bfeb069147b6f534efdab57a57e8810067cb027907801d57ab5345283f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page