Skip to content

retreiving record using gwlevels fails with ValueError date in wrong format (using example provided online) #166

@Ben-Choat

Description

@Ben-Choat

Using the example linked below and provided in the official documentation fails with: ValueError: time data '1945-10-12 22:35 +0000' does not match format 'ISO8601' (match).

df = dataretrieval.nwis.get_record(
sites="434400121275801", service="gwlevels"
)

https://doi-usgs.github.io/dataretrieval-python/reference/nwis.html#dataretrieval.nwis.get_record:~:text=%23%20Get%20latest%20groundwater%20level%20for%20site%20434400121275801%0A%3E%3E%3E%20df%20%3D%20dataretrieval.nwis.get_record(%0A...%20%20%20%20%20sites%3D%22434400121275801%22%2C%20service%3D%22gwlevels%22%0A...%20)

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