-------------------------------------------------------------------------------- MODULE ISELECT
-------------------------------------------------------------------------------- REPLACES None, ISELECT is a completely new IMP utility.
--------------------------------------------------------------------------------
ISELECT creates an IFF file to contain features selected from an existing IFF file. Features may be selected on the basis of:
If more than one criterion for selection is specified then all specified criteria have to match for a feature to be copied to the output file. In the event of no features matching the selection criteria ISELECT issues an error message and the empty output file is deleted.
$ ISELECT input-file-spec output-file-spec
Command qualifiers Defaults /[NO]AC[=integer,...] /NOAC /EXCLUDE_FC=integer[,...] /FC=integer[,...] /[NO]FSN=integer[,...] /NOFSN /[NO]INTEGER_HEIGHT[=integer[,...]] /NOINTEGER_HEIGHT /[NO]LAYER=integer[,...] /NOLAYER /[NO]LOG /NOLOG /[NO]MODULUS=integer[,...] /NOMODULUS /[NO]REAL_HEIGHT[=real[,...]] /NOREAL_HEIGHT /[NO]TCC[=integer,...] /NOTCC
--------------------------------------------------------------------------------
_From: input-file-spec _To: output-file-spec
--------------------------------------------------------------------------------
input-file-spec
- specifies the IFF file from which selections are to be made. Any part of the file specification which is not supplied will be taken from the default specification 'LSL$IF:IFF.IFF'.
output-file-spec
- specifies the IFF file which is to be created. Any part of the file specification which is not supplied will be taken from the parsed input file specification. Note that a version number must not be specified for the output file. If a file with the specified name already exists, a new file will be created with the version number incremented by one.
/AC[=integer,...]
/NOAC
- enables selection of all features which contain an AC regardless of AC type. If qualifier arguments are supplied then only ACs of the specified type will be selected. Ranges of AC types may be specified. AC type numbers must lie in the range 1 to 32737. A maximum of 1024 AC type numbers may be specified.
/EXCLUDE_FC=integer[,...]
- excludes selection of all features which have a FC of the specified numbers. Ranges of FCs may be specified. IFF feature codes must lie in the range 0 to 32767. A maximum of 1024 feature codes may be specified.
/FC=integer[,...]
- enables selection of all features which have a FC of the specified numbers. Ranges of FCs may be specified. IFF feature codes must lie in the range 0 to 32767. A maximum of 1024 feature codes may be specified.
/FSN=integer[,...]
/NOFSN
- enables selection of all features which have a FSN of the specified numbers. Ranges of FSNs may be specified. Feature serial numbers must lie in the range 1 to 65535. A maximum of 1024 feature serial numbers may be specified.
/INTEGER_HEIGHT[=int[,...]]
/NOINTEGER_HEIGHT
- enables selection of all features which have an integer (type 2 AC) height of the specified values. Ranges of integer heights may be specified. A maximum of 1024 integer height values may be specified.
/LAYER=integer[,...]
/NOLAYER
- enables selection of all features which lie in the layers with the specified values. Ranges of layers may be specified. IFF layer numbers must lie in the range 1 to 32767. A maximum of 1024 layer numbers may be specified.
/LOG
/NOLOG
- this will result in supplementary messages being sent to SYS$OUTPUT. Supplementary messages are generated when a file is successfully opened and a reassuring message output each time a new IFF layer is found in the IFF file.
/MODULUS=integer[,...]
/NOMODULUS
- enables selection of all features which have a height (type 2 or type 3 AC) exactly divisible by the specified values. This qualifier is only valid with the /INTEGER_HEIGHT, /REAL_HEIGHT, or /AC qualifier to specify the AC type holding the height information. The arguments supplied for /MODULUS must be non-zero positive integer.
/REAL_HEIGHT[=real[,...]]
/NOREAL_HEIGHT
- if specified without any arguments /REAL_HEIGHT enables selection of all features which have an real height (type 3) AC. If arguments are supplied to this qualifier then only features having a real height (in a type 3 AC) of the specified values will be selected. Ranges of real heights may be specified with starting and ending real heights that are separated by a colon, for example:
$ ISELECT/REAL_HEIGHT=230.7:290.8
When specifying more than one range of real heights, separate each range with a comma, for example:
$ ISELECT/REAL_HEIGHT=(240.0:240.9,895.7:899.0)
/TCC[=integer[,...]]
/NOTCC
- enables selection of all features which contain a TS entry regardless of TCC (Text Component) Code. If qualifier arguments are supplied then only features that include TS entries with TCC's of the specified codes will be selected. Ranges of TCC codes may be specified. IFF TCC code values must lie in the range 0 to 32767. A maximum of 1024 TCC codes may be specified on the ISELECT command line.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
ISELECT creates a new IFF file containing features selected from an existing IFF file on the basis of attributes specified by qualifiers on the command line. Features may be selected on the basis of:
If more than one criterion for selection is specified then all specified criteria have to match for a feature to be copied to the output file. In the event of no features matching the selection criteria ISELECT issues an error message and the empty output file is deleted.
An IFF HI (HIstory) entry is written to the output file only if the input IFF file contains an HI entry. Similarly, a type 2 MD entry is only written to the output file if the input file contains a type 2 MD entry.
ISELECT does not automatically copy the contents of layer 0 through to the output IFF file. Layer 0 is used to contain registration mark features and grids. The user must explicitly select layer 0 with the /LAYER qualifier if the contents of layer 0 is to be retained in the output file.
--------------------------------------------------------------------------------
$ ISELECT/FC=0/LAYER=123 W009SW W009SW_LAYER_123ELAPSED: 00:00:17.54 CPU: 0:00:01.57 BUFIO: 16 DIRIO: 68 FAULTS: 123 $
$ ISELECT/EXCLUDE_FC=0/LAYER=123 W009SW W009SW_LAYER_123
$ ISELECT/FC=(0:100)/LAYER=(1:99) LESLEY/LOG
$ ISELECT/LAYER=9/INTEGER_HEIGHT/MODULUS=15
$ ISELECT/AC=(2,4)/LAYER=(1,3,11,80:200) SHEET_190.IFF;1 SELECTIONS/LOG
The input file LSL$IF:SHEET_190.IFF;1 may only lack an EJ entry, or it may be more seriously broken. Use IPATCH to determine whether the file lacks an EJ entry. If it does, use IMEND to try to correctly terminate the file. Re-run ISELECT. If the problem persists then the internal structure of the IFF file is probably corrupt. Try reading it into LITES2 and then EXIT from LITES2. Re-run ISELECT.
$ ISELECT/AC=(2,4)/LAYER=(1,3,11,80:200)
$ ISELECT/AC=(2,4)/LAYER=(1,3,11,80:200) FE/MODULUS=10
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action by the user (except perhaps to verify that the correct options have been selected). Generally they will only appear if /LOG has been specified on the command line.
Explanation: ISELECT is to delete the specified output IFF file because none of the selections made from the input file matched. The output IFF file is therefore empty and useless.
User action: Determine why none of the selections matched data in the input IFF file. Re-run ISELECT with new selections or use a different input IFF file.
LAYER, layer 'integer' found
Explanation: The specified layer has been found in the input file and is being processed.
User action: None.
These messages indicate an error in processing which has caused the program to terminate. The most likely causes are a corrupt or otherwise invalid input IFF file, or an error related to command line processing and file manipulation. With the exception of the IFF file closure errors, no output file will be produced if one of these error messages is output.
Explanation: The specified file cannot be closed. This message will be accompanied by another giving the reason for the failure.
User action: The accompanying message should indicate the cause of the error. If the problem continues, notify the system manager.
ERRCLOUTFL, error closing output IFF file 'file-spec'
Explanation: The specified file cannot be closed. This message will be accompanied by another giving the reason for the failure.
User action: The accompanying message should indicate the cause of the error. If the problem continues, notify the system manager.
IHNOTTWO, /INTEGER_HEIGHT selected without /AC=2
Explanation: You have specified the /INTEGER_HEIGHT command qualifier and /AC=[n...]. Unfortunately you have excluded type 2 ACs from the argument list of /AC resulting in conflicting requirements from the two qualifiers. No matches for /INTEGER_HEIGHT will be found, although there may be features containing type 2 integer height ACs in the input file.
User action: Re-enter the command line, ensuring that the /AC qualifier contains type 2 ACs in its argument list. Alternatively, if you really only require those features which have type 2 height Acs omit the /AC qualifier altogether.
INVALFC, invalid /AC argument - "'integer'" is outside range 0 to 32767
Explanation: IFF AC type numbers lie in the range 0 to 32767.
User action: Respecify the ISELECT command line and ensure that the arguments for the /AC qualifier lies within the specified range.
INVALFC, invalid /FC argument - "'integer'" is outside range 0 to 32767
Explanation: IFF feature codes lie in the range 0 to 32767.
User action: Respecify the ISELECT command line and ensure that the arguments for the /FC qualifier lies within the specified range.
INVALFSN, invalid /FSN argument - "'integer'" is outside range 0 to 32767
Explanation: IFF Feature serial numbers lie in the range 0 to 65535.
User action: Respecify the ISELECT command line and ensure that the arguments for the /FSN qualifier lies within the specified range.
INVALLAY, invalid /LAYER argument - "'integer'" is outside range 0 to 32767
Explanation: IFF layer numbers lie in the range 0 to 32767.
User action: Respecify the ISELECT command line and ensure that the arguments for the /LAYER qualifier lies within the specified range.
INVALMOD, invalid /MODULUS argument - must be integer greater than 0
Explanation: IFF layer numbers lie in the range 0 to 32767.
User action: Respecify the ISELECT command line and ensure that the arguments for the /LAYER qualifier lies within the specified range.
NOHTACMOD, height ACs (AC 2 and 3) deselected for /MODULUS
Explanation: You have selected the /MODULUS qualifier but have excluded all type 2 and 3 height Acs by use of the /AC qualifier.
User action: Re-enter the command line, ensuring that the /AC qualifier contains type 2 and type 3 ACs in its argument list. Alternatively, if you really only require those features which have type 2 or 3 height Acs omit the /AC qualifier altogether.
RHNOTTHREE, /REAL_HEIGHT selected without /AC=3
Explanation: You have specified the /REAL_HEIGHT command qualifier and /AC=[n...]. Unfortunately you have excluded type 3 ACs from the argument list of /AC resulting in conflicting requirements from the two qualifiers. No matches for /REAL_HEIGHT will be found, although there may be features containing type 3 real height ACs in the input file.
User action: Re-enter the command line, ensuring that the /AC qualifier contains type 3 ACs in its argument list. Alternatively, if you really only require those features which have type 3 height Acs omit the /AC qualifier altogether.
UNEXPEOF, unexpected end of IFF file
Explanation: The input IFF file terminated before an IFF EJ entry was encountered.
User action: Use IPATCH to determine whether the file has an EJ entry. If the file lacks an EJ entry use IMEND to correctly terminate the file. Try re-running the IMP utility which failed. If the problem persists then the internal structure of the IFF file is probably corrupt. Try reading it into LITES2 and then EXIT from LITES2. Re-run the IMP utility.
In addition to the above messages which are generated by ISELECT itself, other messages may be produced by the command line interpreter (CLI) and by Laser-Scan libraries. In particular, messages may be generated by the IFF library. These are introduced by '%IFF' and are documented in the IFF library users' guide. In most cases IFF errors will be due to a corrupt input file, and this should be the first area of investigation. If the cause of the error cannot be traced by the user and Laser-Scan are consulted, then the input file should be preserved to facilitate diagnosis.