I'm trying to learn McIDAS-V Scripting. I'm having some troubles.
Question 1. I created a local dataset called "November28". In this directory i have images of all day, but and when i try to acess this dataset using:
Code: Select all
desc=getLocalADDEEntry(dataset='November28',imageType = 'MSG')
And list tha data using:
Code: Select all
directoryList = listADDEImages(localEntry=desc, band=9, unit='TEMP')
print directoryList
I get this message:
Code: Select all
"[{'center-latitude-resolution': 3.01725, 'source-type': 'MSG', 'calibration-type': 'RAW', 'descriptor': u'FD', 'accounting': ('idv', '0'), 'lines': 3712, 'band-count': 1, 'sensor-id': 52, 'calibration-unit-name': None, 'bandNumber': 9, 'centerLocation': (0.0, -0.0), 'directory-block': [96, 4, 52, 110332, 234500, 3, 3, 1, 3712, 3712, 2, 3, 3, 1, 0, 0, 110332, 234500, 256, 0, 0, 0, 0, 0, 1297303328, 1684108385, 543584879, 1830836306, 1230250070, 840966176, 538976288, 538976288, 0, 2368, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110332, 234500, 0, 0, 0, 0, 1297303328, 1380013856, 2, 0, 0, 0, 0, 0, 0, 0, 0, 768, 50], 'calibration-scale-factor': 1, 'day': '2010332', 'url': u'adde://localhost/imagedirectory?&PORT=8112&COMPRESS=gzip&USER=idv&PROJ=0&VERSION=1&DEBUG=false&TRACE=0&GROUP=CCM&DESCRIPTOR=FD&BAND=9&UNIT=TEMP&POS=0', 'center-longitude': -0.0, 'center-longitude-resolution': 2.99704, 'center-latitude': 0.0, 'debug': 'false', 'resolution': (3.01725, 2.99704), 'server': u'localhost', 'imageSize': (3712, 3712), 'unitType': 'TEMP', 'sensor-type': 'MSG-2', 'elements': 3712, 'dataset': u'CCM', 'bandList': [9], [b]'start-time': 2010-11-28 23:45:00Z[/b], 'memo-field': 'MSG data from XRIT V2 ', 'calinfo': ['RAW', 'RAW', 'RAD', 'RADIANCE', 'TEMP', 'TEMPERATURE', 'BRIT', 'BRIGHTNESS'], 'time': '23:45:00', 'nominal-time': 2010-11-28 23:45:00Z, 'bands': [9], 'unitList': ['TEMP']}]"
Note that the start-time 23:45:00Z is actually the final time that i have in the data. What am I doing wrong? Why i cannot access the other time periods?
Question 2. How do i open .nc files using scripting?
Question 3. Is there a simple way to use the predefined formulas (Field Selector->Data Sourcer->Formulas) on scripting?
For a exemplo the Mask Function formula.
Thank you.