Welcome to the Harris Geospatial documentation center. Here you will find reference guides and help documents.


  >  Docs Center  >  ENVI API  >  Processing  >  ENVIExportRasterToNITF21Task

ENVIExportRasterToNITF21Task

ENVIExportRasterToNITF21Task

This task exports a raster to NITF 2.1 file format.

Example


; Start the application
e = ENVI()
 
; Open an input file
File = Filepath('qb_boulder_msi', Subdir=['data'], $
  Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('ExportRasterToNITF21')
 
; Define inputs
Task.INPUT_RASTER = Raster
 
; Run the task
Task.Execute
 
; Get the collection of data objects currently available in the Data Manager
DataColl = e.Data
 
; Add the output to the Data Manager
DataColl.Add, Task.OUTPUT_RASTER
 
; Display the result
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)

Syntax


Result = ENVITask('ExportRasterToNITF21')

Input properties (Set, Get): DATA_IGNORE_VALUE, INPUT_RASTER, NITF_COMPRESSION, OUTPUT_RASTER_URI

Output properties (Get only): OUTPUT_RASTER

Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.

Methods


This task inherits the following methods from ENVITask:

AddParameter

Execute

Parameter

ParameterNames

RemoveParameter

Properties


This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

This task also contains the following properties:

DATA_IGNORE_VALUE (optional)

Specify a unique data value for pixels in the output raster that have a non-zero pixel state value. See Raster Pixel State for more information.

INPUT_RASTER (required)

Specify a raster to export to NITF 2.1 format.

NITF_COMPRESSION(optional)

Specifies the NITF compression type. The choices are as follows:

If the data type is byte, integer, unsigned integer, long integer, or unsigned long integer, the following options will work:

  • EPJE Num Lossless
  • EPJE Vis Lossless
  • NPJE Num Lossless
  • NPJE Vis Lossless
  • Transcode EPJE to NPJE: Only works for NITF files that are C8-compressed and are not spatially subsetted
  • Transcode NPJE to EPJE: Only works for NITF files that are C8-compressed and are not spatially subsetted

The following options work for rasters that have one or three bands, and the data type is byte:

  • JPEG DCT (High)
  • JPEG DCT (Low)
  • JPEG DCT (Medium)

The default value is No Compression.

OUTPUT_RASTER

This is an object reference to the output raster, of filetype NITF.

OUTPUT_RASTER_URI (required)

Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER. If you do not specify this property, or set it to an exclamation symbol (!), a temporary file will be created.

Version History


ENVI 5.5

Introduced

API Version


3.3

See Also


ENVITask, ENVITask::Parameter, ENVISubsetRaster, ENVIExportRasterToNITF20Task, ENVIExportRasterToNSIF10Task



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