Previous: Overview of Data Choosers Next:  Data Sources Table of contents Index Glossary Images Frames U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Java Developer Topics > Data Choosers

6.4.1 Creating a Weather Text Data Chooser
Let's see how we can access weather text bulletins from an ADDE server.
  1. Start the Example IDV
  2. From the Dashboard, select the Data Chooser tab.
  3. Select the URLs Chooser. The IDV can use the ADDE URL syntax to access weather text on a remote server.
  4. Paste the following URL into the text box:
    adde://adde.ucar.edu/wxtext?apro=zfp&astn=mkx&day=2007154
    
    and click the Add Source button.
  5. In this case, the IDV handles the URL as an input stream and by default displays it in the TextDisplayControl. However, having to type in an obscure URL syntax is not the ultimate User Interface.
  6. Exit the IDV.
Let's create a chooser that allows the user to select from some predefined products.
  1. cd to /home/idv/idv/ucar/unidata/apps/example
  2. Open WxTextChooser.java in an editor and lets look what's there.
  3. Exit the editor and compile the class
  4. Copy chooser.xml from the resources directory to the current directory.
    cp resources/chooser.xml .
  5. Open the file in an editor and look at what's defined.
  6. Exit the editor.
  7. Start the IDV.
  8. From the Dashboard, select the Data Chooser tab. Notice that our chooser is there. Select a server, product and station and click the Add Source button. Try this with different products. If you know some codes and station ids, try them as well.
  9. Now let's look at having a custom Data Source to handle our data.

 


Previous: Overview of Data Choosers Next:  Data Sources Table of contents Index Glossary Images Frames Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek

U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Java Developer Topics > Data Choosers