| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Examples :: Related |
| Back to top |
| Back to top |
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILE * | String | Input file name | 1 - 192 | |
| PXSZ * | Float | Pixel ground-size, in meters | 2 - 2 | Default: 1.0,1.0 |
| Back to top |
FILE
Specifies the name of the PCIDSK image file to be altered.
PXSZ
Specifies the horizontal (x) and vertical (y) dimensions of one image pixel, in meters.
Setting this size to a meaningful value is important for ground area calculations (in classification, for example).
| Back to top |
APS modifies the pixel ground size (PXSZ) for a specified image database (FILE). It overwrites the pixel size that was specified when the file was created by CIM. The pixel ground size is used for generating statistics and ground area calculations of classified data (performed by MLC and MLR).
APS alters the pixel size on a database file only if the output units for the georeferencing segment are "PIXEL" or "LONG/LAT". This avoids the possibility of inconsistency between the pixel size stored in the master header of the database file and the pixel size derived from the georeferencing segment.
Change the UPLEFT and LORIGHT parameters, and run the GEOSET program. GEOSET calculates the pixel size, given the values specified for UPLEFT and LORIGHT, and saves the pixel size on the database file.
Default the UPLEFT and LORIGHT parameters, set MAPUNITS="PIXEL", and run the GEOSET program. This process resets the georeferencing segment to the identity transform. Then, run APS to change the pixel size.
| Back to top |
Alter the ground size of the pixels in the file MSS.PIX to 30 meters in the x-direction and 40.3 meters in the y-direction, assuming that MSS.PIX has not been georeferenced.
EASI>FILE="mss.pix"
EASI>PXSZ=30,40.3
EASI>RUN APS
Change the pixel size of the demo image file irvine.pix to 5 by 5 meters. You must run GEOSET first, to default the georeferencing transform.
EASI>FILE="irvine.pix"
EASI>UPLEFT=
EASI>LORIGHT=
EASI>MAPUNITS="PIXEL"
EASI>RUN GEOSET
Use APS to alter the pixel size.
EASI>>PXSZ=5,5
EASI>RUN APS
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.