Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- timelatlong

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
timelatlong
Synopsis
/infobank/programs/dbase/validator/timelatlong.for
Description
  Subroutine to verify that a file is in the stardard

  time/lat/long format.

       
Reads
          read (TempUnit, '(q,a)', end = 99)
     *                ALineLength, ALine(1:ALineLength)
          read (ALine(16:35), '(f9.5,1x,f10.5)',
     *                  iostat = ReadError, err = 9)
     *                  Latitude, Longitude
Writes
              write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'blanks are not allowed in '//
     *                    'the decimal part of the latitude field'//
     *                    ' (columns 18-24)'
              write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'blanks are not allowed in '//
     *                    'the decimal part of the '//
     *                    'longitude field'//
     *                    ' (columns 29-35)'
              write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'column 19 must be a decimal point'
              write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'column 25 must be blank'
              write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'column 30 must be a decimal point'
                  write (Message, 25) InFile(1:InFileLength),
     *                        RecordCount,
     *                        'column 36 must be blank when '//
     *                        'data exists beyond it'
          write (Message, 25) InFile(1:InFileLength),
     *                    RecordCount,
     *                    'latitude and longitude (fields 16-35) '//
     *                    'can only be decimal numbers'
              write (Message, 25) InFile(1:InFileLength),
     *                RecordCount,
     *                    'latitude field (columns 16-24) '//
     *                    'must fall within -90.0 to 90.0 range'
              write (Message, 25) InFile(1:InFileLength),
     *                RecordCount,
     *                    'longitude field (columns 26-35) '//
     *                    'must fall within -179.99999 to '//
     *                    '180.00000 range'
Opens
      open (unit   = TempUnit,
     *      access = 'sequential',
     *      form   = 'formatted',
     *      status = 'unknown',
     *      name   = InFile(1:InFileLength))
Calls
          call stringlen (ALine(1:ALineLength), 
     *                            ALineLength)

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/dbase/validator/timelatlong.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:37 PDT 2013  (chd)