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

[AWIPS #CDW-823298]: Unit change in AWIPS?



>Is there any way to change the units on different products in AWIPS? For
>example, could I get the HRRR wind gust product in MPH instead of kts?

There is a way to do this, however it is not recommended because if we make 
changes to the styleRules, your local file won't be updated and you won't see 
them. Also, in meteorology most models are by default in knots for wind speeds, 
so it is good to become familiar with that.

Here is how you can change to mph for gridded images:

-Open up the localization perspective 
(http://unidata.github.io/awips2/cave/localization-perspective/#localization-editor)
-Navigate to D2D --> Style Rules --> gridImageryStyleRules.xml
-Expand the options under gridImageryStyleRules.xml
-Right click on "base" and copy to user
-Double click on the User, this will open the file for editing
-You may need to click on "Source" to see the code (in the bottom right)

-Look for this section (around 875 line) and you can change the display units 
to "mph"
   <!--
        * wSp, wSp_avg, wSp_std, WGS
        kt | 1.944 | 0.0 | 0 | 1 | | | 29 | -1 | 5
    -->
    <styleRule>
        <paramLevelMatches>
            <parameter>wSp</parameter>
            <parameter>wSp_avg</parameter>
            <parameter>wSp_std</parameter>
            <parameter>WGS</parameter>
        </paramLevelMatches>
        <imageStyle>
            <displayUnits>mph</displayUnits>
            <defaultColormap>Grid/Gridded Data</defaultColormap>
        </imageStyle>
    </styleRule>

If you want the contours to show up in mph, edit the d2dContourStyleRules.xml 
in the same manor.


Thanks,

Tiffany Meyer
AWIPS Lead Software Engineer
UCAR-Unidata

If you're interested, please feel free to fill out a survey about the support 
you receive: https://forms.gle/tKG5SY9YJw4vBRVXA

Ticket Details
===================
Ticket ID: CDW-823298
Department: Support AWIPS
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.