Skip to content

Commit

Permalink
address minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
apchoiCMD committed Dec 19, 2023
1 parent 162bd12 commit 3f7cbae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils/obsproc/IcecAmsr2Ioda.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ namespace gdasapp {
int second = static_cast<int>(oneTmpdateTimeVal[i+5]);

// Replace Fillvalue -9999 to 0 to avoid crash in dateToJulian
if (year == -9999 && month == -9999 && day == -9999 &&
hour == -9999 && minute == -9999 && second == -9999) {
year = 0, month = 0, day = 0;
hour = 0, minute = 0, second = 0;
if (year == -9999 || month == -9999 || day == -9999 ||
hour == -9999 || minute == -9999 || second == -9999) {
year = month = day = hour = minute = second = 0;
}

// Convert a date to Julian date
Expand Down

0 comments on commit 3f7cbae

Please sign in to comment.