Skip to content

set_stadata_coords种sta["time"] = sta["time"].astype(np.datetime64)的作用? #155

@xiangyang1989

Description

@xiangyang1989

set_stadata_coords种当len==1时的作用?为1为什么要再次做转换?运行astype(np.datetime64)总是报错Casting to unit-less dtype 'datetime64' is not supported. Pass e.g. 'datetime64[ns]' instead.
if len(sta.index) ==1:
sta["time"] = sta["time"].astype(np.datetime64)

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