I am facing difficulty overlaying lightning location data over a region of the world map.
I have lightning location data where the first column contains longitude and the second column latitude.
I would like to plot these lightning locations as points over a region of the world defined by latitudes 0 to 40 S and longitudes 135 E to 120 W.
The following code provides the desired graphs:
% extract coordinates
data = December; % suppose the coordinates are stored in the variable December
longitude_E = getcolumn(data(1:size(data),:),1);
latitude_N = getcolumn(data(1:size(data),:),2);
% load boundry data
load coast
m_proj('mercator','long',[135 240],'lat',[-40 0]);
axesm('MapProjection','mercator','MapLatLimit',[-40 0],'MapLonLimit',[135 240]);
framem
m_coast('patch',[0.7 0.7 0.7]);
m_grid('box','fancy','tickdir','in');
h=plotm(latitude_N,longitude_E,'.b','MarkerSize',5');
% display boundry information
hp = plotm(lat,long,'k');
set(hp,'LineWidth',2.0);
The figure obtained is