gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 105e9e9: Spelling of shear correct


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 105e9e9: Spelling of shear correct
Date: Fri, 21 Oct 2016 21:40:54 +0000 (UTC)

branch: master
commit 105e9e90959199ec572e7e37d8731e740ad65876
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Spelling of shear correct
    
    Strangely enough, I had consistently written shear as `sheer' in the
    program source and documentation! This issue is now corrected.
---
 bin/imgwarp/args.h |    6 +++---
 bin/imgwarp/ui.c   |    6 +++---
 bin/imgwarp/ui.h   |    2 +-
 doc/gnuastro.texi  |   10 +++++-----
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/bin/imgwarp/args.h b/bin/imgwarp/args.h
index ec54363..1322c8b 100644
--- a/bin/imgwarp/args.h
+++ b/bin/imgwarp/args.h
@@ -203,11 +203,11 @@ static struct argp_option options[] =
       3
     },
     {
-      "sheer",
+      "shear",
       'e',
       "FLT[,FLT]",
       0,
-      "Sheer along the given axis(es).",
+      "Shear along the given axis(es).",
       3
     },
     {
@@ -323,7 +323,7 @@ parse_opt(int key, char *arg, struct argp_state *state)
       add_to_optionwapsll(&p->up.owll, FLIP_WARP, arg);
       break;
     case 'e':
-      add_to_optionwapsll(&p->up.owll, SHEER_WARP, arg);
+      add_to_optionwapsll(&p->up.owll, SHEAR_WARP, arg);
       break;
     case 't':
       add_to_optionwapsll(&p->up.owll, TRANSLATE_WARP, arg);
diff --git a/bin/imgwarp/ui.c b/bin/imgwarp/ui.c
index 1afe816..c8ba85f 100644
--- a/bin/imgwarp/ui.c
+++ b/bin/imgwarp/ui.c
@@ -163,8 +163,8 @@ readconfig(char *filename, struct imgwarpparams *p)
       else if(strcmp(name, "flip")==0)
         add_to_optionwapsll(&p->up.owll, FLIP_WARP, value);
 
-      else if(strcmp(name, "sheer")==0)
-        add_to_optionwapsll(&p->up.owll, SHEER_WARP, value);
+      else if(strcmp(name, "shear")==0)
+        add_to_optionwapsll(&p->up.owll, SHEAR_WARP, value);
 
       else if(strcmp(name, "translate")==0)
         add_to_optionwapsll(&p->up.owll, TRANSLATE_WARP, value);
@@ -786,7 +786,7 @@ prepare_modular_matrix(struct imgwarpparams *p)
           tmatrix[6]=0.0f;       tmatrix[7]=0.0f;     tmatrix[8]=1.0f;
           break;
 
-        case SHEER_WARP:
+        case SHEAR_WARP:
           if( isnan(tmp->v2) ) tmp->v2=tmp->v1;
           tmatrix[0]=1.0f;     tmatrix[1]=tmp->v1;    tmatrix[2]=0.0f;
           tmatrix[3]=tmp->v2;  tmatrix[4]=1.0f;       tmatrix[5]=0.0f;
diff --git a/bin/imgwarp/ui.h b/bin/imgwarp/ui.h
index 3307185..6344265 100644
--- a/bin/imgwarp/ui.h
+++ b/bin/imgwarp/ui.h
@@ -31,7 +31,7 @@ enum standard_warps
     ROTATE_WARP,
     SCALE_WARP,
     FLIP_WARP,
-    SHEER_WARP,
+    SHEAR_WARP,
     TRANSLATE_WARP,
     PROJECT_WARP,
   };
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index 54d9295..ef27f2a 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -9283,12 +9283,12 @@ equivalent to @option{--flip=0,20} since it only 
matters if it is
 non-zero).
 
 @item -e
address@hidden --sheer
-(@option{=FLT[,FLT]}) Apply a sheer to the image along the image axises. If
-only one value is given, then both image axises will be sheered with the
-given value. When two values are given, the first will be used to sheer the
address@hidden --shear
+(@option{=FLT[,FLT]}) Apply a shear to the image along the image axises. If
+only one value is given, then both image axises will be sheared with the
+given value. When two values are given, the first will be used to shear the
 first axis and the second will be used for the second axis. If you only
-need to sheer one axis, use @option{0} for the axis you don't need.
+need to shear one axis, use @option{0} for the axis you don't need.
 
 @item -t
 @itemx --translate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]