/[MITgcm]/MITgcm_contrib/afe/osse_MkII/piv/addcross.pl
ViewVC logotype

Annotation of /MITgcm_contrib/afe/osse_MkII/piv/addcross.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Jul 22 17:50:43 2005 UTC (20 years ago) by afe
Branch: MAIN
File MIME type: text/plain
PIV scripts

1 afe 1.1 #!/usr/bin/perl
2    
3     $bar=10;
4     @horiz=( 150, 150, 500, 500 );
5     @vert=( 180, 320, 180, 320);
6    
7     $cmdconv='convert masker.jpg -stroke white -strokewidth 3 ';
8    
9     foreach $x (@horiz) {
10     $y=shift( @vert);
11     #print "$x, $y";
12    
13     $xh=$x+$bar; $xl=$x-$bar;
14     $yh=$y+$bar; $yl=$y-$bar;
15    
16     $cmdconv .= "-draw \"line $xh,$y $xl,$y\" ";
17     $cmdconv .= "-draw \"line $x,$yh $x,$yl\" ";
18     }
19    
20     $cmdconv .= "worldco1.jpg";
21     #print $cmdconv;
22     #system($cmdconv);
23     system $cmdconv;
24     #`"$cmdconv"`;
25    
26     $cmddisp = 'display worldco1.jpg';
27     #system($cmddisp);
28     system $cmddisp;
29     #`$cmdconv`;

  ViewVC Help
Powered by ViewVC 1.1.22