Hello,
Since the majority of these functions take at least two commands to apply to the display (the setter and the applier), they aren't documented in the User's Guide. We do have inquiries written up for all of your requests to come up with a single function to set and apply the changes to the display. Until then, your best bet may be looking through the java docs. If you go to the
Scripting page of the User's Guide you'll see links at the bottom for the java docs. Specifically, you'll want to look at:
McIDAS-V
https://www.ssec.wisc.edu/mcidas/software/v/javadoc/current/IDV (the software that McIDAS-V is built on top of)
https://www.unidata.ucar.edu/software/idv/docs/javadoc/index.htmlsetContourInfoParamsapplyContourInfosetSelectRangeEnabledsetSelectRangefor the part with importing Range, I looked at the Jython Library (Tools > Formulas > Jython Library) to see how "range" was set in setEnhancement() and I used that method
getSmoothingTypesetSmoothingTypesetSmoothingFactorFor shading colors, from the Jython Shell you can run:
and you'll see a variety of functions that can be run on the layer. This includes setTextureEnable(). You'll see various other functions listed as well. see() is a pretty powerful function you can run from the Jython Shell to get a list of functions that you can run to operate on the layer or data. You can find documentation for see() on the
Environment page of the McIDAS-V User's Guide.
setColorScale is actually included in the McIDAS-V documentation on the
Modify the Layer Object page. There's one command that has keywords to say where to place the color scale, the font/style, size, and color to use for the labeling. setEnhancement is also on this page.
Generally, when I want to figure how to how to replicate UI functionality through scripting I grep through the source code. You can download the source code from the
McIDAS-V Download page (in the Developer block). To find out how to shade colors in the source code, I cd'd to the directory I downloaded the data to and ran:
I included the colon there since I wanted to make sure my search matched on the exact shading being used in the UI, which includes a colon. This search returned four code matches:
IDV/src/ucar/unidata/idv/control/ColorCrossSectionControl.java:120:
IDV/src/ucar/unidata/idv/control/ColorPlanViewControl.java:155:
IDV/src/ucar/unidata/idv/control/ColorPlanViewControl.java:161:
IDV/src/ucar/unidata/idv/control/TopographyControl.java:158:
I then used vi to see how the color shading was done in the code.
As always, please feel free to ask any questions you have. It's good to see how users in the field are using McIDAS-V.
Thanks again,
Bob