Skip to content

Commit 1f54b8f

Browse files
gshiromaGitHub Enterprise
authored andcommitted
Merge branch 'isce-3:develop' into static_layers_pt2
2 parents e677160 + 1ec237f commit 1f54b8f

File tree

290 files changed

+3891
-4969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+3891
-4969
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ configure_file(
138138
doc/doxygen/Doxyfile.in
139139
doc/doxygen/Doxyfile
140140
)
141-
configure_file(
142-
doc/sphinx/conf.py.in
143-
doc/sphinx/conf.py
144-
)
145141

146142
if(NOT DEFINED SKBUILD)
147143
# If we're using scikit-build, the exported _IMPORT_PREFIX will be wrong:

CONTRIBUTING.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ for contributing to the project.
2929
### Forking the isce3 repository
3030

3131
If you are a first-time contributor, the first thing you should do is fork the
32-
isce3 repository to create your own copy of the project.
32+
isce3 repository to create your own copy of the project. (External contributors
33+
cannot directly create or modify branches on the isce3 repository.)
3334

3435
1. Go to https://github.com/isce-framework/isce3 and click on the "Fork"
3536
button.
@@ -161,11 +162,22 @@ quality of the project.
161162

162163
- Review may be requested by a PR author and/or other team members. Reviewers
163164
can make comments, request changes, or approve the PR, indicating that it has
164-
been carefully examined and is ready for merging. Before a PR can be merged,
165-
it must be approved by at least two core team members.
165+
been carefully examined and is ready for merging.
166+
- Before a PR can be merged, it must be approved by at least two core team
167+
members.
168+
169+
### Testing and scanning
170+
166171
- CI jobs that build and test the code are automatically triggered upon each PR
167172
update. The CI tests must pass before your PR can be merged. To avoid overuse
168173
of these resources, it's helpful to test all changes locally before committing
169174
and push commits in batches rather than individually.
170-
- After all required checks have passed, the PR can be merged by pressing the
171-
"Squash and merge" button.
175+
- Each commit is scanned using
176+
[detect-secrets](https://github.com/Yelp/detect-secrets) and
177+
[CodeQL](https://codeql.github.com/) to identify possible security
178+
vulnerabilities and exposed credentials. Commits containing either may be
179+
blocked.
180+
- Linters may be run on the changes and may reject PRs that don't conform to the
181+
project's style conventions.
182+
183+
After all required checks have passed, the PR may be merged by a maintainer.

cxx/isce3/core/EulerAngles.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class EulerAngles {
6363
Quaternion toQuaternion() const;
6464

6565
/**
66-
* Check if *this is approximatly equals to other within
66+
* Check if *this is approximately equals to other within
6767
* a desired precision
6868
* @param[in] other : another EulerAngles object
6969
* @param[in] prec (optional) : double scalar precision

cxx/isce3/core/LUT2d.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class isce3::core::LUT2d {
5555
inline double xStart() const { return _xstart; }
5656
// Get starting Y-coordinate
5757
inline double yStart() const { return _ystart; }
58+
// Get end X-coordinate
59+
inline double xEnd() const { return xStart() + (width() - 1) * xSpacing(); }
60+
// Get end Y-coordinate
61+
inline double yEnd() const { return yStart() + (length() - 1) * ySpacing(); }
5862
// Get X-spacing
5963
inline double xSpacing() const { return _dx; }
6064
// Get Y-spacing
@@ -96,10 +100,8 @@ class isce3::core::LUT2d {
96100
return true;
97101
}
98102

99-
const auto i = (x - xStart()) / xSpacing();
100-
const auto j = (y - yStart()) / ySpacing();
101-
return (i >= 0.0 and i <= width() - 1.0) and
102-
(j >= 0.0 and j <= length() - 1.0);
103+
return (x >= xStart()) and (x <= xEnd()) and
104+
(y >= yStart()) and (y <= yEnd());
103105
}
104106

105107
private:

cxx/isce3/core/Projections.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class PolarStereo : public ProjectionBase {
214214
/** @copydoc ProjectionBase::print() */
215215
void print() const override;
216216

217-
/** Transfrom from llh(rad) to Polar Stereo (m) */
217+
/** Transform from llh(rad) to Polar Stereo (m) */
218218
int forward(const Vec3&, Vec3&) const override;
219219

220220
/** Transform from Polar Stereo (m) to llh (rad) */

cxx/isce3/core/Serialization.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,12 @@ inline void saveCalGrid(isce3::io::IGroup & group,
340340
{
341341
// Generate uniformly spaced X (slant range) coordinates
342342
const double x0 = lut.xStart();
343-
const double x1 = x0 + lut.xSpacing() * (lut.width() - 1.0);
343+
const double x1 = lut.xEnd();
344344
const std::vector<double> x = isce3::core::linspace(x0, x1, lut.width());
345345

346346
// Generate uniformly spaced Y (zero Doppler time) coordinates
347347
const double y0 = lut.yStart();
348-
const double y1 = y0 + lut.ySpacing() * (lut.length() - 1.0);
348+
const double y1 = lut.yEnd();
349349
const std::vector<double> y = isce3::core::linspace(y0, y1, lut.length());
350350

351351
// Save coordinates

cxx/isce3/core/Utilities.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ namespace isce3 { namespace core {
251251
}
252252

253253
/** making a boolean mask for an array based on noDataValue
254-
* @param[in] v inout array
254+
* @param[in] v input array
255255
* @param[in] noDataValue the value used to create the mask
256256
* @param[out] returns a boolean mask */
257257
template <typename T>
@@ -269,7 +269,7 @@ namespace isce3 { namespace core {
269269
}
270270

271271
/** making a boolean mask for an array based on noDataValue
272-
* @param[in] v inout array
272+
* @param[in] v input array
273273
* @param[in] noDataValue the value used to create the mask
274274
* @param[out] returns a boolean mask */
275275
template <typename T>

cxx/isce3/core/detail/Interp1d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace isce3::core::detail {
88

9-
/** Get interpolator coefficents for a given offset.
9+
/** Get interpolator coefficients for a given offset.
1010
*
1111
* @param[in] kernel Kernel function to use for interpolation.
1212
* @param[in] t Desired time sample (0 <= t < array_size).
@@ -46,7 +46,7 @@ void interp1d_coeffs(const Kernel<KernelType>& kernel, const double t,
4646
* @param[in] low Index to start of selection.
4747
* @param[in] data Buffer to take selection from.
4848
* @param[in] size Size of buffer (number of elements).
49-
* @param[in] stride Stride betwen elements in data buffer.
49+
* @param[in] stride Stride between elements in data buffer.
5050
* @param[in] periodic Whether to use periodic boundary condition.
5151
*
5252
* @returns Pointer to contiguous selection in `data` or to `block` if copied.

cxx/isce3/cuda/Headers.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ geometry/Topo.h
3939
geometry/utilities.h
4040
image/forward.h
4141
image/gpuResampSlc.h
42+
image/Resample.h
4243
image/ResampSlc.h
4344
math/complexOperations.h
4445
product/SubSwaths.h

cxx/isce3/cuda/Sources.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ geometry/gpuTopoLayers.cpp
2727
geometry/Topo.cpp
2828
geometry/utilities.cu
2929
image/gpuResampSlc.cu
30+
image/Resample.cu
3031
image/ResampSlc.cpp
3132
matchtemplate/pycuampcor/cuAmpcorChunk.cu
3233
matchtemplate/pycuampcor/cuAmpcorController.cu

0 commit comments

Comments
 (0)