200408012345.goes12ir
Now I create a local database to access the infrared image, the parameters provided can be seen in the image1.
My next step is to load and display the data from a script, for this I have studied the Basic Script Tutorial and reviewed some comments McIDAS-V Support Forums, the code is as follows:
Code: Select all
panel=buildWindow(height=600,width=900)
adde_parms = dict(
debug=True,
server='localhost:8112',
dataset='GOES12',
size=(2600, 1732),
mag=(1, 1),
band=4,
time=('23:45:00', '23:45:00'),
day=('2004214'),
unit='BRIT',
)
ir_metadata,ir_data = getADDEImage(descriptor='8F1ADEB3', **adde_parms)
ir_layer = panel[0].createLayer('Image Display', ir_data)
Descriptor and parameters were obtained in the properties of data(see image2)
After running the script as follows:
[mcidas@localhost McIDAS-V-System]$ ./runMcV -script /home/mcidas/jython/scripts/adde-request.py
I get the following error
Reading system configuration...
sys mem: 3778
mcv flags: -Dvisad.java3d.textureNpot=false -Dvisad.java3d.imageByRef=true -Dvisad.java3d.geometryByRef=true -Didv.3d=true -Didv.sysmem=3778
./jre/bin/java -XX:MaxPermSize=128m -Xmx3022M -XX:MaxPermSize=128m -Djava.ext.dirs="/home/mcidas/McIDAS-V-System/javaextdir":"/home/mcidas/McIDAS-V-System/jre/lib/ext":"/home/mcidas/Library/Java/Extensions" -Dlogback.configurationFile="edu/wisc/ssec/mcidasv/resources/logback.xml" -Dmcv.userpath="/home/mcidas/McIDAS-V" -Dpython.security.respectJavaAccessibility=false -classpath ".:./rsyntaxtextarea-2.0.2.jar:./sysout-over-slf4j-1.0.2.jar:./commons-math-2.2.jar:./mcv_userguide.jar:./log4j-over-slf4j-1.6.1.jar:./logback-classic-0.9.29.jar:./logback-core-0.9.29.jar:./miglayout-4.0-swing.jar:./slf4j-api-1.6.1.jar:./jython.jar:./eventbus-1.3.jar:./mcidasv.jar:./auxdata.jar:./external.jar:./local-idv.jar:./idv.jar:./local-visad.jar:./ncIdv.jar:./visad.jar" -da edu.wisc.ssec.mcidasv.McIDASV -Dvisad.java3d.textureNpot=false -Dvisad.java3d.imageByRef=true -Dvisad.java3d.geometryByRef=true -Didv.3d=true -Didv.sysmem=3778 -userpath "/home/mcidas/McIDAS-V" -script /home/mcidas/jython/scripts/adde-request.py
Traceback (most recent call last):
File "<string>", line 34, in <module>
File "<string>", line 509, in getADDEImage
File "<string>", line 509, in getADDEImage
at visad.data.mcidas.AreaAdapter.<init>(AreaAdapter.java:395)
at visad.data.mcidas.AreaAdapter.<init>(AreaAdapter.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:210)
visad.VisADException: visad.VisADException: Problem with McIDAS AREA file: edu.wisc.ssec.mcidas.AreaFileException: Error opening URL for AreaFile:java.net.ConnectException: Connection refused
How I can fix this error?
Some of the parameters wrong?
If the descriptor is the one that fails, how to obtain the descriptor for this data source?