-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix scanline calculation for FFT used by ATMS remapping #24
base: develop
Are you sure you want to change the base?
Conversation
(seconds is the default)
core/src/bufr/BufrReader/Exports/Variables/DatetimeVariable.cpp
Outdated
Show resolved
Hide resolved
core/src/bufr/BufrReader/Exports/Variables/DatetimeVariable.cpp
Outdated
Show resolved
Hide resolved
core/src/bufr/BufrReader/Exports/Variables/DatetimeVariable.cpp
Outdated
Show resolved
Hide resolved
core/src/bufr/BufrReader/Exports/Variables/DatetimeVariable.cpp
Outdated
Show resolved
Hide resolved
core/src/bufr/BufrReader/Exports/Variables/DatetimeVariable.cpp
Outdated
Show resolved
Hide resolved
core/src/bufr/BufrReader/Exports/Variables/RemappedBrightnessTemperatureVariable.cpp
Show resolved
Hide resolved
size_t time_index = 0; | ||
// Check each set for missing numbers and modify times accordingly | ||
std::vector<std::tuple<int, int, std::vector<int>, std::vector<int>, int64_t, int64_t>> results; | ||
std::vector<std::tuple<int, int, std::vector<int>, std::vector<int>, int64_t, int64_t>> results_missing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General: stick to C++ style (camel case).. missingResults
instead of results_missing
} | ||
|
||
if (missing.empty()) { | ||
results.emplace_back(i + 1, slnm_val, fovn_set, missing, first_time, adjusted_first_time); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
if (missing.empty()) { | ||
results.emplace_back(i + 1, slnm_val, fovn_set, missing, first_time, adjusted_first_time); | ||
} else { | ||
results_missing.emplace_back(i + 1, slnm_val, fovn_set, missing, first_time, adjusted_first_time); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
std::vector<int64_t> obstime; | ||
std::vector<int64_t> obstime2; | ||
obstime = std::dynamic_pointer_cast<DataObject<int64_t>>(datetimeObj)->getRawData(); | ||
obstime2 = std::dynamic_pointer_cast<DataObject<int64_t>>(datetimeObj)->getRawData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need 2 copies of this?
@rmclaren Thanks for reviewing the code. |
@emilyhcliu Thanks for the changes to the DatetimeVariable :) Looks good. |
ATMS remapping code does not work correctly for data from DB (ATMSDB) and RARS (ESATMS) - data becomes missing (grey).
Examples: ESATMS and ATMSDB from N20 Channel 2
Sources of issues identified:
This PR provides the code modifications to resolve the issues listed above.
Here are the results from the corrected code: