Skip to content

Commit 34a1851

Browse files
Liang YuGitHub Enterprise
authored andcommitted
make chip phase unique by renaming to chipPhase (#793)
1 parent 18f251e commit 34a1851

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cxx/isce3/image/ResampSlc.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ void ResampSlc::_transformTile(Tile_t& tile, Raster& outputSlc,
285285
if ((intRg < chipHalf) || (intRg >= (inWidth - chipHalf)))
286286
continue;
287287

288-
// Slant range at j index
288+
// Slant range at j index
289289
const double rng = R0 + j * dR;
290-
290+
291291
// Check if the Doppler LUT covers the current position
292292
if (not _dopplerLUT.contains(az, rng))
293293
continue;
@@ -322,9 +322,9 @@ void ResampSlc::_transformTile(Tile_t& tile, Raster& outputSlc,
322322
const int chipRow =
323323
intAz - tile.firstImageRow() + ii - chipHalf;
324324
// Carrier phase
325-
const double phase = dop * (ii - 4.0);
326-
const std::complex<float> cval(std::cos(phase),
327-
-std::sin(phase));
325+
const double chipPhase = dop * (ii - 4.0);
326+
const std::complex<float> cval(std::cos(chipPhase),
327+
-std::sin(chipPhase));
328328
// Set the data values after removing doppler in azimuth
329329
for (int jj = 0; jj < chipSize; ++jj) {
330330
// Column to read from

0 commit comments

Comments
 (0)