You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Location ID in the weather file is not a number, the std::stod() function used to read the value returns an error and stops the file reading process.
On the Wave Resource page click Add/remove weather file folders and add the folder containing the weather file from Step 1.
Note that weather file does not get added to the library.
Open the weather file with a text editor, and edit the Location ID value in Row to a numeric value.
Repeat Step 3 above.
Note weather file is added to library.
In general, I think anytime std::stod() or std::stof() is used, the value returned should be checked and if it is invalid (not a number), a useful error message should be generated. (This is also an issue with the wind file reader.)
Operating System and Version
SAM 2024.12.12
Windows 11
The text was updated successfully, but these errors were encountered:
Describe the bug
When the Location ID in the weather file is not a number, the std::stod() function used to read the value returns an error and stops the file reading process.
See https://sam.nrel.gov/forum/forum-general/4905-wave-resource-simulation.
To Reproduce
Steps to reproduce the behavior:
In general, I think anytime std::stod() or std::stof() is used, the value returned should be checked and if it is invalid (not a number), a useful error message should be generated. (This is also an issue with the wind file reader.)
Operating System and Version
The text was updated successfully, but these errors were encountered: