-
Notifications
You must be signed in to change notification settings - Fork 0
/
density_normalization.m
42 lines (34 loc) · 1.15 KB
/
density_normalization.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
clc;
clear all;
%%
DNS = csvread('/home/simon/Desktop/Bachelor_project/data/DNS_matlab.csv',1,0);
%%
altitude = DNS(:,1);
latitude = DNS(:,2);
longitude = DNS(:,3);
year = 2015;
dayOfYear= DNS(:,12);
UTseconds = DNS(:,13);
f107Average = DNS(:,11);
f107Daily = DNS(:,10);
magneticIndex = 4;
% get the model for the sat
[~,rho_sat] = atmosnrlmsise00(altitude, latitude, longitude, year, dayOfYear, UTseconds, f107Average, f107Daily,4);
%% Altitude
std_altitude = 470*10^3;
[~,rho_std] = atmosnrlmsise00(std_altitude, latitude, longitude, year, dayOfYear, UTseconds, f107Average, f107Daily,4);
nFactor_alt = rho_std(:,6)./rho_sat(:,6);
%% F10.7
std_f107 = 135;
[~,rho_std] = atmosnrlmsise00(altitude, latitude, longitude, year, dayOfYear, UTseconds, std_f107, std_f107,4);
nFactor_f10 = rho_std(:,6)./rho_sat(:,6);
%%
figure(1)
scatter(altitude(1:100:end),nFactor_alt(1:100:end))
title('Normalization Factor Altitude');
figure(2)
scatter((f107Average(1:100:end)+f107Daily(1:100:end))/2,nFactor_f10(1:100:end))
title('Normalization Factor F10');
%%
nfactors=[nFactor_alt,nFactor_f10];
csvwrite('/home/simon/Desktop/Bachelor_project/data/normalization_factors.csv',nfactors)