Skip to content

Commit d618752

Browse files
authored
Add support for elevation in WIND Toolkit CSV files (#995)
1 parent 1cb1715 commit d618752

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

shared/lib_windfile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ bool windfile::open( const std::string &file )
499499
{
500500
lon = col_or_nan(hdr[i + 1]);
501501
}
502+
else if (hdr_item == "elevation" || hdr_item == "el" || hdr_item == "elev" || hdr_item == "site elevation")
503+
{
504+
elev = col_or_nan(hdr[i + 1]);
505+
}
502506
else if (hdr_item == "siteid" || hdr_item == "id" || hdr_item == "location" || hdr_item == "location id" || hdr_item == "station" || hdr_item == "station id" || hdr_item == "wban" || hdr_item == "wban#" || hdr_item == "site")
503507
{
504508
locid = hdr[i + 1];

0 commit comments

Comments
 (0)