>  Docs Center  >  ENVI API  >  ENVINITFQuerySensorModels
ENVI

ENVINITFQuerySensorModels

ENVINITFQuerySensorModels

This function returns a string array of available CSM sensor models from the Mensuration Services Program (MSP), given a valid NITF input file and image segment.

This routine is only available with the ENVI Department of Defense (DoD) plug-in. This is a separate package that provides additional support in ENVI for data formats and sensor models that are commonly used by customers in the U.S. defense and intelligence community. It includes features such as Mensuration Services Program (MSP) integration, Community Sensor Model (CSM) support, TFRD, and additional NITF capabilities. Contact your sales representative for more information.

Example


This example shows the use of ENVINITFQuerySensorModels without using an actual file.

; Start the application
e = ENVI(/HEADLESS)
 
; Query the available sensor models for the second image segment
sensorModelList = ENVINITFQuerySensorModels('MyNITFImage.ntf', 1)
Print, sensorModelList
 

Example of the result:

RSM
GENERIC_RPC
ORTHOGRAPHIC

Next, open the NITF raster using a selected sensor model:

raster = e.OpenRaster('MyNITFImage.ntf', SENSOR_MODEL='RSM')

Syntax


Result = ENVINITFQuerySensorModels(inputFile, imageSegmentIndex)

Arguments


inputFile

Specify a fully qualified URI to a valid NITF file.

imageSegmentIndex

Specify a zero-based index number corresponding to an individual image segment. A value of 0 indicates the first image segment.

Methods


None

Properties


None

Keywords


ERROR (optional)

Set this keyword to a named variable that will contain any error message issued during execution of this routine. If no error occurs, the ERROR variable will be set to a null string (''). If an error occurs and the routine is a function, then the function result will be undefined.

When this keyword is not set and an error occurs, ENVI returns to the caller and execution halts. In this case, the error message is contained within !ERROR_STATE and can be caught using IDL's CATCH routine. See IDL Help for more information on !ERROR_STATE and CATCH.

See Manage Errors for more information on error handling in ENVI programming.

Version History


ENVI 5.5, Service Pack 1

Introduced

API Version


3.3

See Also


ENVINITFCSMRasterSpatialRef, ENVINITFMetadata, ENVI::OpenRaster



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us