Changeset 225 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jan 28, 2015, 3:21:19 PM (10 years ago)
Author:
lfita
Message:

Fixing 'x' coordinate value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/lmdz_point.bash

    r190 r225  
    1 #!/bin/bash -x
     1#!/bin/bash
    22## g.e. # lmdz_point.bash 99 32 32
    33if test $1 = '-h'; then
     
    1414  dimy=$3
    1515  y=`expr ${LMDZpoint} / ${dimx}`
    16   x=`expr ${LMDZpoint} - ${y} '*' ${dimx}`
     16  x=`expr ${LMDZpoint} - ${y} '*' ${dimx} - 1`
    1717  echo "2D point: "${x}","${y}
    1818
Note: See TracChangeset for help on using the changeset viewer.