Using Matlab to tell if cone of uncertainty is in a county
조회 수: 2 (최근 30일)
이전 댓글 표시
I am a VERY basic programmer and I am attempting to use the mapping toolbox to tell whether the "cone of uncertainty" for a hurricane is within a county. My project area is the Gulf Coast of the USA and I would like to know how far from the center of the cone a county within the cone is located. In my code I have initialized the counties and have a cone of uncertainty for Hurricane Irene with the given shape files. How can I use this information to get distances of the counties from the cone.
clc
clear
shape = shaperead('al092011.017A_5day_pgn.shp');
MapLatLimit = [20 45];
MapLonLimit = [-95 -60];
gulfstates = shaperead('usastatelo', 'UseGeoCoords', true, ...
'BoundingBox', [MapLonLimit' MapLatLimit']);
counties = shaperead('tl_2012_us_county.shp', 'UseGeoCoords', true, ...
'BoundingBox', [MapLonLimit' MapLatLimit']);
geoshow(shape, 'FaceColor', 'Red')
geoshow(gulfstates, 'DisplayType', 'polygon', 'FaceColor','none')
geoshow(counties)
title('Irene Cone of Uncertainty')
Thank you for your help!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Map Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!