Creating a subset script

A subset-script file specifies the coordinates and output file names when you want to create several, separate, subset areas using the same definition.

Database corners

The subset area is defined by identifying upper-left and lower-right pixel and line coordinates. The format for listing the coordinates and output file name is as follows:

[ul_x] [ul_y] [lr_x] [lr_y] [path and file name]

ul_x: pixel coordinate for the upper-left corner of the subset area

ul_y: line coordinate for the upper-left corner of the subset area

lr_x: pixel coordinate for the lower-right corner of the subset area

lr_y: line coordinate for the lower-right corner of the subset area

For example:

82 115 254 302 C:\Clip1.pix 
23 56 87 123 C:\Clip2.pix 

Geocoded corners

The subset area is defined by identifying the georeferenced coordinates of the upper-left and lower-right corners. The format for listing the coordinates and output file name is as follows:

[ul_x] [ul_y] [lr_x] [lr_y] [path and file name]

ul_x: x coordinate for the upper-left corner of the subset area using the same projection as the input file

ul_y: y coordinate for the upper-left corner of the subset area using the same projection as the input file

lr_x: x coordinate for the lower-right corner of the subset area using the same projection as the input file

lr_y: y coordinate for the lower-right corner of the subset area using the same projection as the input file

For example:

433000.000 5876000.000 443000.000 5873000.000 C:\Clip1.pix 
432567.973 5876348.000 435685.342 5874343.341 C:\Clip2.pix 

Long/Lat corners

The subset area is defined by identifying the geographic coordinates of the upper-left and lower-right corners. The extents can be defined using various formats, such as those in the following example. For more information, see LONG/LAT INPUT.

[ul_x] [ul_y] [lr_x] [lr_y] [path and file name]

ul_x: longitude value for the upper-left corner of the subset area

ul_y: latitude value for the upper-left corner of the subset area

lr_x: longitude value for the lower-right corner of the subset area

lr_y: latitude value for the lower-right corner of the subset area

For example:

117d46'10"W 33d44'55"N 117d40'10"W 33d38'55"N C:\Clip1.pix 
117d35'22"W 33d40'30"N 117d30'22"W 33d33'30"N C:\Clip2.pix 

Database offset/size

The subset area is defined by identifying the pixel and line coordinates of the upper-left corner and providing the number of pixels in width and the number of lines in length.

[ul_x] [ul_y] [width] [height] [path and file name]

ul_x: pixel coordinate for the upper-left corner of the subset area

ul_y: line coordinate for the upper-left corner of the subset area

width: number of pixels from the upper-left corner to the upper-right corner of the subset area

height: number of lines from the upper-left corner to the lower-left corner of the subset area

For example:

34 56 400 400 C:\Clip1.pix 
135 127 300 100 C:\Clip2.pix

Geocoded offset

The subset area is defined by identifying the georeferenced coordinates of the upper-left corner and providing width and length in the units of measurement of the input file's coordinate system.

[ul_x] [ul_y] [width] [height] [path and file name]

ul_x: x coordinate for the upper-left corner of the subset area using the same projection as the input file

ul_y: y coordinate for the upper-left corner of the subset area using the same projection as the input file

width: distance from the upper-left corner to the upper-right corner of the subset area.

height: distance from the upper-left corner to the lower-left corner of the subset area.

For example:

433000.000 5876000.000 300.000 300.000 C:\Clip1.pix 
32567.973 5876348.000 1500.000 2500.000 C:\Clip2.pix

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.