Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- loaddata

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
loaddata
Synopsis
/infobank/programs/plt/naved/loaddata.for
Description
  Subroutine to input data and parameters for NAVED.

       
AUTHOR
  Clint Steele           

    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call loaddata                         (with the following arguments)
         OutputFilename              [variable char*10 s]
         BackFormat                  [variable char*100 sr]
         CrossesDateline             [variable char*3 sr]
         FileStatus                  [variable char*11 sr]
         NumberEdit                  [variable i*4 sr]
         NumberBack                  [variable i*4 sr]
         TimeStartEdit               [variable i*4 sr]
         TimeEndEdit                 [variable i*4 sr]
         LatSouthEdit                [variable r*4 sr]
         LatNorthEdit                [variable r*4 sr]
         LongWestEdit                [variable r* sr]
         LongEastEdit                [variable r*4 sr]
         TimeStartBack               [variable i*4 sr]
         TimeEndBack                 [variable i*4 sr]
         LatSouthBack                [variable r*4 sr]
         LatNorthBack                [variable r*4 sr]
         LongWestBack                [variable r*4 sr]
         LongEastBack                [variable r* sr]
         TimeGapEdit                 [variable i*4 sr]
         TimeGapBack                 [variable i*4 sr]
         EditFilename                [variable char*100 asr]
         EditFormat                  [variable char*100 sr]
         BackFileNm                  [variable char*100 asr]
         WindowNumber                [variable i*4 r]
         CoastEditCount              [variable i*4 sr]
         CoastEditArea               [variable char*12 s]
         CoastBackCount              [variable i*4 sr]
         CoastBackArea               [variable char*12 s]
         AddBack                     [variable char*3 r]
         Year                        [variable i*4 r]
    
SUBROUTINES
  changecase          (shared DAPS external routine)

  yesno               (shared DAPS external routine)
  specialmode         (external)                    
  starin              (shared DAPS external routine)
  opener1              (external)                    
  forerror            (shared DAPS external routine)
  converttime         (shared DAPS external routine)
  grace               (external)                    
    
FUNCTIONS
  index               (FORTRAN intrinsic function)  

    
FILES_USED
  unit=*(read,write)

  unit=(l)editunit(read,bcksp,close)
  unit=(l)backunit(read,bcksp,close)

    
Reads
          read (*, fmt = ' (a100) ', end = 99) EditFilename
      read (EditUnit, fmt = '(a80)', end = 99) ARecord
          read (*, fmt = ' (i8) ', iostat = ErrorFlag, end = 99)  
     *            TimeGapEdit
              read (EditUnit, fmt = '(a80)', end = 10) ARecord
                      read (ARecord(76:80), '(i5)',
     *                    iostat = ErrorFlag) CoastCheck
                  read (ARecord, EditFormat, iostat = ErrorFlag)
     *                LatEdit  (NumberEdit),
     *                LongEdit (NumberEdit)
              read (EditUnit, fmt = '(a80)', end = 10) ARecord
              read (ARecord, EditFormat, iostat = ErrorFlag)
     *            Year,
     *            TemporaryDay, 
     *            TemporaryHour, 
     *            TemporaryMinute, 
     *            TemporarySecond, 
     *            TemporaryTenths, 
     *            LatEdit  (NumberEdit),
     *            LongEdit (NumberEdit)
          read (*, fmt = ' (a100) ', end = 99) BackFileNm  
      read (BackUnit, fmt = '(a80)', end = 99) ARecord
          read (*, fmt = ' (i8) ', end = 99, iostat = ErrorFlag) 
     *            TimeGapBack 
              read (BackUnit, fmt = '(a80)', end = 12) ARecord 
                      read (ARecord(76:80), '(i5)',
     *                    iostat = ErrorFlag) CoastCheck
                  read (ARecord, BackFormat, iostat = ErrorFlag)
     *                LatBack  (NumberBack),
     *                LongBack (NumberBack)
              read (BackUnit, fmt = '(a80)', end = 12) ARecord 
              read (ARecord, BackFormat, iostat = ErrorFlag)
     *            Year,
     *            TemporaryDay, 
     *            TemporaryHour, 
     *            TemporaryMinute, 
     *            TemporarySecond, 
     *            TemporaryTenths, 
     *            LatBack  (NumberBack),
     *            LongBack (NumberBack)
Writes
Opens
Calls
              call yesno ('Y[N]', Answer)
                  call specialmode ('COMMAND')
              call starin (EditFilename)
              call opener1 (EditUnit,
     *                     EditFilename,
     *                     'FORMATTED',
     *                     'OLD',
     *                     ErrorFlag)
                  call forerror (ErrorFlag) 
                          call forerror (ErrorFlag)
                      call forerror (ErrorFlag) 
                  call forerror (ErrorFlag) 
              call converttime ('COMPRESS', 
     *                           TemporaryDay, 
     *                           TemporaryHour, 
     *                           TemporaryMinute, 
     *                           TemporarySecond, 
     *                           TemporaryTenths, 
     *                           TimeEdit (NumberEdit),
     *                           StatusFlag )
          call yesno ('[Y]N', Answer) 
              call yesno ('Y[N]', Answer)
                  call specialmode ('COMMAND')
              call starin (BackFileNm)
              call opener1 (BackUnit,
     *                     BackFileNm,
     *                     'FORMATTED',
     *                     'OLD',
     *                     ErrorFlag)
                  call forerror (ErrorFlag) 
                          call forerror (ErrorFlag)
                      call forerror (ErrorFlag) 
                  call forerror (ErrorFlag)
              call converttime ('COMPRESS', 
     *                           TemporaryDay, 
     *                           TemporaryHour, 
     *                           TemporaryMinute, 
     *                           TemporarySecond, 
     *                           TemporaryTenths, 
     *                           TimeBack (NumberBack),
     *                           StatusFlag)
          call yesno ('[Y]N', Answer) 
      call grace (LatNorthWindow (WindowNumber),
     *            LatSouthWindow (WindowNumber),
     *            LongWestWindow (WindowNumber),
     *            LongEastWindow (WindowNumber) )

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/naved/loaddata.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:15 PDT 2013  (chd)