Skip to content

Commit a56e76f

Browse files
authored
tools: Fix typos in imagery tools (#5345)
imagery: fix typos Found via codespell
1 parent 0794a23 commit a56e76f

File tree

24 files changed

+41
-41
lines changed

24 files changed

+41
-41
lines changed

imagery/i.atcorr/6s.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void printOutput()
251251
TransformInput compute()
252252
{
253253
const double accu3 = 1e-07;
254-
/* ---- initilialization very liberal :) */
254+
/* ---- initialization very liberal :) */
255255
int i, j;
256256

257257
double fr = 0;

imagery/i.atcorr/aerosolmodel.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void AerosolModel::mie(double (&ex)[4][10], double (&sc)[4][10],
190190
sc[0][j] += (double)(mie_in.cij[i] * sca2[j][i]);
191191
}
192192

193-
/* computation of the phase function and the asymetry coefficient
193+
/* computation of the phase function and the asymmetry coefficient
194194
of the mixture of particles */
195195

196196
for (j = 0; j < 10; j++) {
@@ -492,7 +492,7 @@ void AerosolModel::save()
492492
oceanic component (O.C., SUBROUTINE OCEA)
493493
water-soluble component (W.S., SUBROUTINE WATE)
494494
soot component (S.O., SUBROUTINE SOOT)
495-
(2) pre-computed caracteristics, now available are the desertic aerosol model
495+
(2) pre-computed characteristics, now available are the desertic aerosol model
496496
corresponding to background conditions, as described in Shettle(1984), a
497497
stratospheric aerosol model as measured Mona Loa (Hawaii) during El Chichon
498498
eruption and as described by King et al. (1984), and a biomass burning aerosol

imagery/i.atcorr/interp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct InterpStruct {
2525

2626
/*
2727
To estimate the different atmospheric functions r(mS,mv,fS,fv), T(q) and S at
28-
any wavelength from the 10 discret computations (subroutine DISCOM).
28+
any wavelength from the 10 discrete computations (subroutine DISCOM).
2929
*/
3030
void interp(const int iaer, const int idatmp, const double wl,
3131
const double taer55, const double taer55p, const double xmud,

imagery/i.gensig/i.gensig.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h3>Parameters</h3>
7878
This is the resultant signature file (containing the means
7979
and covariance matrices) for each class in the training map
8080
that is associated with the band files in the subgroup
81-
select (see <a href="#subgroup">above</a>). Resultant singature file
81+
select (see <a href="#subgroup">above</a>). Resultant signature file
8282
can be used with any other imagery group as long as semantic labels
8383
match.
8484
</dl>

imagery/i.gensig/i.gensig.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ select a subset of all the band files that form an image.
4343
Input **signaturefile** is the resultant signature file (containing the means and
4444
covariance matrices) for each class in the training map that is
4545
associated with the band files in the subgroup select.
46-
Resultant singature file can be used with any other
46+
Resultant signature file can be used with any other
4747
imagery group as long as semantic labels match.
4848

4949
## NOTES

imagery/i.gensigset/i.gensigset.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h3>Parameters</h3>
121121
The spectral signatures which are produced by this program
122122
are "mixed" signatures (see <a href="#notes">NOTES</a>).
123123
Each signature contains one or more subsignatures
124-
(represeting subclasses). The algorithm in this program
124+
(representing subclasses). The algorithm in this program
125125
starts with a maximum number of subclasses and reduces this
126126
number to a minimal number of subclasses which are
127127
spectrally distinct. The user has the option to set this

imagery/i.gensigset/i.gensigset.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Option **maxsig** is the maximum number of sub-signatures in any class
6161

6262
The spectral signatures which are produced by this program are "mixed"
6363
signatures (see [NOTES](#notes)). Each signature contains one or more
64-
subsignatures (represeting subclasses). The algorithm in this program
64+
subsignatures (representing subclasses). The algorithm in this program
6565
starts with a maximum number of subclasses and reduces this number to a
6666
minimal number of subclasses which are spectrally distinct. The user has
6767
the option to set this starting value with this option.

imagery/i.group/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
9797
if (G_parser(argc, argv))
9898
exit(EXIT_FAILURE);
9999

100-
/* backward comaptibility -> simple list implied l flag list, if there was
100+
/* backward compatibility -> simple list implied l flag list, if there was
101101
only l flag (with s flag added it is not clear, simple_flag is linked to
102102
both) */
103103
if ((simple_flag->answer && !s->answer) && !l->answer)

imagery/i.landsat.toar/landsat_met.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void lsat_metadata(char *metafile, lsat_data *lsat)
165165
chrncpy(lsat->date, value, 10);
166166
}
167167
else
168-
G_warning("Using adquisition date from the command line 'date'");
168+
G_warning("Using acquisition date from the command line 'date'");
169169

170170
get_mtldata(mtldata, "FILE_DATE", value);
171171
if (value[0] == '\0') {

imagery/i.landsat.toar/landsat_set.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void sensor_OLI(lsat_data *lsat)
120120
/** **********************************************
121121
** Before access to these functions ...
122122
** store previously
123-
** >>> adquisition date,
123+
** >>> acquisition date,
124124
** >>> creation date, and
125125
** >>> sun_elev
126126
** **********************************************/

imagery/i.modis.qc/mod09A1a.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* MODLAND QA Bits 500m long int bits[0-1]
22
* 00 -> class 0: Corrected product produced at ideal quality -- all bands
3-
* 01 -> class 1: Corrected product produced at less than idel quality -- some
3+
* 01 -> class 1: Corrected product produced at less than ideal quality -- some
44
* or all bands 10 -> class 2: Corrected product NOT produced due to cloud
55
* effect -- all bands 11 -> class 3: Corrected product NOT produced due to
66
* other reasons -- some or all bands mayb be fill value (Note that a value of

imagery/i.modis.qc/mod09GAa.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* MODLAND QA Bits 500m long int bits[0-1]
22
* 00 -> class 0: Corrected product produced at ideal quality -- all bands
3-
* 01 -> class 1: Corrected product produced at less than idel quality -- some
3+
* 01 -> class 1: Corrected product produced at less than ideal quality -- some
44
* or all bands 10 -> class 2: Corrected product NOT produced due to cloud
55
* effect -- all bands 11 -> class 3: Corrected product NOT produced due to
66
* other reasons -- some or all bands mayb be fill value (Note that a value of

imagery/i.modis.qc/mod09Q1a.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* MODLAND QA Bits 250m Unsigned Int bits[0-1]
22
* 00 -> class 0: Corrected product produced at ideal quality -- all bands
3-
* 01 -> class 1: Corrected product produced at less than idel quality -- some
3+
* 01 -> class 1: Corrected product produced at less than ideal quality -- some
44
* or all bands 10 -> class 2: Corrected product NOT produced due to cloud
55
* effect -- all bands 11 -> class 3: Corrected product NOT produced due to
66
* other reasons -- some or all bands mayb be fill value (Note that a value of

imagery/i.ortho.photo/i.ortho.photo/i.ortho.photo.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2>DESCRIPTION</h2>
4646
image in pixels (<em>image coordinate system</em>) and the coordinate
4747
system of the camera sensor in millimetres (<em>photo coordinate system</em>)
4848
for the interior orientation of the image, and further to the georeferenced
49-
coordinate system defined by projection parametres
49+
coordinate system defined by projection parameters
5050
(<em>target coordinate system</em>) for exterior orientation.
5151

5252
<h2>EXAMPLE</h2>
@@ -96,7 +96,7 @@ <h2>EXAMPLE</h2>
9696
group for the ortho-rectification. After choosing this option you will
9797
be prompted for the name of a new or existing imagery group. As a result,
9898
a new file <em>mapset/group/name_of_group/<b>REF</b></em>
99-
is created that contatins the names of all images in a group.
99+
is created that contains the names of all images in a group.
100100

101101
<div class="code"><pre>
102102
IMG_0020 source_mapset
@@ -116,7 +116,7 @@ <h2>EXAMPLE</h2>
116116
project is also the project from which the elevation model (raster
117117
map) will be selected (see Step 3). In Step 2, a new file
118118
<em>mapset/group/name_of_group/<b>TARGET</b></em>
119-
is created contatining the names of target project and mapset.
119+
is created containing the names of target project and mapset.
120120

121121
<div class="code"><pre>
122122
ETRS_33N
@@ -139,7 +139,7 @@ <h2>EXAMPLE</h2>
139139
In Step 3 you will be prompted for the name of the raster map in the
140140
target project that you want to use as the elevation model. As a result
141141
of this step, a new file <em>mapset/group/name_of_group/<b>ELEVATION</b></em>
142-
is created contatining the name and mapset of the chosen DEM.
142+
is created containing the name and mapset of the chosen DEM.
143143

144144
<div class="code"><pre>
145145
elevation layer :ELEVATION
@@ -163,9 +163,9 @@ <h2>EXAMPLE</h2>
163163
characteristic of the camera is its focal length. Fiducial or reseau marks
164164
locations are required to compute the scanned image to photo coordinate
165165
transformation parameter (Step 5). Two new files are created in this step:
166-
a file <em>mapset/group/name_of_group/<b>CAMERA</b></em>, contatining
166+
a file <em>mapset/group/name_of_group/<b>CAMERA</b></em>, containing
167167
the name of the reference camera and a file
168-
<em>mapset/camera/<b>name_of_reference</b></em>, contatining the
168+
<em>mapset/camera/<b>name_of_reference</b></em>, containing the
169169
camera parameters.
170170

171171
<div class="code"><pre>
@@ -192,7 +192,7 @@ <h2>EXAMPLE</h2>
192192
associate the scanned reference points (fiducials, reseau marks, etc.)
193193
with their known photo coordinates from the camera reference file. A new
194194
file <em>mapset/group/name_of_group/<b>REF_POINTS</b></em>
195-
is created, contatining a list of pairs of coordinates in image and photo
195+
is created, containing a list of pairs of coordinates in image and photo
196196
coordinate systems.
197197

198198
<div class="code"><pre>
@@ -245,7 +245,7 @@ <h2>EXAMPLE</h2>
245245
</div>
246246

247247
<p>In Step 6, a new file <em>mapset/group/name_of_group/<b>INIT_EXP</b></em>
248-
is created, contatining camera parameters.
248+
is created, containing camera parameters.
249249

250250
<div class="code"><pre>
251251
INITIAL XC 215258.345387

imagery/i.ortho.photo/i.ortho.photo/i.ortho.photo.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on the surface of the earth by matching the coordinate system of the
3131
aerial image in pixels (*image coordinate system*) and the coordinate
3232
system of the camera sensor in millimetres (*photo coordinate system*)
3333
for the interior orientation of the image, and further to the
34-
georeferenced coordinate system defined by projection parametres
34+
georeferenced coordinate system defined by projection parameters
3535
(*target coordinate system*) for exterior orientation.
3636

3737
## EXAMPLE
@@ -75,7 +75,7 @@ The steps to follow are described below:
7575
existing imagery group for the ortho-rectification. After choosing
7676
this option you will be prompted for the name of a new or existing
7777
imagery group. As a result, a new file
78-
*mapset/group/name_of_group/**REF*** is created that contatins the
78+
*mapset/group/name_of_group/**REF*** is created that contains the
7979
names of all images in a group.
8080

8181
```sh
@@ -94,7 +94,7 @@ The steps to follow are described below:
9494
and mapset where the ortho-rectified raster maps will reside. The
9595
target project is also the project from which the elevation model
9696
(raster map) will be selected (see Step 3). In Step 2, a new file
97-
*mapset/group/name_of_group/**TARGET*** is created contatining the
97+
*mapset/group/name_of_group/**TARGET*** is created containing the
9898
names of target project and mapset.
9999

100100
```sh
@@ -117,7 +117,7 @@ The steps to follow are described below:
117117
program. In Step 3 you will be prompted for the name of the raster
118118
map in the target project that you want to use as the elevation
119119
model. As a result of this step, a new file
120-
*mapset/group/name_of_group/**ELEVATION*** is created contatining
120+
*mapset/group/name_of_group/**ELEVATION*** is created containing
121121
the name and mapset of the chosen DEM.
122122

123123
```sh
@@ -142,9 +142,9 @@ The steps to follow are described below:
142142
Fiducial or reseau marks locations are required to compute the
143143
scanned image to photo coordinate transformation parameter (Step 5).
144144
Two new files are created in this step: a file
145-
*mapset/group/name_of_group/**CAMERA***, contatining the name of the
145+
*mapset/group/name_of_group/**CAMERA***, containing the name of the
146146
reference camera and a file *mapset/camera/**name_of_reference***,
147-
contatining the camera parameters.
147+
containing the camera parameters.
148148

149149
```sh
150150
CAMERA NAME sony
@@ -169,7 +169,7 @@ The steps to follow are described below:
169169
interactive step you associate the scanned reference points
170170
(fiducials, reseau marks, etc.) with their known photo coordinates
171171
from the camera reference file. A new file
172-
*mapset/group/name_of_group/**REF_POINTS*** is created, contatining
172+
*mapset/group/name_of_group/**REF_POINTS*** is created, containing
173173
a list of pairs of coordinates in image and photo coordinate
174174
systems.
175175

@@ -212,7 +212,7 @@ The steps to follow are described below:
212212
*Principle of pitch and yaw*
213213
214214
In Step 6, a new file *mapset/group/name_of_group/**INIT_EXP*** is
215-
created, contatining camera parameters.
215+
created, containing camera parameters.
216216
217217
```sh
218218
INITIAL XC 215258.345387

imagery/i.ortho.photo/i.ortho.transform/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static void do_pt_xforms(void)
423423
/* ? sscanf(buf, "%s %s", &east_str, &north_str)
424424
? G_scan_easting(,,-1)
425425
? G_scan_northing(,,-1) */
426-
/* ? muliple delims with sscanf(buf, "%[ ,|\t]", &dummy) ? */
426+
/* ? multiple delims with sscanf(buf, "%[ ,|\t]", &dummy) ? */
427427

428428
ret = sscanf(buf, "%lf %lf %lf", &easting, &northing, &height);
429429
if (ret != 3)

imagery/i.ortho.photo/lib/orthoref.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int I_compute_ortho_equations(struct Ortho_Control_Points *cpz,
8787
#ifdef DEBUG
8888
debug = fopen("ortho_compute.rst", "w");
8989
if (debug == NULL) {
90-
sprintf(msg, "Cant open debug file ortho_compute.rst\n");
90+
sprintf(msg, "Cannot open debug file ortho_compute.rst\n");
9191
G_fatal_error(msg);
9292
}
9393
#endif

imagery/i.segment/i.segment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h4>Maximum number of segments</h4>
9090
unprocessed pixel is merged with another segment. Integer overflow can
9191
happen for computational regions with more than 2 billion cells and
9292
very low threshold values, resulting in many segments. If integer
93-
overflow occurs durin region growing, starting segments can be used
93+
overflow occurs during region growing, starting segments can be used
9494
(created by initial classification or other methods).
9595

9696
<h4>Goodness of Fit</h4>

imagery/i.segment/i.segment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ starting segment IDs. Segment IDs are assigned whenever a yet
8989
unprocessed pixel is merged with another segment. Integer overflow can
9090
happen for computational regions with more than 2 billion cells and very
9191
low threshold values, resulting in many segments. If integer overflow
92-
occurs durin region growing, starting segments can be used (created by
92+
occurs during region growing, starting segments can be used (created by
9393
initial classification or other methods).
9494

9595
#### Goodness of Fit

imagery/i.segment/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* MODULE: i.segment
44
* AUTHOR(S): Markus Metz
5-
* based on the the GSoC project by
5+
* based on the GSoC project by
66
* Eric Momsen <eric.momsen at gmail com>
77
* PURPOSE: Object recognition, segments an image group.
88
* COPYRIGHT: (C) 2012 by Eric Momsen, and the GRASS Development Team

imagery/i.segment/outline

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ I think this will apply to vector lines only, initially it was framed as being f
109109

110110
/*ML: vector to raster conversion is probably necessary. Pixels crosses by a line (polygon boundary or not) have to become part of a segment boundary.*/
111111
/*EM: hmm, OK, something else for discussion: These pixels that are on a vector line, should they eventually be included in one of the adjacent segments? Is "segment boundary" just the edge pixels of the segment, or are the not included in any segment?*/
112-
/*ML: Here is where a difference comes into play between lines that are boundary polgons and lines as linear features. In my eyes pixels that are on boundarylines of polygons should be part of the segments that are internal to that boundary. Linear features would have to be treated differently. During discussions with colleagues we did have some difficulties finding actual use cases for linear features. Maybe we can start with only polygon features and if the use case of a linear features comes up try to integrate that then ?*/
112+
/*ML: Here is where a difference comes into play between lines that are boundary polygons and lines as linear features. In my eyes pixels that are on boundarylines of polygons should be part of the segments that are internal to that boundary. Linear features would have to be treated differently. During discussions with colleagues we did have some difficulties finding actual use cases for linear features. Maybe we can start with only polygon features and if the use case of a linear features comes up try to integrate that then ?*/
113113
/*EM: But for polygons covering the entire map, there is a segment on either side of the polygon line. If the line crosses the pixel, what should be done... It looks like this will not be a problem for multi-scalar segmentation, the polygons generated in a high level segmentation will be exactly between pixels. This will only be an issue for polygons generated elsewhere, smoothed, at different resolution, etc.*/
114114
/* MM: You can not know where the polygons are coming from, therefore you have consider all cases or, better, come up with a general solution. You will need to clone (substantial) parts of the t.to.vect module if you want to rasterize polygons/boundaries. If you do not rasterize, you will need to check for a boundary/line whenever you evaluate a neighbor. This could be sped up a bit by selecting all boundaries/lines crossing the current 3x3 neighborhood. The spatial selection of vector features is fast, but doing that for every cell/3x3 neighborhood can substantially slow down the module. You will also need to check if the boundary is actually part of an area (not an invalid boundary). Then you will need to check if the focus cell is inside the area, if not, if the neighbor is inside the area. Even though some spatial information gets lost by rasterization, I tend to recommend rasterization. In any case, taking into account boundaries/lines can easily become the bulk of the code, the most complex part of the code, and the most time-consuming component of the module. */
115115
/* EM: left the above discussion... unresolved. One thought: instead of storing the output as a raster, maybe it should be first converted to a map, edges representing the neighbor relationship. After we have a map, we could use the vector map to delete edges crossing the borders. This is done once, afterwards we never calculate neighbors, only check for edges. It seems this will be a very large memory structure to start with, but as the segmentation continues it will get smaller.
@@ -271,7 +271,7 @@ will use function pointer based on input, to select 4 or 8 neighbors
271271

272272

273273
/*****************************************/
274-
/******Function: calculate simularity ****/
274+
/******Function: calculate similarity ****/
275275
/*****************************************/
276276

277277
Initially only Euclidean Distance

imagery/i.segment/region_growing.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ double calculate_shape(struct reg_stats *rsi, struct reg_stats *rsk,
886886

887887
/* here we calculate a shape index for the new object to be created
888888
* the radiometric index ranges from 0 to 1, 0 = identical
889-
* with the shape index we want to favour compact and smooth opjects
889+
* with the shape index we want to favour compact and smooth objects
890890
* thus the shape index should range from 0 to 1,
891891
* 0 = maximum compactness and smoothness */
892892

imagery/i.smap/interp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static void interp(
211211
double cost, mincost; /* cost of class selection; minimum cost */
212212
int best = 0; /* class of minimum cost selection */
213213
double Constant, tmp;
214-
double *pdf; /* propability density function of class selections */
214+
double *pdf; /* probability density function of class selections */
215215
double Z; /* normalizing constant for pdf */
216216
double alpha0, alpha1, alpha2; /* transition probabilities */
217217
double log_tbl[2][3][2]; /* log of transition probability */
@@ -314,7 +314,7 @@ void MLE( /* computes maximum likelihood classification */
314314
}
315315

316316
static int up_char(
317-
/* Computes list of pointers to nieghbors at next coarser resolution. *
317+
/* Computes list of pointers to neighbors at next coarser resolution. *
318318
* Returns flag when on boundary. */
319319
int i, int j, /* fine resolution pixel location */
320320
struct Region *region, /* fine resolution image region */

imagery/i.svm.train/testsuite/test_i_svm_train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_wrong_sigfile_mapset(self):
177177

178178
@unittest.skipIf(shutil.which("i.svm.train") is None, "i.svm.train not found.")
179179
def test_wrong_svm_param(self):
180-
"""Attempt to use invalid SVM parametres"""
180+
"""Attempt to use invalid SVM parameters"""
181181
sigfile = grass.tempname(10)
182182
isvm = SimpleModule(
183183
"i.svm.train",

0 commit comments

Comments
 (0)