From: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Date: Tue, 26 Nov 2013 09:08:12 +0000
Subject: spelling

Fix spelling errors

Forwarded: https://github.com/TUDelftGeodesy/Doris/pull/5
---
 doris_core/coregistration.cc | 14 +++++++-------
 doris_core/exceptions.cc     |  4 ++--
 doris_core/filtering.cc      |  2 +-
 doris_core/geocode.cc        |  2 +-
 doris_core/processor.cc      |  2 +-
 doris_core/readdata.cc       |  4 ++--
 doris_core/readinput.cc      | 32 ++++++++++++++++----------------
 sar_tools/cpxfiddle.cc       |  2 +-
 8 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/doris_core/coregistration.cc b/doris_core/coregistration.cc
index c316cf6..fa59bc6 100644
--- a/doris_core/coregistration.cc
+++ b/doris_core/coregistration.cc
@@ -1363,7 +1363,7 @@ void mtiming_correl(
   int32 offsetLines  = -999; // NaN
   int32 offsetPixels = -999;
   //getoffset(Result,offsetLines,offsetPixels);   // getoffsets based on Mean
-  getmodeoffset(Result,offsetLines,offsetPixels); // [MA] max occurence
+  getmodeoffset(Result,offsetLines,offsetPixels); // [MA] max occurrence
 
 
   // ______ Convert offsets to seconds and write  master time offset to res file ______
@@ -1727,7 +1727,7 @@ void mtiming_correlfft(
   int32 offsetLines  = -999; // NaN
   int32 offsetPixels = -999;
   //getoffset(Result,offsetLines,offsetPixels);   // getoffsets based on Mean
-  getmodeoffset(Result,offsetLines,offsetPixels); // [MA] max occurence
+  getmodeoffset(Result,offsetLines,offsetPixels); // [MA] max occurrence
 
 
   // ______ Convert offsets to seconds and write master time offset to res file ______
@@ -2377,7 +2377,7 @@ cerr << endl;
                  << "\n* MTIMING_CORRELATION: Offset Frequency Table"
                  << "\n*******************************************************************"
                  << "\nUsing following data to determine coarse image offset:"
-                 << "\navg. coh    offset_L    offset_P  occurence  index"
+                 << "\navg. coh    offset_L    offset_P  occurrence  index"
                  << "\n------------------------------------------------------";  // TODO not yet: scratchlogfile << INFO
 
    // _____ Mode of offsets _____  [MA]
@@ -2385,7 +2385,7 @@ cerr << endl;
   PROGRESS << "Using as threshold:  " << thresh_coh << " and checking for mode value";
   PROGRESS.print();
   INFO.print("Using following data to determine coarse image offset:");
-  INFO.print("avg. coh    offset_L    offset_P  occurence  index");
+  INFO.print("avg. coh    offset_L    offset_P  occurrence  index");
   INFO.print("------------------------------------------------------");
 
   mysort231(sortResult);                        // re-sort on 2nd, 3rd than 1st column
@@ -2412,7 +2412,7 @@ cerr << endl;
          }
       offset_freq=0;   // reset
       offset_mcoh=0;
-      for (register uint j=0; j<nW; j++)           // scan data for occurences of an offset
+      for (register uint j=0; j<nW; j++)           // scan data for occurrences of an offset
         {                                          // for all offsets
          if ( L == int32(rint(sortResult(j,1))) && P == int32(rint(sortResult(j,2))) )
            {
@@ -2449,7 +2449,7 @@ cerr << endl;
     scratchlogfile << "\n\n*******************************************************************";
     scratchlogfile.close();  // close scratchlogmtiminghtr
 
-    // _____ Even occurence check _____
+    // _____ Even occurrence check _____
     if (mode_val == evenmode_val) // there are even values of mode.
       {
         WARNING << "There are " << nEven << " offset pairs which has equal mode values are equal.";
@@ -2471,7 +2471,7 @@ cerr << endl;
     }
   if (mode_val == 1)
     {
-    WARNING.print("getmodeoffset: all the offset occurence == 1. There is no mode value. ");
+    WARNING.print("getmodeoffset: all the offset occurrence == 1. There is no mode value. ");
     WARNING.print("(please check bottom of LOGFILE to see if offset is OK or change window size.)");
     }
   if (nW < 6)
diff --git a/doris_core/exceptions.cc b/doris_core/exceptions.cc
index 1855ca1..3c8905a 100755
--- a/doris_core/exceptions.cc
+++ b/doris_core/exceptions.cc
@@ -107,8 +107,8 @@ void handle_signal(int signum)
       break;
 #endif
     case SIGINT:
-      cout << "Caught SIGINT: User interupt signal." << endl;
-      cerr << "Caught SIGINT: User interupt signal." << endl;
+      cout << "Caught SIGINT: User interrupt signal." << endl;
+      cerr << "Caught SIGINT: User interrupt signal." << endl;
       exit(1);
       break;
     case SIGFPE:
diff --git a/doris_core/filtering.cc b/doris_core/filtering.cc
index 7cc2063..eb8fa83 100755
--- a/doris_core/filtering.cc
+++ b/doris_core/filtering.cc
@@ -2010,7 +2010,7 @@ void azimuthfilter(
     {
     INFO << "Variation of fDC for master and slave < " << max_fdc_change;
     INFO.print();
-    INFO.print("Reseting Doppler polynomial to constant of center crop:");
+    INFO.print("Resetting Doppler polynomial to constant of center crop:");
     master.f_DC_a0 = master_fdc_p05;
     master.f_DC_a1 = 0.0;
     master.f_DC_a2 = 0.0;
diff --git a/doris_core/geocode.cc b/doris_core/geocode.cc
index a32ef6f..8dbf1f8 100755
--- a/doris_core/geocode.cc
+++ b/doris_core/geocode.cc
@@ -362,7 +362,7 @@ void slant2hschwabisch(
          << 100*(buffer-1)/(FULLBUFFERS+EXTRABUFFER) << "%";
     PROGRESS.print();
 
-    // ______ In original master coordinate sytem ______
+    // ______ In original master coordinate system ______
     const real8 firstline = veryfirstline + (buffer-1) * bufferlines * multiL;
 
     // ______ Set indices for loading / check last buffer ______
diff --git a/doris_core/processor.cc b/doris_core/processor.cc
index 9ce084a..6badd70 100755
--- a/doris_core/processor.cc
+++ b/doris_core/processor.cc
@@ -3926,7 +3926,7 @@ void quote()
     "Beauty can be perceived but not explained.", // 130
     "Programming is like sex: one mistake and you have to\n\tsupport it for the rest of your life. [Michael Sinz]",
     "I wish you were here and I was there [me].",
-    "In mathematics you dont understand things, you just get used to them [Neumann].",
+    "In mathematics you don't understand things, you just get used to them [Neumann].",
     "A man is incomplete until he is married. After that, he is finished [Zsa Zsa Gabor].",
     "Unlikely children's book title:\n\t\"The Kids' Guide to Hitchhiking\".", // 138
     "Unlikely children's book title:\n\t\"Whining, Kicking and Crying to Get Your Way\".",
diff --git a/doris_core/readdata.cc b/doris_core/readdata.cc
index 00627d5..487d9da 100755
--- a/doris_core/readdata.cc
+++ b/doris_core/readdata.cc
@@ -1708,7 +1708,7 @@ else//RSAT method specified
   // to what (time) does the annotated GMHA refer?
   DEBUG << "GMHA [rad]: " << GMHA;
   DEBUG.print();
-  DEBUG << "Convertion from inertial to earth fixed [1/-1]: " << csi2cse;
+  DEBUG << "Conversion from inertial to earth fixed [1/-1]: " << csi2cse;
   DEBUG.print();
   DEBUG << "earthrot [rad/s]: " << earthrot;
   DEBUG.print();
@@ -2355,7 +2355,7 @@ if (readfiles_arg.sensor_id==SLC_RSAT && readfiles_arg.sar_processor==SARPR_ATL)
   scratchresfile
     << "Leader file:                                 \t"
     <<  readfiles_arg.leaderfile
-    << "\nSensor platform mission identifer:         \t"
+    << "\nSensor platform mission identifier:        \t"
     <<  c32sensorid
     << "\nScene_centre_latitude:                     \t"
     <<  c16centerlat
diff --git a/doris_core/readinput.cc b/doris_core/readinput.cc
index 2c45931..57d7c94 100755
--- a/doris_core/readinput.cc
+++ b/doris_core/readinput.cc
@@ -197,7 +197,7 @@ void readinput(
   //char                  filename[4*ONE27];            // string for filenames // [MA] changed EIGHTY --> 2*ONE27, due to comments line gets longer
   char                  eachline[4*ONE27];           // assuming maximum char lenght of the line is 4*ONE27. It should be sufficient.
 
-  // ______ Check (multiple) occurence of cards ______
+  // ______ Check (multiple) occurrence of cards ______
   bool                  priorscreen     = false;     // no screen card present
   bool                  priormemory     = false;     // check if present for info
   bool                  priorbatch      = false;     // check if present for info
@@ -747,7 +747,7 @@ void readinput(
         {
         case true:
           WARNING << "SCREEN: line " << linecnt << ": stdout: "
-               << " ignored due to prior occurence.";
+               << " ignored due to prior occurrence.";
           WARNING.print();
           break;
 
@@ -846,7 +846,7 @@ void readinput(
         {
         case true:
           WARNING << "MEMORY: line " << linecnt
-               << ": ignored due to prior occurence.";
+               << ": ignored due to prior occurrence.";
           WARNING.print();
           break;
 
@@ -879,11 +879,11 @@ void readinput(
         {
         case true:
           WARNING << "BATCH: line: " << linecnt << ": "
-               << "ignored due to prior occurence.";
+               << "ignored due to prior occurrence.";
           WARNING.print();
           break;
         default:
-          priorbatch = true;                            // flag for occurence
+          priorbatch = true;                            // flag for occurrence
          // keyword =  word[1] ;        // pass keyword                 // argument
           keyword = word[1];                  // pass next word       (the argument)
           writearg(keyword);
@@ -913,11 +913,11 @@ void readinput(
         {
         case true:
           WARNING << "OVERWRITE: line: " << linecnt << ": "
-               << "ignored due to prior occurence.";
+               << "ignored due to prior occurrence.";
           WARNING.print();
           break;
         default:
-          prioroverwrite = true;                                // flag for occurence
+          prioroverwrite = true;                                // flag for occurrence
           keyword = word[1];                  // pass next word       (the argument)
           writearg(keyword);
           toupper(keyword);
@@ -946,11 +946,11 @@ void readinput(
         {
         case true:
           WARNING << "LISTINPUT: line: " << linecnt << ": "
-               << "ignored due to prior occurence.";
+               << "ignored due to prior occurrence.";
           WARNING.print();
           break;
         default:
-          priorlistinput = true;                                // flag for occurence
+          priorlistinput = true;                                // flag for occurrence
           keyword = word[1];                  // pass next word       (the argument)
           writearg(keyword);
           toupper(keyword);
@@ -979,7 +979,7 @@ void readinput(
       //  the flag input array 'process[NUMPROCESSES]' after reading reset input
       //  to avoid interference with PROCESS cards (ONLYPROCESS overrides)
       //
-      if (onlyprocess == -1)                             // check multiple occurences
+      if (onlyprocess == -1)                             // check multiple occurrences
         {
           keyword = word[1];                  // pass next word       (the argument)
         writearg(keyword);
@@ -1079,7 +1079,7 @@ void readinput(
         }
       else
         {
-        WARNING << "ONLYPROCESS: more than one occurence of card, ignored line: "
+        WARNING << "ONLYPROCESS: more than one occurrence of card, ignored line: "
                    << linecnt << ".";
         WARNING.print();
 
@@ -1375,7 +1375,7 @@ void readinput(
       else if (!strcmp(keyword,"XV"))
         {
         generalinput.preview = 2;
-        INFO.print("PREVIEW: \tON: generation of SUNraster files enabled + XV sytem call.");
+        INFO.print("PREVIEW: \tON: generation of SUNraster files enabled + XV system call.");
         }
       else if (!strcmp(keyword,"ON")    ||
                !strncmp(keyword,"//",2) ||              // comment
@@ -1705,7 +1705,7 @@ void readinput(
     else if (!strcmp(keyword,"M_ORBDIR"))             // orbitfile filename
       {                                               
       if (specified(porbitsinput.m_orbdir))
-               WARNING.print("Prior occurence of M_ORBDIR ignored.");
+               WARNING.print("Prior occurrence of M_ORBDIR ignored.");
       strcpy(porbitsinput.m_orbdir,  word[1] );         // pass keyword
       writearg(porbitsinput.m_orbdir);
       }
@@ -1762,7 +1762,7 @@ void readinput(
     else if (!strcmp(keyword,"S_ORBDIR"))             // orbitfile filename
       {                                               
       if (specified(porbitsinput.s_orbdir))
-              WARNING.print("Prior occurence of S_ORBDIR ignored.");
+              WARNING.print("Prior occurrence of S_ORBDIR ignored.");
       strcpy(porbitsinput.s_orbdir,  word[1] );         // pass keyword
       writearg(porbitsinput.s_orbdir);
       }
@@ -3446,7 +3446,7 @@ void readinput(
         {
         case true:
           WARNING << "RS_OUT_FILE: line: " << linecnt << ": "
-              << "ignored due to prior occurence.";
+              << "ignored due to prior occurrence.";
           WARNING.print();
           break;
         default:
@@ -5785,7 +5785,7 @@ void checkunwrap(
 
     case uw_method2:
       INFO.print("Method 2: SNAPHU is used for unwrapping.");
-      INFO.print("Please make sure snaphu is installed.  check results carefuly.");
+      INFO.print("Please make sure snaphu is installed.  check results carefully.");
       INFO << "UW_SNAPHU_LOG: \tOutput log file of snaphu: "
            << unwrapinput.snaphu_log;
       INFO.print();
diff --git a/sar_tools/cpxfiddle.cc b/sar_tools/cpxfiddle.cc
index 3e44c25..97c7702 100644
--- a/sar_tools/cpxfiddle.cc
+++ b/sar_tools/cpxfiddle.cc
@@ -2256,7 +2256,7 @@ void usage(char *programname)
        << "\n   -M with -m:   First mirrored then multilooked."
        << "\n   -B:           Not tested properly, but simply calls functions."
        << "\n   all:          If cpxfile is a symbolic link, filesize cannot be"
-       << "\n                 determined, and therefor the number of lines."
+       << "\n                 determined, and therefore the number of lines."
        << "\n                 Solution: Use the full path or use a hard link."
        << "\n   (lot of options, binary to screen, but these are features.)"
 
