Skip to content

Commit

Permalink
Per #1019, saving progress after handling monthly, daily, and hourly …
Browse files Browse the repository at this point in the history
…input files. Need to complete support for other format types and handle the unit strings
  • Loading branch information
JohnHalleyGotway committed Jan 7, 2025
1 parent 834b5d7 commit df6211a
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 195 deletions.
15 changes: 11 additions & 4 deletions src/tools/other/ascii2nc/file_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,25 @@ bool FileHandler::readAsciiFiles(const vector< ConcatString > &ascii_filename_li
}

// Read the observations

if (!_readObservations(ascii_file))
return false;

mlog << Debug(3)
<< "Reading File: " << *ascii_filename << "\n"
<< " Running total of observations kept "
<< num_observations_in_range << " and rejected (out of range) "
<< num_observations_out_of_range << ".\n";


// Close the file

ascii_file.close();
}

mlog << Debug(2) << " Kept " << num_observations_in_range
<< " observations, rejected (out of range) " << num_observations_out_of_range
<< " observations\n";
mlog << Debug(2) << "Total number of observations kept "
<< num_observations_in_range << " and rejected (out of range) "
<< num_observations_out_of_range << ".\n";

return true;
}

Expand Down
Loading

0 comments on commit df6211a

Please sign in to comment.