Deltares / hydromt

HydroMT: Automated and reproducible model building and analysis
https://deltares.github.io/hydromt/
MIT License
68 stars 28 forks source link

Create data extract with HydroMT command line #528

Closed alimeshgi closed 10 months ago

alimeshgi commented 11 months ago

Kind of request

Adding new functionality

Enhancement Description

To create data extract with HydroMT command line. More description will be added during the refinement procedure.

Use case

No response

Additional Context

No response

savente93 commented 11 months ago

To yet be defined: what data to extract, and how to specify this?

savente93 commented 11 months ago
hydromt extract <out_folder> -r <region>  [--compression=zip]? [source|file] [catalog]

input is EITHER source string, with optional provider and version, XOR a yaml file. Nice to have is the padas error pattern of "raise", "coerce", "ignore". Also add verbose option. also see https://deltares.github.io/hydromt/stable/_examples/export_data.html#Export-an-extract-of-the-data use sourcedict in code CLI should override

meta:
   version: <hmt_version>

args:
   catalog: [<path>] 
   region: asdf

sources:
  - source: era5
     variables: [precip]
     provider: asdf
     version: asdf