Skip to content

Dealing with station ID as string #291

@belasi01

Description

@belasi01

This is not a critical issue, but often station names are in alphanumeric or string format, not always numeric. The current version only deals with station as numeric values, yielding the following error:

File "/Users/simonbelanger/PycharmProjects/HyperCP/Source/ProcessL1aqc.py", line 799, in processL1aqc
ancGroup.datasets["STATION"].data = np.array(station, dtype=[('NONE', '<f8')])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'BedfordBassin'

It would be nice if HyperCP can deal with that.

Or is there another way to avoid this error?

Simon

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