From 4a9c387845ebf5c19712d24df5064091c0121edf Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Thu, 26 Dec 2024 16:52:04 +0000 Subject: [PATCH] Per #3006, define new GrdFileType::FileType_Pairs enumerated value to be used in the pair_stat tool. --- src/basic/vx_config/data_file_type.h | 1 + src/basic/vx_config/grdfiletype_to_string.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/basic/vx_config/data_file_type.h b/src/basic/vx_config/data_file_type.h index 9fbefee775..e40a9bcdb7 100644 --- a/src/basic/vx_config/data_file_type.h +++ b/src/basic/vx_config/data_file_type.h @@ -33,6 +33,7 @@ enum GrdFileType { FileType_Python_Numpy, // Python script using numpy array and attributes dictionary FileType_Python_Xarray, // Python script using xarray dataplane FileType_UGrid, // Unstructured grid + FileType_Pairs, // Paired data }; diff --git a/src/basic/vx_config/grdfiletype_to_string.cc b/src/basic/vx_config/grdfiletype_to_string.cc index c9e89451c3..39ac64b246 100644 --- a/src/basic/vx_config/grdfiletype_to_string.cc +++ b/src/basic/vx_config/grdfiletype_to_string.cc @@ -57,6 +57,7 @@ switch ( t ) { case FileType_Python_Numpy: s = "FileType_Python_Numpy"; break; case FileType_Python_Xarray: s = "FileType_Python_Xarray"; break; case FileType_UGrid: s = "FileType_UGrid"; break; + case FileType_Pairs: s = "FileType_Pairs"; break; default: s = "(bad value)"; @@ -92,6 +93,7 @@ else if ( strcmp(text, "FileType_Bufr" ) == 0 ) { t = FileType_Bufr; else if ( strcmp(text, "FileType_Python_Numpy" ) == 0 ) { t = FileType_Python_Numpy; return true; } else if ( strcmp(text, "FileType_Python_Xarray" ) == 0 ) { t = FileType_Python_Xarray; return true; } else if ( strcmp(text, "FileType_UGrid" ) == 0 ) { t = FileType_UGrid; return true; } +else if ( strcmp(text, "FileType_Pairs" ) == 0 ) { t = FileType_Pairs; return true; } // // nope //