English

Problem: PROJECTGRID with the NINE or SEVENTEEN option creates an output grid larger than the input grid

Description

An output grid created by PROJECTGRID with the NINE or SEVENTEEN options can be substantially larger than the input grid.

Cause

This is a known problem with the internal grid compression scheme for these outputs.

This problem doesn't occur with PROJECT and PROJECTGRID with the FULL option.

Solution or Workaround

Resample the output grid to the same cell size. This reduces the size of the final result.

  1. Project the source grid.

    Code:
    Grid: grd_project = projectgrid (grd_source, prj_file.prj, #, nine)

  2. Set the analysis window for resampling.

    Code:
    Grid: setwindow grd_project
    Grid: setcell grd_project

  3. Resample the projected grid using the same cell size for the output. Cell values will not change when you use the same cell size.

    Code:
    Grid: grd_resamp = resample (grd_project)