Skip to content

Commit

Permalink
Per #3006, define new GrdFileType::FileType_Pairs enumerated value to…
Browse files Browse the repository at this point in the history
… be used in the pair_stat tool.
  • Loading branch information
JohnHalleyGotway committed Dec 26, 2024
1 parent b271ed0 commit 4a9c387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/basic/vx_config/data_file_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

};

Expand Down
2 changes: 2 additions & 0 deletions src/basic/vx_config/grdfiletype_to_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -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
//
Expand Down

0 comments on commit 4a9c387

Please sign in to comment.