[Go to Previous] [Go to Next]


Create an Object - Imagery

makeLocalADDEEntry - Creates a local ADDE entry in the server table

Usage: localDataset=makeLocalADDEEntry(keywords)
Keywords - required:
dataset= name of dataset - limit of 8 characters
mask= directory containing the files used by the dataset
format= data format of files used within the dataset. Either Full Name or Short Name can be used as valid options
Full Name Short Name
"AMSR-E L 1b" "AMSR"
"AMSR-E L 2a" "AMSE"
"AMSR-E Rain Product" "AMRR"
"LRIT GOES-9" "FSDX_G9"
"LRIT GOES-10" "FSDX_G10"
"LRIT GOES-11" "FSDX_G11"
"LRIT GOES-12" "FSDX_G12"
"LRIT MET-5" "FSDX_M5"
"LRIT MET-7" "FSDX_M7"
"LRIT MTSAT-1R" "FSDX_MT"
"McIDAS Area" "AREA"
"Meteosat OpenMTP" "OMTP"
"Metop AVHRR L 1b" "LV1B_METOP"
"MODIS MOD 02 - Level 1B Calibrated Geolocated Radiances" "MODS"
"MODIS MOD 04 - Aerosol Product" "MOD4"
"MODIS MOD 06 - Cloud Product" "MODX_06"
"MODIS MOD 07 - Atmospheric Profiles" "MODX_07"
"MODIS MOD 28 - Sea Surface Temperature" "MOD8"
"MODIS MOD 35 - Cloud Mask" "MODX_35"
"MODIS MOD R - Corrected Reflectance" "MODR"
"MSG HRIT FD" "MSGT_FD"
"MSG HRIT HRV" "MSGT_HRV"
"MTSAT HRIT" "MTST"
"NOAA AVHRR L 1b" "LV1B_NOAA"
"SSMI" "SMIN"
"TRMM" "TMIN"
"GINI" "GINI"
"Himawari-8"* "Himawari-8"*
"INSAT-3D Imager"* "INSAT3D_IMAGER"*
"INSAT-3D Sounder"* "INSAT3D_SOUNDER"*
"GOES-16 ABI"* "GOES-16 ABI"*

* The Himawari-8, INSAT-3D, and ABI local servers are currently supported on Linux and OS X platforms

Keywords - optional:
imageType= text description of the data used for the local server entry (default=format_dataset)
save= determines if the dataset will be retained from session to session (default = False)
True = retains the dataset between sessions
False = does not retain the dataset between sessions
Example:
dataPath = 'C:\\Users\\myuser\\Data\\AREA'
areaDataset=makeLocalADDEEntry(dataset='AREA', imageType='Area files', save=True, mask=dataPath, format='McIDAS Area')

getLocalADDEEntry - Gets the descriptor for a local ADDE entry

Usage: localDescriptor=getLocalADDEEntry(keywords)
Keywords - required:
dataset= local ADDE entry dataset name
imageType= image type of local ADDE entry
Example:
desc = getLocalADDEEntry(dataset='AREA',imageType='Area files')

loadADDEImage - Requests data from an ADDE Image server - returns one object containing both data and metadata

