Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getsize

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getsize
Synopsis
/infobank/programs/html/info2html/getsize.for
Description
  Subroutine to return the size of a file (in MBytes).

       
COMMENTS
  If file does not exist, Size = 0.0 is returned.

  If size GT 0 and LE 0.1, Size = 0.1 is returned.
    
AUTHOR
  Clint Steele     9/11/2002


    
Reads
      read (34, '(q,a)', end = 99) ALineLength, ALine(1:ALineLength)
          read (ALine(FirstBlank:LastBlank-1), '(i)') Characters
          read (ALine(FirstBlank:LastBlank-2), '(i)') Characters
Writes
Opens
      open (unit = 34,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/getsize_size.temp')
Calls
      call system ('/bin/ls -l '//FilePath//
     *             ' > /infobank/tmp/getsize_size.tem

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/html/info2html/getsize.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Nov 4 03:40:39 PST 2013  (chd)