AWIPS Tips: Creating New Scales for EDEX

AWIPS Tips

Welcome back to AWIPS Tips!

In this blog we are going to show you how to create a new projection and add it to the drop down scales menu in CAVE. For this scenario, we are assuming you have access to both CAVE and EDEX servers (ex. running your own EDEX).

CAVE Scales Menu

First, unload all products from CAVE, then pan and zoom to the area you want to create a new scale for.

For this scenario, I’m going to create a new OK/TX region. I’ve zoomed into the area I want my new scale to be:

CAVE Scales

Now we need to save the scale. Open File > New Projection. You can click the “Import Extent From Display” to load what is currently displayed. Additionally, you can manually adjust the projection, extent, and parameters. Rename the scale to what you want to call it. Once you are happy with this click OK.

CAVE Projection

Now open File > Save Display Locally. Save it on your filesystem. I saved the file as OK_TX_Region.xml.

Assuming you are running EDEX on a separate machine, copy this file to the following location on your EDEX server: /awips2/edex/data/utility/cave_static/site/XXX/bundles/scales, where XXX is the localization you are running CAVE as.

NOTE: If you are running multiple EDEX servers together, these changes will go on the EDEX where you are running the “request” service.

We’ve copied the file to the EDEX server, however, this file isn’t quite in the correct format that the scales are looking for so we will have to remove a few lines. Remove line 2 and 3 (the procedure and bundles tag).

CAVE Scales

Then at the bottom of the file, remove the loop properties section, “bundles” tag, layout section, and “procedure” tag.

NOTE: Be sure to leave in the bundle tag (line 179 in this example).

CAVE Scales

Now to add the new scale to the drop down menu you will have to add it to the scalesInfo.xml configuration file (on EDEX). Create a new file in the same directory:

vi /awips2/edex/data/utility/cave_static/site/XXX/bundles/scales/scalesInfo.xml

Copy the contents from this scalesInfo.xml into your new one.

Add the following two lines:

<mapScale displayName="OK TX Region" fileName="OK_TX_Region.xml">
</mapScale>

You can specify what you want the displayName to be, this is what shows up in the drop down menu. Use the filename you just saved.

Save the file, close your CAVE session if open, remove caveData, and then re-open CAVE and you should see your new map listed in the Scales dropdown!

To view archived blogs, visit the AWIPS Tips blog tag, and get notified of the latest updates from the AWIPS team by signing up for the AWIPS mailing list. Questions or suggestions for the team on future topics? Let us know at support-awips@unidata.ucar.edu

This blog was posted in reference to v18.2.1-6 of NSF Unidata AWIPS

Comments:

Post a Comment:
  • HTML Syntax: Allowed
News@Unidata
News and information from the Unidata Program Center
News@Unidata
News and information from the Unidata Program Center

Welcome

FAQs

Developers’ blog

Take a poll!

What if we had an ongoing user poll in here?

Browse By Topic
Browse by Topic
« April 2024
SunMonTueWedThuFriSat
 
5
6
7
8
9
10
11
12
13
14
15
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today