-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpathPower.m
44 lines (40 loc) · 1.79 KB
/
pathPower.m
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function pathPower(dateFile, time, myFolder, cassiopeFile, radGrid, dimensions)
% Name:
% pathPower
%
% Author:
% Kyle Ruzic
%
% Date:
% August 24th 2018
%
% Purpose:
% Generates a plot of the power along a given Cassiope track by
% calling the functions pathGen and pathPlotter. This also
% loads the RRI dat file, which contains location and
% measurement data.
%
% Inputs:
% date, time - used to find previously saved generated model
% myFolder - location of the dat folder
% cassiopeFile - location of the file with the Cassiope path data,
% if the file is not in the same directory include
% the entire path
% dimensions - A structure containing the dimensions for which the model
% will be produced, it should be in this form:
%
% dimensions.range = [minLat, maxLat, minLon, maxLon, minAlt, maxAlt];
% dimensions.spacing = [numLat, numLon, numAlt];
% .range - Contains the ranges for which the model will
% be generated
% .spacing - more aptly named size, contains sizes of
% each dimension
dateFile2 = datestr(datenum(dateFile, 'dd-mmmm-yyyy'), 'yyyy-mm-dd');
idlDat = strrep('CASSIOPE-dat/RRI_REPLACE_*.sav', 'REPLACE', dateFile2);
idlDat = dir(idlDat); % this just autocompletes the star, which
% contains time information
idlDat = fullfile('CASSIOPE-dat', idlDat.name);
epop_dat=restore_idl(idlDat,'lowercase','true');
path = pathGen(cassiopeFile);
pathVec = pathPlotter(path, dateFile, time, myFolder, radGrid, dimensions)
simplePlotter(radGrid, myFolder, dateFile, time, dimensions, [100, 200, 1350], pathVec)