Missing data in an example
6 views (last 30 days)
Show older comments
I'm trying to replicate the matlab example available on the page:
And I can't as I don't have the data called 'astWMMResults_Epoch_2020_decyear_2020.mat' and 'astPlotWMM.mat'
Does anyone know where I can download them?
1 Comment
Star Strider
on 9 Jul 2022
You should have the files if you have the appropriate version of the Aerospace Toolbox.
NOTE — You have R2018a and the file is for the year 2020. MATLAB is good, however it is not prescient!
The code works here —
model_epoch = '2020';
decimal_year = 2020;
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
hDIP = figure;
set(hDIP,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 6, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
hF = figure;
set(hF,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 7, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
.
Answers (0)
See Also
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!