![Page 1: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/1.jpg)
Custom Query Tool
![Page 2: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/5.jpg)
Overview of CQT Layout
![Page 6: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/6.jpg)
Overview of CQT Layout
![Page 7: Custom Query Tool. Uses of CQT Access any data in the repository –Meteorological observations –Model data –Hydrology –Etc](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/11.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/14.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/15.jpg)
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](https://reader033.vdocuments.mx/reader033/viewer/2022051516/56649f295503460f94c41c68/html5/thumbnails/16.jpg)
Custom Queries For The DWRS