Usage: Local: dataLocal=loadADDEImage(keywords)
Keywords - required (local):
localEntry= local dataset defined by makeLocalADDEEntry or the descriptor returned from getLocalADDEEntry
Keywords - required (remote):
server= ADDE server
dataset= ADDE dataset group name
descriptor= ADDE dataset descriptor
Keywords - optional:
day= single day ('date 1') or as a day range ('begin date','end date'); default=most recent day included in data
time= ('begin time','end time'); default=most recent time included in data
coordinateSystem= coordinate system to use for retrieving data; default=server dependent
AREA = AREA file coordinates - zero based
LATLON = latitude and longitude coordinates
IMAGE = image coordinates - one based
location= (x,y); default=coordinateSystem dependent
x = AREA line, latitude, or IMAGE line
y = AREA element, longitude, or IMAGE element
place= CENTER places specified location (x,y) at center of panel (default)
ULEFT places specified location (x,y) at upper-left coordinate of panel
band= McIDAS band number; must be specified if requesting data from multi-banded image; default=band in image
unit= calibration unit to request; default = 'BRIT'
position= time relative (negative values) or absolute (positive values) position in the dataset; default=0 (most recent image)
size= number of lines and elements to request. Use "ALL" to obtain the full size of the image; default=(480,640).
mag= magnification of data (line,element), negative number used for sampling data; default=(1,1)
accounting= ('user', 'project number') user and project number required by servers using McIDAS accounting; default = ('idv','0'). If no accounting is defined for a server/dataset requiring it, McIDAS-V will first check the ADDE Data Manager to see if any accounting is defined for the server/dataset before erroring
debug= send debug information to file; default=False
track= True = with real-time data, will wait until the most recent image is complete before pulling it in
False = with real-time data, will not wait until the most recent image is complete before pulling it in. Dependent on when the loadADDEImage command is run, this may result in an incomplete image.
default=False
showUrls= True = Prints the ADDE URL returned from the server to the Jython Shell once the command has completed
False = Does not print the ADDE URL returned from the server to the Jython Shell once the command has completed
default=True
Examples:
dataLocal = loadADDEImage(localEntry=desc, size='ALL', mag=(1,1), unit='BRIT',debug=True)
dataRemote = loadADDEImage(server='adde.ssec.wisc.edu',dataset='RTIMAGES',descriptor='GE-IR',band=4,unit='TEMP')
The data object returned from loadADDEImage contains a variety of key:value pairings with information about the data. The list of keys may vary dependent on the server or type of data, but here is a general list of keys that may be included in the data object returned from loadADDEImage as well as example values:
Key Example Value
accounting ('idv', '0')
debug False
server adde.ssec.wisc.edu
calibration-unit-name None
calibration-scale-factor 1
bands [4]
calinfo []
nominal-time 2016-03-08 15:15:00Z
datetime 2016-03-08 15:15:18Z
directory-block list of the first 64 words of the AREA
source-type 'GVAR'
band-count 1
center-longitude nan
lines 480
center-latitude-resolution nan
day '2016068'
sensor-id 180
satband-band-label 10.7 um IR Surface/Cloud-top Temp
calibration-type 'BRIT'
start-time 2016-03-08 15:15:18Z
bandNumber 4
center-latitude nan
url URL that prints to Jython Shell when data retrieved
center-longitude-resolution nan
memo-field any memos included with data (e.g. the calibration-type)
elements 640
bandList [4]
sensor-type 'GOES 13 imager'
These keys and values can be printed as follows:
print dataRemote['satband-band-label']
A practical use for this satband-band-label key would be to apply it to a layer label. This example adds the key to the layer label along with the %timestamp% macro:
layer.setLayerLabel(dataRemote['satband-band-label']+' %timestamp%')

listADDEImages - Lists data from an ADDE Image server that matches the keywords in the request - returns metadata objects which can be passed into loadADDEImage

