Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- legend

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
legend
Synopsis
/infobank/programs/plt/timeprof/src/legend.for
Description
  Subroutine to plot legend for TIMEPROF.

       
USAGE
    call legend (XOrigin, YOrigin, NumberOfFiles,

                 XScale, VisibleTimeGap, SymbolCode,
                 YScale, ApproxAvgTimeGap, SymbolFrequency,
                 CruiseID, FileName, FieldName, FieldUnits,
                 InputFormat, ThickLineCode, ThinLineCode,
                 MaxNumOfFields, TimeStamp, MaxNumOfRecords,
                 NumberOfFields, NumberOfRecords,
                 WindowStartTime, WindowEndTime, UsingColor,
                 GetLegendDimensions, BoxWidth, BoxHeight,
                 NodeName)
    
SUBROUTINES
  stringlen      (external shareable)

  converttime    (external shareable)
  border         (external drs$share)
  symbol         (external Calcomp)
  newpen         (external Calcomp)
  plotjprm       (external Calcomp, DISCO only)
    
AUTHOR
  Clint Steele             .for

  Clint Steele       8/15/90      Cleanup

    
Reads
Writes
                  write (OutputString (26:26 + NumberOfDigits + 3),
     *                   '(f<NumberOfDigits + 3>
     *                YScale (FieldPointer, FilePointer)
                  write (OutputString (30:30 + NumberOfDigits),
     *                   '(i<NumberOfDigits>)') DataFre
                  write (OutputString (30:30 + NumberOfDigits),
     *                   '(i<NumberOfDigits>)') DataFre
                  write (OutputString (30:30 + NumberOfDigits),
     *                   '(i<NumberOfDigits&
     *                SymbolFrequency (FilePointer)
              write (OutputString (30:30 + NumberOfDigits),
     *               '(i<NumberOfDigits&
     *            NumberOfRecords (FilePointer)
              write (OutputString (30:37), '(i3.3,1x,2i2.2)')
     *            Day, Hour, Minute
              write (OutputString (30:37), '(i3.3,1x,2i2.2)')
     *            Day, Hour, Minute
              write (OutputString (StringLength + 1:StringLength + 8),
     *               '(i3.3,1x,2i2.2)') Day, Hour, Minute
              write (OutputString (StringLength + 1:StringLength + 8),
     *               '(i3.3,1x,2i2.2)') Day, Hour, Minute
          write (OutputString (20:20 + NumberOfDigits + 3),
     *           '(f<NumberOfDigits + 3>.2)') TimeGapInHours
          write (OutputString (20:20 + NumberOfDigits + 3),
     *        '(f<NumberOfDigits + 3>.2)') TimeGapI
      write (OutputString (28:28 + NumberOfDigits + 3),
     *       '(f<NumberOfDigits + 3>.2)') XScale / 
Opens
Calls
      call time      (SystemTime)
      call date      (SystemDate)
      call getusrnam (UserName)
      call stringlen (UserName, StringLength)
      call stringlen (OutputString, StringLength)
          call newpen (ThickLineCode)
          call symbol (XPosition, YPosition, SmallLetter,
     *                 %ref (OutputString), 0., StringLength)
                  call newpen (ThickLineCode)
                  call symbol (XPosition + (SmallLetter * 2),
     *                         YPosition, TinyLetter,
     *                         %ref (OutputString), 0., 31)
                          call newpen (FieldNumber)
                          call newpen (ThinLineCode)
                  call numlength
     *                (YScale (FieldPointer, FilePointer),
     *                 NumberOfDigits)
                  call stringlen (OutputString, StringLength)
                      call stringlen (OutputString, StringLength)
                          call newpen (ThickLineCode)
                          call symbol (XPosition +
     *                                 (SmallLetter * 4) + .1,
     *                                 YPosition + .06, TinyLetter,
     *                                 SymbolCode (FieldNumber), 0., -1)
                      call stringlen (OutputString, StringLength)
                  call newpen (ThickLineCode)
                  call symbol (XPosition + (SmallLetter * 2),
     *                         YPosition, SmallLetter,
     *                         %ref (OutputString), 0., 12)
              call stringlen (OutputString, StringLength)
                  call numlength (float (DataFrequency), NumberOfDigits)
                  call numlength (float (DataFrequency), NumberOfDigits)
                  call numlength (float (SymbolFrequency (FilePointer)),
     *                            NumberOfDigits)
              call numlength (float (NumberOfRecords (FilePointer)),
     *                        NumberOfDigits)
              call converttime
     *            ('EXPAND', Day, Hour, Minute, Second, Tenth,
     *             ifix (TimeStamp (NumberOfRecords (FilePointer),
     *                              FilePointer)),
     *             TimeErrorFlag)
              call converttime
     *            ('EXPAND', Day, Hour, Minute, Second, Tenth,
     *             ifix (TimeStamp (1, FilePointer)), TimeErrorFlag)
          call stringlen (NodeName, StringLength)
          call stringlen (OutputString, StringLength)
              call newpen (ThickLineCode)
              call symbol (XPosition, YPosition, SmallLetter,
     *                     %ref (OutputString), 0., StringLength)
              call converttime
     *            ('EXPAND', Day, Hour, Minute, Second, Tenth,
     *             ifix (WindowStartTime), TimeErrorFlag)
              call converttime
     *            ('EXPAND', Day, Hour, Minute, Second, Tenth,
     *             ifix (WindowEndTime), TimeErrorFlag)
              call newpen (ThinLineCode)
              call symbol (XPosition, YPosition, SmallLetter,
     *                     %ref (OutputString), 0., StringLength)
          call numlength (TimeGapInHours * 60., NumberOfDigits)
          call numlength (TimeGapInHours, NumberOfDigits)
      call stringlen (OutputString, StringLength)
      call numlength (XScale / 36000., NumberOfDigits)
      call stringlen (OutputString, StringLength)
      call stringlen (OutputString, StringLength)
          call newpen (ThickLineCode)
          call symbol (XPosition, YPosition, BigLetter,
     *                 %ref (OutputString), 0., StringLength)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/plt/timeprof/src/legend.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:18 PDT 2013  (chd)