Skip to content

points_set_values does not work for a datetime coordinate #136

Open
@Manangka

Description

@Manangka

In GitLab by @jdelsman on Aug 31, 2020, 17:03

Trying to set point_values in a (time,layer,y,x) dataarray, I get the following error:

Traceback (most recent call last):
File "", line 7, in
File "c:\Users\delsman\Documents\imod-python\imod\select\points.py", line 241, in points_set_values
inside = points_in_bounds(da, **points)
File "c:\Users\delsman\Documents\imod-python\imod\select\points.py", line 62, in points_in_bounds
_, xmin, xmax = imod.util.coord_reference(da_x)
File "c:\Users\delsman\Documents\imod-python\imod\util.py", line 341, in coord_reference
dxs = np.diff(x.astype(np.float64))
ValueError: could not convert string to float: '2051-10-01 00:00:00'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions