Deltares / hydromt_wflow

Wflow plugin for HydroMT
https://deltares.github.io/hydromt_wflow/
GNU General Public License v3.0
18 stars 15 forks source link

Data source type requirement in setup_ methods is not clear #225

Closed hboisgon closed 8 months ago

hboisgon commented 11 months ago

HydroMT-Wflow version checks

Kind of issue

Docs are unclear

Location of the documentation

Each of the individual setup_ methods in the wflow.py script (API documentation)

Documentation problem

In the setup_ methods it is often unclear if the expected input data type is rasterdataset, geodataset, dataframe or geodataframe for example. I think this should be made clear in the documentation so that users know which type of data to prepare for model building.

Suggested fix for documentation

Example for setup_rivers:

From

        hydrography_fn : str, Path
            Name of data source for hydrography data.
            Must be same as setup_basemaps for consistent results.

            * Required variables: [flwdir, uparea, elevtn]
            * Optional variables: [rivwth, qbankfull]
        river_geom_fn : str, Path, optional
            Name of data source for river data.

            * Required variables: [rivwth, qbankfull]

To

        hydrography_fn : str, Path
            Name of RasterDataset source for hydrography data.
            Must be same as setup_basemaps for consistent results.

            * Required variables: [flwdir, uparea, elevtn]
            * Optional variables: [rivwth, qbankfull]
        river_geom_fn : str, Path, optional
            Name of GeoDataFrame source for river data.

            * Required variables: [rivwth, qbankfull]

Note: maybe a good moment to also update the docs that hydrography_fn can be data source in data catalog, xarray.Dataset or direct path to data?

hboisgon commented 11 months ago

Kind of related: some variables or dimensions names are missing from the docs. Known ones:

hboisgon commented 11 months ago

This issue is partly related to #157