NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Dynamic > DSSTestCode
   Changes | Index | Search | Go
The DSS Query and Display Test Code as of 12/11/06

Introduction

Test Cases were generated using the pas database for projects in the GBT06A session were generated. Discussions of how the data was generated is located in DSSTestDatabase. This document will describe how the data is currently being used in query simulations.

What's been implemented

Many queries to the DSS test database were implemented in order to verify the data accuracy after transferring and massaging the data from the pas database to the DSS test database. These are located in the "Queries.py" class. There are a few queries not listed below which use the pas database. The selection rules and ordering are process in the poorly named getCriteria1() method.

How the selected Allocations can be displayed

The QueryPlot? class was written to evaluate the kind of data and data formats the operator would find useful from the query tool. DEAP was used as the quick prototype display tool. Calls to the QueryPlot? objects must be accessed from the DEAP command line. The interface is clucky and I have no intention of leaving it as is for much longer but will document as is.

The Simulation

Execing this file results in the query being run with the selection parameters in the args dictionary. A plot of the qualifying allocations are displayed and 3 lists are displayed, one containing all fixed windows from the current date:time to the current date:time + 8 hours, another list containing a list of the allocations that meet the current selection rules and have the exact weather criteria specfied, the third list contains allocations that meet the current selection rules with the exception that the current wind is better than these allocations require. As soon as TSYS specifications are refined, the same type of rule will be applied to it (the matrix). Three sample displays are shown and described below.

The displays show the prototype output of the query tool with the implemented selection and sorting rules described above.

COLOR Legend: Upcoming (or Past allocations that have not been completed!) Fixed allocations are displayed in Red. Allocations whose wind criteria is a perfect match for the specified weather conditions are displayed in Green. Allocations whose wind criteria can be met with the specified wind conditions and tsys but don't require as good wind conditions as specified are shown in Yellow.

Display 1 show the output for the input conditions of wind = 1.1, tsys=1, obshours = "any", lst = 1.5 and of filter set that selects only allocations with a science grade of A or B. In this example there are 3 fixed allocations coming up but notice the date!. These allocations should have run on 11/29/06 and 11/30/06 but were not completed so they are still shown. There are no allocations in the database that meet the selection rules exactly. The query mechanism increases the specified wind velocity by 1 m/s until at least one allocation is returned that meets the criteria.

QueryToolPrototypeDisplay1.jpg

Display 2 show the output for the input conditions of wind = 4.1, tsys=1, obshours = "any", lst = 1.5 and of filter set that selects only allocations with a science grade of A or B. It is essentially the sample example as display 1 except that the wind velocity was increased such that the formerly "next best" weather conditions are now the exact weather condition. The allocations that were "yellow" are now "green" and a new allocation requiring the "next best" wind condition is displayed.

QueryToolPrototypeDisplay2.jpg

Display 3 show the output for the input conditions of wind = 6.1, tsys=4, obshours = "any", lst = 1.5 and of filter set that selects only allocations with a science grade of A or B. This is pretty "crappy" weather but apparently our database is chock full of allocations requiring the lower frequency receivers. There are no allocations in yellow because the largest value for any minimum wind in the database is 6.1.

QueryToolPrototypeDisplay3.jpg

Display 4 show the output for the input conditions of wind = 1.1, tsys=1, obshours = "nigh", lst = 1.5 and of filter set that selects only allocations with a science grade of A or B. It is essentially the sample example as display 1 except that the obshours is now "night". Qband allocations are selected (the kaband allocations have not been changed to "night" yet).

QueryToolPrototypeDisplay4.jpg

Selection Rules that have not been implemented at all

Selection Rules that have implemented in some fashion

Sorting Rules that have not been implemented

Short List of what else should be done with the Database

Short list of what else should be done with the progam and displays

Testing

* I was very confident in the validity of the query results previous to modifying the code to implement the new wind specification, but I have not had a chance to run many verification tests on the query mechanism since these modification. The query result I have checked against the database have all been good, but it needs more testing.

-- MelindaMello - 11 Dec 2006

Topic DSSTestCode . { Edit | Attach | Ref-By | Printable | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.5 - 14 Dec 2006 - 12:48 GMT - MelindaMello Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.