Home > reduc > identifyTelescope.m

identifyTelescope

PURPOSE ^

%%

SYNOPSIS ^

function [antenna_no antenna_name] = identifyTelescope(d)

DESCRIPTION ^

%%
 Quick function to record in the data structure which telescope we are
 using

 name, number : matches paddy's numbering in flagData.m
 ovro, 1
 hartrao, 2
 klerefontein, 3

 Use the longitude in d.antenna0.tracker.siteActual(2,1) to identify
 
ACT 9/7/2014
%%%%%
addpath([home,'/',installeddir,'/constants/'])

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [antenna_no antenna_name] = identifyTelescope(d)
0002 
0003 %%%
0004 % Quick function to record in the data structure which telescope we are
0005 % using
0006 %
0007 % name, number : matches paddy's numbering in flagData.m
0008 % ovro, 1
0009 % hartrao, 2
0010 % klerefontein, 3
0011 %
0012 % Use the longitude in d.antenna0.tracker.siteActual(2,1) to identify
0013 %
0014 %ACT 9/7/2014
0015 %%%%%%
0016 %addpath([home,'/',installeddir,'/constants/'])
0017 telescope_constants; % load standard constants about the telescope
0018 comparison_value=0.008; % comparing doubles so do by using a tolerance
0019 
0020 if(abs(d.antenna0.tracker.siteActual(2,1)-antenna_longitude(1))<comparison_value);
0021     antenna_name ='CBASS-N';
0022     antenna_no   = 1;
0023     disp('identifyTelescope:: CBASS-N data')
0024     
0025 elseif(abs(d.antenna0.tracker.siteActual(2,1)-antenna_longitude(2))<comparison_value);
0026     antenna_name ='HartRAO';
0027     antenna_no   = 2;
0028     disp('identifyTelescope:: HartRAO data')
0029     
0030 elseif(abs(d.antenna0.tracker.siteActual(2,1)-antenna_longitude(3))<comparison_value);
0031     antenna_name ='CBASS-S';
0032     antenna_no   = 3;
0033     disp('identifyTelescope::CBASS-S data')
0034     
0035 else
0036     disp('identifyTelescope:: Cannot identify which telescope you have used!!')
0037     
0038 end
0039

Generated on Sun 14-Jun-2015 17:12:45 by m2html © 2005