| Environments | PYTHON :: EASI :: MODELER |
| 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 | |
| IMSTAT | Float | Image Statistics | 0 - 15 |
| Back to top |
FILE
Specifies the name of the PCIDSK image file from which header and georeferencing data are to be extracted.
IMSTAT
| Back to top |
IHR reads header and georeferencing data from the specified input file (FILI), and saves the retrieved data to the IMSTAT parameter.
| Back to top |
Get database header and georeferencing data from the demo database file irvine.pix, and print the values.
EASI>FILE="irvine.pix" EASI>RUN IHR EASI>SHOW IMSTAT
IMSTAT - Image Statistics > 512 512 10 9
1 0 0 32
30 30 1 428720
3734400 444080 3719040
The code shown below calculates the georeferenced location of the center of a specified database position (X,Y). Scaling factors (XSCALE,YSCALE) are calculated, given georeferenced locations of the upper-left and lower-right corners of the database, and the number of pixels and lines on the database.
LOCAL #X,#Y,#XSCALE,#YSCALE ASK "Enter Database File Name : " FILE RUN IHR #XSCALE = (IMSTAT(14)-IMSTAT(12)) / IMSTAT(1) #YSCALE = (IMSTAT(15)-IMSTAT(13)) / IMSTAT(2) INPUT "Enter X Database Position > " #X INPUT "Enter Y Database Position > " #Y PRINT "Georeferenced X position = ",IMSTAT(12)+#XSCALE*(#X-0.5) PRINT "Georeferenced Y position = ",IMSTAT(13)+#YSCALE*(#Y-0.5)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.