English

Error: premature end of file in GIRAS" - "file does not exist" - "premature EOF"

Error Message

When running the GIRASARC command, the following error may occur:

"premature end of file in GIRAS
0 out of 0 records read for last section!
error encountered while reading record 2!
unable to convert file
bailing out of girasarc"

"file does not exist"

"premature EOF"

Cause

The LULC GIRAS files located in the United States Geological Survey (USGS) FTP account don't contain record delimiters; thus, all the data is in one line, which ArcInfo is unable to process.

Solution or Workaround

  • Windows 2000 and Windows XP:

    Break the data into 80-character lines by using the CHOP utility available for download in the Related Information section below. After unzipping the utility, run it at the DOS prompt as follows:

    Code:
    chop 80 <inputfilename, in brackets> outputfilename

  • UNIX:

    Break the data into 80-character lines by using the 'fold' command.

    Code:
    fold -80 girasfile > newfile

    It is also possible to use the 'dd' command:

    Code:
    dd if=inputfilename of=outputfilename ibs=8000 cbs=80 conv=unblock


    Note:
    Consult the UNIX online help or manuals for precise usages of these commands.

Related Information