English

Error: MSEEK: Invalid Argument while accessing file (seeking to position -2147483648 of ...

Error Message

Grid operations display the following error message:

Error:   
"FATAL ERROR
MSEEK: Invalid Argument while accessing file (seeking to position -2147483648 of -2147483648 for read):
/path/to/grid/w001001.adf
Bailing out of GRID
FATAL ERROR
Unable to re-open output file (P23RCV)"

Cause

The grid's w001001.adf file has exceeded the maximum file size allowed by 32 bit software applications of 2.147GB (2exp31 - 1).

Solution or Workaround

  • Process the data in several smaller pieces.
     
    Use AML reserved Grid variables to set the analysis window to a subsection of the original grid's extent. For example:
     
    Code:
    &DESCRIBE ingrd
    SETWINDOW %GRD$XMIN% %GRD$YMIN% ~
    	[CALC %GRD$XMIN% + ( ( %GRD$NCOLS% / 2 ) * %GRD$DX% )] ~
    	[CALC %GRD$YMIN% + ( ( %GRD$NROWS% / 2 ) * %GRD$DY% )]
    lowerleft = ingrd

    This SETWINDOW syntax sets the analysis window to the lower left quadrant of INGRD. With this window set, the LOWERLEFT grid is created directly from the INGRD cells in that window.
  • Reduce the resolution of the data. Use the Grid commands SETCELL or RESAMPLE.

Related Information