custom query tool. uses of cqt access any data in the repository –meteorological observations...

16
Custom Query Tool

Upload: roberta-scott

Post on 05-Jan-2016

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Custom Query Tool

Page 2: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Uses of CQT

• Access any data in the repository– Meteorological observations– Model data– Hydrology– Etc...

Page 3: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Uses of CQT

• Generate climatology reports

• Create model derived soundings

• Retrieve raw data with QC checks

• Anything else you want it to do

Page 4: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Running CQT

• CQT runs on JRE 1.3.1 or higher

• Installed on DAC

• Java WebStart-able

• Near future plans: Web interface

Page 5: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Overview of CQT Layout

Page 6: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Overview of CQT Layout

Page 7: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Query List Section

• Once a query is selected from the list, the parameter section will update to reflect the selected query.

Page 8: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Query Parameter Section

• The parameter window is located in the upper right corner of CQT. You enter the query constraints in this window.

• Each query has a list of parameters. Each parameter has a dialog window that will allow you to change its value. Parameter names highlighted in

yellow are common to all queries.

Page 9: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Results Table

• If the CQT Results Table is selected for the Output Location, the data will appear in a table in the bottom of the tool. This table can be copied into an Excel spreadsheet.

• Not all queries allow result to be seen in this table.

Page 10: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Build A Query

• Query list is built from an XML file

• SQL Queries are very easy to build

• Other Queries require writing Java code

Page 11: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

SQL Query Example<query className=“edu.ucar.rap.cqt.SQLQuery” name=“DWRS:Retrieve MicroStep Data”> <parameter className=“edu.ucar.rap.cqt.Parameter” name=“sql” default=“SELECT * FROM mis_surface_data WHERE dt > ?” visible=“false” /> <parameter className=“edu.ucar.rap.cqt.DateParameter” fillsSqlQuestionMark=“true” name=“Start Date” default=“NOW” /></query>

Page 12: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Custom Java Query

• Must add query to the XML file

• New query must extend the class edu.ucar.rap.cqt.Query

• Demonstration with MicroStep data

Page 13: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Existing Queries

• Model Derived Soundings (a.k.a. Virtual Soundings)

• Lightning strike maps and diurnal distribution

Page 14: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Virtual Sounding

• Model data is interpolated to an arbitrary latitude and longitude.

• The Virtual Sounding query generates a skew-T plot, as well as a text file with wind and temperature values.

Page 15: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Lightning Strike Map

• The map shows each individual lightning strike that was recorded.

Page 16: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc

Custom Queries For The DWRS