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 properties (Set, Get): CLASSIFICATION, COUNTRY_CODE, INPUT_RASTER, ORIGINATING_STATION_ID, ORIGINATOR_NAME, OUTPUT_DIRECTORY, PRODUCER_CODE, RELEASE_CODE, SCALE

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:

CLASSIFICATION (optional)

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

  • Unclassified(default)
  • Restricted
  • Confidential
  • Secret
  • Top Secret

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_RASTER (optional)

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

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:

  • 1:10,000 City Graphics (1.5m)

  • 1:12,500 City Graphics (1.88m)

  • 1:25,000 City Graphics (3.75m)

  • 1:50,000 TLM Charts (7.5m)

  • 1:100,000 TLM Charts (15m)

  • 1:250,000 JOG Charts (37.5m)

  • 1:250,000 JOG-A Charts (37.5m)

  • 1:500,000 TPC Charts (75m)

  • 1:1,000,000 ONC Charts (150m)

  • 1:2,000,000 JNC Charts (300m)

  • 1:5,000,000 GNC Charts (754m) (default)

Version History


ENVI 5.5.1

Introduced

ENVI 5.6.1

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

API Version


4.3

See Also


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