swb2 icon indicating copy to clipboard operation
swb2 copied to clipboard

Program must fail hard when encountering error in single-point weather data file

Open smwesten-usgs opened this issue 1 year ago • 0 comments

The program will continue to process a single-point weather data file even if the required header labels are not found. This results in phantom data values being fed into SWB, essentially whatever nonsense values happen to be in the memory space that was allocated for the precip or temperature data.

Failure example: A file with date precip tmin tmax for the header was fed into the program. The run continued, although no precipitation data were read in (it was looking for a column of data labeled 'prcp').

smwesten-usgs avatar Nov 09 '23 18:11 smwesten-usgs