Skip to content

Ouranosinc/raven-testdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raven-testdata

Testing data to support RAVEN WPS services

Contributing

In order to add a new dataset to the Raven testing data, please ensure you perform the following:

  1. Create a new branch: git checkout -b my_new_testdata_branch
  2. Place your dataset within an appropriate subdirectory (or create a new one: mkdir testdata_contribution).
  3. Run the md5 checksum generation script: python make_check_sums.py
  4. Commit your changes: git add testdata_contribution && git commit -m "added my_new_testdata"
  5. Open a Pull Request.

To modify an existing dataset, be sure to remove the existing checksum file before running the make_check_sums.py script.

If you wish to perform preliminary tests against the dataset using RavenWPS or RavenPy, this can be done with the following procedure:

  • If your testing data is xarray-readable:
from ravenpy.utilities.testdata import open_dataset


ds = open_dataset(
    "testdata_contribution/my_netcdf.nc",
    github_url="https://github.com/my_username/raven-testdata",
    branch="my_new_testdata_branch"
)
  • Otherwise:
import os

from ravenpy.utilities.testdata import get_file


test_data: os.PathLike = get_file(
    "testdata_contribution/my_shape_definition.geojson",
    github_url="https://github.com/my_username/raven-testdata",
    branch="my_new_testdata_branch"
)

About

Testing data to support RAVEN WPS services

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published