The DownloadFromRepository method downloads packages from the ENVI Repository to a folder on your machine.

Syntax


Result = ENVI.DownloadFromRepository([, Keywords=variable])

Return Value


A string containing the resulting local file once the package has been downloaded.

Keywords


ERROR

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.

NAME

Specify the name of the package to download.

PACKAGE_METADATA

Set this keyword to a variable that will contain a hash with the package metadata associated with the downloaded package.

UID

Specify the Universal Identifier (UID) of the package to download.

URL

Specify the address of the ENVI Repository server to download from. If not set, a server registered on the local machine will be used.

VERSION

When the package is defined by NAME, the latest version of the package will be downloaded by default. If an earlier version of the package is already installed, it will be replaced by the newer version. If a specific version is required, use this keyword to request it.

Version History


ENVI 6.2

Introduced

See Also


ENVI::DeleteLocalRepository, ENVI::EditRepositoryPackage, ENVI::GetLocalPackageInfo, ENVI::PingRepository, ENVI::PublishToRepository, ENVI::RegisterRepository, ENVI::UnregisterRepository