tags: Matlab
高層大氣科學
Common 目標
- 利用水平中性風模式(HWM)以及磁場經驗模式(IGRF)
- 計算全球12月份中性風效應2400UT條件下的分布(300公里高)
先修知識
Introduction 簡介
-
中性風效應
Code 程式碼
- 注意公式中最前方的 ±,正為地磁南半球、負為地磁北半球
clear all
close all
% IGRF-12
fn_inc='igrfgridData-inclination.csv';
fn_dec='igrfgridData-declination.csv';
[lats, lons, incs] = inclination(fn_inc);
[decs] = declination(fn_dec);
%HWM-14 1:NS, 2:EW
vws = zeros([length(lats) 180]);
for i=1:length(lats)
for j=1:180
hwm = atmoshwm(lats(i,j),lons(i,j),300000,'day',365,'seconds',86400,'apindex',80,'model','total','version','14');
dec = deg2rad(decs(i,j));
inc = abs(deg2rad(incs(i,j)));
if incs>0
vws(i,j) = -(hwm(1)*cos(dec) + hwm(2)*sin(dec))*cos(inc)*sin(inc);
else
vws(i,j) = (hwm(1)*cos(dec) + hwm(2)*sin(dec))*cos(inc)*sin(inc);
end
end
end
% fig
[a,b]=contourf(lons,lats,vws,100);
set(b,'edgecolor','none')
colorbar
colormap('jet')
title('Height: 300 km, 2017/12/31 2400UT')
hold on
gmap
print('-dpng', 'vertical HWM effect.png')
沒有留言:
張貼留言