Usage: directoryList = listADDEImages(keywords)
Keywords - required (local):
localEntry= local dataset defined by makeLocalADDEEntry or the descriptor returned from getLocalADDEEntry
Keywords - required (remote):
server= ADDE server
dataset= ADDE dataset group name
descriptor= ADDE dataset descriptor
Keywords - optional:
day= single day ('date 1') or as a day range ('begin date','end date'); default=most recent day included in data
time= ('begin time','end time'); default=most recent time included in data
band= McIDAS band number; must be specified if requesting data from multi-banded image; default=band in image
unit= calibration unit to request; default = 'BRIT'
position= time relative (negative values) or absolute (positive values) position in the dataset. Use "ALL" to obtain all positions. Multiple positions are obtained when a negative value is used. For example, if position=-4 is used, then the five most recent images will be obtained (positions -4, -3, -2, -1, and 0 (most recent)); default=0 (most recent image).
accounting= ('user', 'project number') user and project number required by servers using McIDAS accounting; default = ('idv','0'). If no accounting is defined for a server/dataset requiring it, McIDAS-V will first check the ADDE Data Manager to see if any accounting is defined for the server/dataset before erroring
debug= send debug information to file; default=False
showUrls= True = Prints the ADDE URL returned from the server to the Jython Shell once the command has completed
False = Does not print the ADDE URL returned from the server to the Jython Shell once the command has completed
default=True
Examples:
directoryListLocal = listADDEImages(localEntry=desc, band=4, unit='TEMP')
directoryListRemote = listADDEImages(server='adde.ssec.wisc.edu',dataset='RTIMAGES',descriptor='GE-IR',unit='TEMP')
The data object returned from listADDEImages contains a variety of key:value pairings with information about the data. The list of keys may vary dependent on the server or type of data, but here is a general list of keys that may be included in the data object returned from listADDEImages as well as example values:
Key Example Value
server 'adde.ssec.wisc.edu'
calibration-unit-name None
unitList ['RAW', 'TEMP', 'BRIT']
calibration-scale-factor 1
descriptor 'GE-IR'
accounting ('idv', '0')
bands [4]
resolution (4.03157, 4.58618)
calinfo ['RAW', 'RAW', 'TEMP', 'TEMPERATURE', 'BRIT', 'BRIGHTNESS'
unitType 'BRIT'
nominal-time 2016-03-08 15:15:00Z
datetime 2016-03-08 15:15:00Z
directory-block list of the first 64 words of the AREA
source-type 'GVAR'
band-count 1
imageSize (2726, 1732)
center-longitude -71.9527
lines 2726
day '2016068'
center-latitude-resolution 4.03157
sensor-id 180
debug 'false'
centerLocation (-0.0459699, -71.9527)
calibration-type 'BRIT'
start-time 2016-03-08 15:15:18
bandNumber 4
center-latitude -0.0459699
url URL that prints to Jython Shell when data retrieved
center-longitude-resolution 4.58618
memo-field any memos included with data (e.g. the calibration-type)
elements 1732
bandList [4]
time '15:15:00'
sensor-type 'GOES 13 imager'
dataset RTIMAGES
These keys and values can be accessed the same way as defined in loadADDEImage.

listADDEImageTimes - Returns a list of available dates and times of data that match the keywords in the request

Usage: directoryList = listADDEImageTimes(keywords)
Keywords - required (local):
localEntry= local dataset defined by makeLocalADDEEntry or the descriptor returned from getLocalADDEEntry
Keywords - required (remote):
server= ADDE server
dataset= ADDE dataset group name
descriptor= ADDE dataset descriptor
Keywords - optional:
day= single day ('date 1') or as a day range ('begin date','end date'); default=most recent day included in data
time= ('begin time','end time'); default=most recent time included in data
band= McIDAS band number; must be specified if requesting data from multi-banded image; default=band in image
unit= calibration unit to request; default = 'BRIT'
position= time relative (negative values) or absolute (positive values) position in the dataset. Use "ALL" to obtain all positions. Multiple positions are obtained when a negative value is used. For example, if position=-4 is used, then the five most recent images will be obtained (positions -4, -3, -2, -1, and 0 (most recent)); default=0 (most recent image)
accounting= ('user', 'project number') user and project number required by servers using McIDAS accounting; default = ('idv','0'). If no accounting is defined for a server/dataset requiring it, McIDAS-V will first check the ADDE Data Manager to see if any accounting is defined for the server/dataset before erroring
debug= send debug information to file; default=False
showUrls= True = Prints the ADDE URL returned from the server to the Jython Shell once the command has completed
False = Does not print the ADDE URL returned from the server to the Jython Shell once the command has completed
default=True
Examples:
print listADDEImageTimes(localEntry=desc, position=-5)
print listADDEImageTimes(server='adde.ssec.wisc.edu',dataset='RTIMAGES',descriptor='GE-IR',time=('02:00','04:00'),position='ALL')
The data object returned from listADDEImageTimes contains a variety of key:value pairings with information about the data. The list of keys may vary dependent on the server or type of data, but here is a general list of keys that may be included in the data object returned from listADDEImageTimes as well as example values:
Key Example Value
datetime '2016-03-08 15:00:00Z'
time '15:15:00'
day '2016068'
These keys and values can be accessed the same way as defined in loadADDEImage assuming that a data object returned from listADDEImageTimes was defined (e.g. timeList = listADDEImageTimes(...)).

[Go to Previous] [Go to Next]