Skip to content

Commit

Permalink
Fix code review issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
priit111 committed Mar 18, 2024
1 parent fc80a00 commit 8deaec1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ int main(int argc, char* argv[]) {
lvl1_file_handle.WriteSync(mds.buf, mds.n_records * mds.record_size);
LOGI << "IMP done @ " << lvl1_out_full_path;
}
if (alus::asar::specification::IsSLCProduct(asar_meta.target_product_type)) {
else if (alus::asar::specification::IsSLCProduct(asar_meta.target_product_type)) {
// az_compressed_image is unused from now on.
constexpr size_t record_header_bytes = 12 + 1 + 4;
const auto mds_record_size = subsetted_raster.XSize() * sizeof(IQ16) + record_header_bytes;
Expand Down Expand Up @@ -415,6 +415,7 @@ int main(int argc, char* argv[]) {
lvl1_file_handle.WriteSync(mds.buf, mds.n_records * mds.record_size);
TimeStop(file_write, "LVL1 file write");
} else {
throw std::runtime_error("Unknown/unsupported output product type");
}
} catch (const boost::program_options::error& e) {
ExceptionMessagePrint(e);
Expand Down
4 changes: 3 additions & 1 deletion sar/az_multilook.cu
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#include "az_multilook.cuh"

#include "alus_log.h"
#include "checks.h"

// TODO implement frequency domain multilooking? Is is better

// Implements sliding window azimuth time domain multilooking and azimuth resampling in one step
__global__ void TimeDomainAzimuthLook(const cufftComplex* data_in, int x_size, int in_y_size, int out_y_size,
float resample_ratio, float* data_out) {
const int x = threadIdx.x + blockDim.x * blockIdx.x;
Expand Down

0 comments on commit 8deaec1

Please sign in to comment.