ExportRasterToCADRG Task

This task exports a three-band byte image to Compressed ARC Digitized Raster Graphics (CADRG) format. You must have an ENVI NITF Module license to write to CADRG format.

Example

; Start the application

e = ENVI(/HEADLESS)

 

; Open an input raster

File = Filepath('qb_boulder_msi', Subdir=['data'], $

  Root_Dir=e.Root_Dir)

Raster = e.OpenRaster(File)

 

; Output to CADRG expects a 3-band byte image

subsetRaster = ENVISubsetRaster(Raster, BANDS=[0,1,2])

byteRaster = ENVILinearPercentStretchRaster(subsetRaster)

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('ExportRasterToCADRG')

 

; Define task inputs

Task.INPUT_RASTER = byteRaster

 

; Run the task

Task.Execute

Syntax

Result = ENVITask('ExportRasterToCADRG')

Input parameters (Set, Get): CLASSIFICATION, COUNTRY_CODE, INPUT_RASTER, ORIGINATING_STATION_ID, ORIGINATOR_NAME, OUTPUT_DIRECTORY, PRODUCER_CODE, RELEASE_CODE, SCALE

Output parameters (Get only): OUTPUT_RASTER

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

Input Parameters

CLASSIFICATION (optional)

Specify a string with the classification level of the CADRG files. The following are valid strings:

COUNTRY_CODE (optional)

Specify a string with the country code of the CADRG files. An example is 'Australia'.

INPUT_RASTER (required)

Specify a three-band georeferenced byte raster to export to CADRG format.

ORIGINATING_STATION_ID (optional)

Specify the station ID of the organization in which the image originated, as defined in the NITF metadata.

ORIGINATOR_NAME (optional)

Specify the originator name as defined in the NITF metadata.

OUTPUT_DIRECTORY (required)

Specify the directory in which the resulting CADRG files will be written. If you do not specify a directory, ENVI will determine a temporary directory in which to export the CADRG files.

PRODUCER_CODE (optional)

Specify a string with the producer code of the CADRG files. The default is 'Non-specified, Imagery formatted to RPF'.

RELEASE_CODE (optional)

Specify a string with the release code of the CADRG files. An example is 'Limited'. The default is 'None'.

SCALE (optional)

Specify a string with the scale of the CADRG files. The following are valid strings:

Output Parameters

OUTPUT_RASTER

This is an array of one or more rasters produced by the export.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

ENVI 5.5.1

Introduced

ENVI 5.6.1

Added the 1:250,000 JOG-A Charts (37.5m) option to SCALE

See Also

ENVITask, ExportRasterToCOG Task, ExportRasterToENVI Task, ExportRasterToJPEG2000 Task, ExportRasterToKMZ Task, ExportRasterToNITF20 Task, ExportRasterToNITF21 Task, ExportRasterToNSIF10 Task, ExportRasterToPNG Task, ExportRasterToTIFF Task