Skip to content

Commit 618ed2e

Browse files
committed
add recognision of ECMWF_ERA to MDAL
1 parent 9acc5c1 commit 618ed2e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

external/mdal/frmts/mdal_gdal.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ void MDAL::LoaderGdal::parseBandIsVector( std::string &band_name, bool *is_vecto
545545
MDAL::startsWith( band_name, "x-", MDAL::CaseInsensitive ) ||
546546
MDAL::contains( band_name, "u-component", MDAL::CaseInsensitive ) ||
547547
MDAL::contains( band_name, "u component", MDAL::CaseInsensitive ) ||
548+
MDAL::contains( band_name, "U wind component", MDAL::CaseInsensitive ) ||
548549
MDAL::contains( band_name, "x-component", MDAL::CaseInsensitive ) ||
549550
MDAL::contains( band_name, "x component", MDAL::CaseInsensitive ) )
550551
{
@@ -555,6 +556,7 @@ void MDAL::LoaderGdal::parseBandIsVector( std::string &band_name, bool *is_vecto
555556
MDAL::startsWith( band_name, "y-", MDAL::CaseInsensitive ) ||
556557
MDAL::contains( band_name, "v-component", MDAL::CaseInsensitive ) ||
557558
MDAL::contains( band_name, "v component", MDAL::CaseInsensitive ) ||
559+
MDAL::contains( band_name, "V wind component", MDAL::CaseInsensitive ) ||
558560
MDAL::contains( band_name, "y-component", MDAL::CaseInsensitive ) ||
559561
MDAL::contains( band_name, "y component", MDAL::CaseInsensitive ) )
560562
{
@@ -571,6 +573,8 @@ void MDAL::LoaderGdal::parseBandIsVector( std::string &band_name, bool *is_vecto
571573
{
572574
band_name = MDAL::replace( band_name, "u-component of", "", MDAL::CaseInsensitive );
573575
band_name = MDAL::replace( band_name, "v-component of", "", MDAL::CaseInsensitive );
576+
band_name = MDAL::replace( band_name, "U wind component", "wind", MDAL::CaseInsensitive );
577+
band_name = MDAL::replace( band_name, "V wind component", "wind", MDAL::CaseInsensitive );
574578
band_name = MDAL::replace( band_name, "x-component of", "", MDAL::CaseInsensitive );
575579
band_name = MDAL::replace( band_name, "y-component of", "", MDAL::CaseInsensitive );
576580
band_name = MDAL::replace( band_name, "u-component", "", MDAL::CaseInsensitive );

external/mdal/mdal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static MDAL_Status sLastStatus;
1818

1919
const char *MDAL_Version()
2020
{
21-
return "0.0.8";
21+
return "0.0.10";
2222
}
2323

2424
MDAL_Status MDAL_LastStatus()

0 commit comments

Comments
 (0)