Error: premature end of file in GIRAS" - "file does not exist" - "premature EOF"
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"
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:
chop 80 <inputfilename, in brackets> outputfilename
Break the data into 80-character lines by using the 'fold' command.
fold -80 girasfile > newfile
It is also possible to use the 'dd' command:
dd if=inputfilename of=outputfilename ibs=8000 cbs=80 conv=unblock
Consult the UNIX online help or manuals for precise usages of these commands.