| <<O>> Difference Topic AntennaPFMSchema (r1.2 - 24 May 2007 - JoeBrandt) |
| Added: | |
| > > |
Configuration data for the antenna pointing/focusing models, residual corrections, beam offsets, optical configuration data, site information and dynamic correction setup is keyed by a configuration name. A configuration name is related to a configuration id, which specifies a row in the configuration_map. The configuration_map has foreign keys into the poiting_gravity_model, focus_gravity_model, site_data, refraction_model, and residual set tables.
The dynamic_model_map, used by the antenna characterization manager, contains a foriegn key into the configuration_id table. This relates the configuration table with the dynamic_model.
I should note that the Active Surface tables (zernike_gravity_model, zernike_gravity_model_coeff) are not related by the configuration table. Active surface configurations
are specified separately, but a similar pattern of named active surface correction models is used. (i.e. the zernike_gravity_model table is analogous to the configuration table, and likewise the zernike_gravity_model_coeff table is analogous to the pointing and focusing tables.)
Example Database QueriesNote: Beware this section is old, and possibly incorrect. |
| Changed: | |
| < < | Select pointing_model_id,focus_model_id,site_data_id from configuration_map where configuration_id=configuration.id limit 1 This query will return id's for pointing, focus tracking, and site data. Select * from receiver_beam_map where configuration_id=configuration.id This returns all 27 receiver_beam_offsets for the given configuration. SELECT receiver_id, beam_id, el_offset,xel_offset, receiver.name, boom_retracted, turret_angle, beam.name AS beam_name, f_x, f_y, f_z, f_xt, f_yt, f_zt, sr_feed1, sr_feed2 FROM receiver_beam_offset, receiver_beam_map, optics_config, receiver, beam WHERE receiver_beam_offset.id = receiver_beam_map.receiver_beam_offset_id AND receiver_beam_map.configuration_id = 1 AND receiver.id = receiver_beam_map.receiver_id AND optics_config.id = receiver_beam_map.optics_config_id AND beam.id = receiver_beam_map.beam_id ORDER BY receiver_id, beam_id ; |
| > > |
SELECT pointing_model_id,focus_model_id,site_data_id
FROM configuration_map
WHERE configuration_id=configuration.id
LIMIT 1
The query above will return id's for pointing, focus tracking, and site data.
The query:
SELECT * FROM receiver_beam_map
WHERE configuration_id=configuration.id
returns all 27 receiver_beam_offsets for the given configuration id.
receiver.name, boom_retracted, turret_angle, beam.name AS beam_name, f_x, f_y, f_z, f_xt, f_yt, f_zt, sr_feed1, sr_feed2 FROM receiver_beam_offset, receiver_beam_map, optics_config, receiver, beam WHERE receiver_beam_offset.id = receiver_beam_map.receiver_beam_offset_id AND receiver_beam_map.configuration_id = 1 AND receiver.id = receiver_beam_map.receiver_id AND optics_config.id = receiver_beam_map.optics_config_id AND beam.id = receiver_beam_map.beam_id ORDER BY receiver_id, beam_id ; |
| <<O>> Difference Topic AntennaPFMSchema (r1.1 - 24 May 2007 - JoeBrandt) |
| Added: | |||||
| > > |
%META:TOPICINFO{author="JoeBrandt" date="1180019460" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="PlanOfRecordC42007"}%
Description of Antenna Pointing Focusing Database SchemaThis is a description of the schema used by the antenna system to manage pointing correction model data. A pictorial of the schema is shown below:
| ||||
| Topic AntennaPFMSchema . { View | Diffs | r1.2 | > | r1.1 | More } |
|
Revision r1.1 - 24 May 2007 - 15:11 GMT - JoeBrandt Revision r1.2 - 24 May 2007 - 17:15 GMT - JoeBrandt |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |