[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #ARY-912339]: print surface synoptics



Hello Joris-

> I'm using IDV in an operational setting. I'm displaying wind barbs in IDV.
> I would like the colour of the barbs to depend on the wind speed.
> For example:
> 1 Beaufort - white
> 2 Beaufort - blue
> 3 beaufort - light green
> 4 beaufort - dark green
> 5 beaufort - yellow
> 6 beaufort - orange
> 7 beaufort - red
> Etc.
> 
> How can I do this?

Basically, you would create a color table that represents the Beaufort force 
scale in knots or meters/sec and then color the wind barbs by that.  I've 
attached an IDV color table that uses the color scheme found here:

http://en.wikipedia.org/wiki/Beaufort_scale

setting the range values in knots.

From Color Table Editor (Tools->Color Table Editor menu), use the File->Import 
menu to import the attachment into the IDV.

If you are using synoptic observations, you should have the wind speed as one 
of the parameters.  In the Layout Model editor (Tools->Layout Model Editor), 
select the Layout Model that you are using to display the synoptic reports.  
Right click on the wind barb symbol and open the properties for the wind barb. 
Select the Color By tab.  In the Map Value of: box, type in SPEED.
For the Data Range, set it to be 0 to 65 and set the unit to be knots.  Click 
the Set button next to Color Table and select the Wind->Beaufort Scale color 
table.  Click OK and then select the File->Save menu in the Layout Model 
Editor.  Close the editor and then load in your data using that layout model.
 
Good luck!

Don


Ticket Details
===================
Ticket ID: ARY-912339
Department: Support IDV
Priority: Normal
Status: Open
<?xml version="1.0" encoding="ISO-8859-1"?>
<object class="ucar.unidata.util.ColorTable">
    <property name="Name">
        <string><![CDATA[Beaufort Scale]]></string>
    </property>
    <property name="Table">
        <array class="[F" length="4">
            <parray 
class="float">rO0ABXVyAAJbRgucgYki4AxCAgAAeHAAAABBP38zgj9MzM0/TMzNPxmZmj8ZmZo/GZmaPxmZmj8ZmZo/GZmaPxmZmj8ZmZo/GZmaPxmZmj8ZmZo/GZmaPxmZmj8ZmZo/GZmaPxmZmj8ZmZo/GZmaP0zMzT9MzM0/TMzNP0zMzT9MzM0/TMzNP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/g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gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA=</parray>
        </array>
    </property>
    <property name="Range">
        <object class="ucar.unidata.util.Range">
            <property name="Max">
                <double>65.0</double>
            </property>
            <field name="min">
                <java.lang.Double>0.0</java.lang.Double>
            </field>
        </object>
    </property>
    <property name="Breakpoints">
        <object class="java.util.ArrayList">
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint"/>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.9846153846153847</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>1.0</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.015384615384615385</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.046153846153846156</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.1076923076923077</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.16853932584269662</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.24558587479935795</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.4153846153846154</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.3230769230769231</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.5230769230769231</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.6307692307692307</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.7384615384615385</double>
                    </property>
                </object>
            </method>
            <method name="add">
                <object class="ucar.unidata.util.ColorTable$Breakpoint">
                    <property name="Value">
                        <double>0.8615384615384616</double>
                    </property>
                </object>
            </method>
        </object>
    </property>
    <property name="Category">
        <string><![CDATA[Wind]]></string>
    </property>
    <property name="ScaleFactor">
        <parray 
class="float">rO0ABXVyAAJbRgucgYki4AxCAgAAeHAAAABBP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA=</parray>
    </property>
</object>