Skip to content

Reporting a few CLI glitches #850

@amotl

Description

@amotl

Dear Benjamin,

thanks for your ongoing efforts to improve the parameter flux compensator. Sometimes, there is a little fallout on the command-line interface, so I wanted to take the chance to report about some issues I have been able to discover while working on the CLI help text.

For now, all items are about data from DWD » OBSERVATION.

With kind regards,
Andreas.

1. No data when filtering by --station=1048,4411

wetterdienst values --provider=dwd --network=observation --parameter=kl --resolution=daily --period=recent --station=1048,4411
2023-01-21 15:54:42,110 [wetterdienst.core.scalar.request] INFO   : Processing request DwdObservationRequest(parameter=[(kl/kl)], resolution=daily, period=[recent], start_date=None, end_date=None, humanize=True, tidy=False, si_units=True)
2023-01-21 15:54:42,359 [wetterdienst.core.scalar.request] INFO   : Filtering for station_id=['1048,4411']
2023-01-21 15:54:42,367 [wetterdienst.core.scalar.values ] ERROR  : No data available for given constraints
2023-01-21 15:54:42,367 [wetterdienst.ui.core            ] ERROR  : No data available for given constraints

Remark: @gutzbenj already confirmed that CommaSeparator = StringListParamType(",") is apparently broken with Cloup, so Wetterdienst is unable to parse multiple items from a comma-separated list. Currently, it only works with single items.

2. Croaks on monthly and annual, when filtering by --station

When acquiring monthly or annual data, and filtering by --station, the program croaks. Example:

wetterdienst values --provider=dwd --network=observation --parameter=kl --resolution=monthly --station=1048
ValueError: DataFrame columns must be unique for orient='records'.

Opposed to that, using --resolution=daily works. When not filtering by station, and using --all instead, it also works.

3. Data for requested parameter missing

The response does not include any data from temperature_air_200/kl. Only data for precipitation_height is returned.

# Acquire data for specific parameter and dataset
wetterdienst values --provider=dwd --network=observation \
    --parameter=precipitation_height/precipitation_more,temperature_air_200/kl \
    --resolution=hourly --date=2020-06-15T12/2020-06-16T12 --station=1048

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions