* +-======-+ * Copyright (c) 2003-2007 United States Government as represented by * the Admistrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE, * REPRODUCTION, DISTRIBUTION, MODIFICATION AND REDISTRIBUTION OF CERTAIN * COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE UNITED STATES GOVERNMENT AS * REPRESENTED BY THE GOVERNMENT AGENCY LISTED BELOW ("GOVERNMENT AGENCY"). * THE UNITED STATES GOVERNMENT, AS REPRESENTED BY GOVERNMENT AGENCY, IS AN * INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT DISTRIBUTIONS OR * REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, * DISTRIBUTES, MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED * HEREIN, OR ANY PART THEREOF, IS, BY THAT ACTION, ACCEPTING IN FULL THE * RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT. * * Government Agency: National Aeronautics and Space Administration * Government Agency Original Software Designation: GSC-15354-1 * Government Agency Original Software Title: GEOS-5 GCM Modeling Software * User Registration Requested. Please Visit http://opensource.gsfc.nasa.gov * Government Agency Point of Contact for Original Software: * Dale Hithon, SRA Assistant, (301) 286-2691 * * +-======-+ function track (args) ******************************************************** **** **** Usage: track filename **** ******************************************************** * Determine if tracking file exists * --------------------------------- if (args="") name = dum.track ioflag = 0 tbeg = 1 'getinfo tdim' tend = result write(name,tend) else name = subwrd(args,1) tbeg = subwrd(args,2) tend = subwrd(args,3) if(tbeg="" ) ; tbeg=1 ; endif if(tend="" ) 'getinfo tdim' tend = result endif ioflag = 1-sublin( read(name),1 ) if(ioflag!= 0) close = close(name) else write(name,tend) endif endif * Get tbeg & tend for time loop * ----------------------------- if (ioflag!=0) dummy = sublin( read(name),2 ) t = 1 while (t1) 'set line 1 1 3' 'draw line 'xold' 'yold' 'x' 'y 'set line 4 1 1' 'draw line 'xold' 'yold' 'x' 'y endif xold = x yold = y i = i + 1 endwhile 'swap' t = t + 1 endwhile * 'wi geos1.'frame'.gif' close = close(name) endif