Skip to content

Commit

Permalink
Per #2701, set use_var_id to true for ISMN inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Dec 6, 2023
1 parent 9aa7723 commit d4c5690
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/other/ascii2nc/ismn_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ map<string,obsVarInfo> IsmnObsVarMap = {
////////////////////////////////////////////////////////////////////////

IsmnHandler::IsmnHandler(const string &program_name) :
FileHandler(program_name) { }
FileHandler(program_name) {
use_var_id = true;
}

////////////////////////////////////////////////////////////////////////

Expand All @@ -68,7 +70,7 @@ bool IsmnHandler::isFileType(LineDataFile &ascii_file) const {

// Initialize using the filename suffix
bool is_file_type = check_prefix_suffix(ascii_file.short_filename(),
nullptr, ".stm");
nullptr, ".stm");

// Read the header line
DataLine dl;
Expand Down

0 comments on commit d4c5690

Please sign in to comment.