CADWRDeltaModeling / dms_datastore

Data download and management tools for continuous data for Pandas. See documentation https://cadwrdeltamodeling.github.io/dms_datastore/
https://cadwrdeltamodeling.github.io/dms_datastore/
MIT License
1 stars 0 forks source link

usgs format for invalid data not parsed correctly #8

Closed dwr-psandhu closed 11 months ago

dwr-psandhu commented 11 months ago

Description

running reformat on raw data resulted in error below. According to that file's meta data *** is for unavailable data

#     ***  Value unavailable.

Exception trace snippet

Could not read file: raw/usgs_lib_11455315_temp_2020_9999.rdb
usgs generated an exception: could not convert string to float: '***' with traceback:
Traceback (most recent call last):
  File "pandas/_libs/parsers.pyx", line 1131, in pandas._libs.parsers.TextReader._convert_tokens
TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe'

During handling of the above exception, another exception occurred:
dwr-psandhu commented 11 months ago

Done.