Skip to content

Support WIND Toolkit CSV format#985

Merged
cpaulgilman merged 2 commits into
patchfrom
wind-csv-file-format
Jan 31, 2023
Merged

Support WIND Toolkit CSV format#985
cpaulgilman merged 2 commits into
patchfrom
wind-csv-file-format

Conversation

@cpaulgilman

Copy link
Copy Markdown
Collaborator

Replace #984 due to CI errors.

  • New CSV file format for wind.
  • Improve wind resource error reporting.
  • Remove extra commas in test SRW files.
  • Handle "N/A" in data columns from WIND Toolkit files.

Fixes NatLabRockies/SAM#962

Also partially addresses NatLabRockies/SAM#815 by adding support for CSV files downloaded from RE Explorer

Next step is to update wind data download widget in SAM UI to download from wtk-download instead of wtk-srw-download, and possibly other WIND Toolkit endpoints at https://developer.nrel.gov/docs/wind/wind-toolkit/ (note that not all endpoints use the same CSV file format).

For endpoints that use different file format, consider writing a macro to convert files. For example, compare files from offshore-mid-atlantic-download to wtk-download.

SAM should now work with any of the wind data files here:
wind-file-samples.zip

New CSV file format for wind.

Improve wind resource error reporting.

Remove extra commas in test SRW files.

Handle "N/A" in data columns from WIND Toolkit files.
@brtietz

brtietz commented Jan 30, 2023

Copy link
Copy Markdown
Collaborator

@sjanzou Could we get your eyes on this? I can't tell why patch would build, but this would get a linker error on TCS.

@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

When trying to build SAM on Linux, I see build errors in ptesdesignptdialog.cpp caused by functions like GetSelectedMaterial() in the PTESDesignPtDialog class returning string instead of wxString -- not sure if that is related to the build failure here.

@sjanzou

sjanzou commented Jan 30, 2023 via email

Copy link
Copy Markdown
Collaborator

@mjprilliman mjprilliman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test files worked in the UI and in included LK script

@cpaulgilman

Copy link
Copy Markdown
Collaborator Author

Thanks @sjanzou for the solution to the mac build issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add options for sub-hourly data in WIND Toolkit downloads

4 participants