[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sourceforge.net
Fri May 15 02:51:25 UTC 2009


The following commit has been merged in the upstream branch:
commit 12472199fa704ba1e0875c0cfe4634d8b46b9e1d
Author: Stephane Popinet <popinet at users.sourceforge.net>
Date:   Tue Nov 16 07:07:48 2004 +1100

    bat2gts needs units specified (gerris--ocean--0.7--patch-7)
    
    gerris--ocean--0.7--patch-7
    Keywords:
    
    The default length unit for GMT is inches, bat2gts works only if units
    are cm. I have added options to the mapproject commands to override
    the defaults.
    
    darcs-hash:20041115200748-aabb8-6d06e3f7e6328afee44385b4b89811faa386fc29.gz

diff --git a/tools/bat2gts b/tools/bat2gts
index 664ccd7..14ccd51 100755
--- a/tools/bat2gts
+++ b/tools/bat2gts
@@ -103,7 +103,7 @@ cat <<EOF
 # command line: $command
 # reference depth: $H m
 EOF
-mapproject -C $proj $area |\
+mapproject -Dc -C $proj $area |\
   awk -v H=$H -v coast=$coast '{
     if ($1 < 0.71 && $1 > -0.71 && $2 < 0.71 && $2 > -0.71)
       print $1 " " $2 " " (coast - $3)/H;
@@ -112,7 +112,7 @@ mapproject -C $proj $area |\
 transform --rz $angle | transform --revert --tz 0.5
 
 cat <<EOF > lolat2xy
-mapproject -C $proj $area | awk '
+mapproject -Dc -C $proj $area | awk '
 BEGIN {
   angle = $angle * 3.14159265359/180.;
   cosa = cos (angle);
@@ -147,6 +147,6 @@ BEGIN {
   }
   else
     print \$0;
-}' | mapproject -I -C $proj $area
+}' | mapproject -Dc -I -C $proj $area
 EOF
 chmod +x xy2lolat

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list