forked from skgironwolf/roost-modeling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetDisplay.m
More file actions
27 lines (21 loc) · 723 Bytes
/
getDisplay.m
File metadata and controls
27 lines (21 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%function to get x,y vectors and Z
function [ x,y,Z] = getDisplay(radar)
rmax = 150000; % 150km
dim = 600; % 600 pixels
%radar data (reflectivity)
sweep = radar.dz.sweeps(1);
% convert to cartesian
[Z, x, y] = sweep2cart(sweep, rmax, dim);
end
%Ignore for now
%get X,Y coordinates just for bounding box around roost
%(X2,Y2)
%use bounding box to create x,y limits for display window
%(xlimit,ylimit)
%get x values and y values for roost label circle
%(xu,yu)
% [RANGE, AZ] = ndgrid(range, az);
% THETA = cmp2pol(AZ);
% [X2, Y2] = pol2cart(THETA, RANGE);
%get azimuth and range from sweep
% [az, range] = get_az_range(sweep);