필터 지우기
필터 지우기

Using Matlab to tell if cone of uncertainty is in a county

조회 수: 1 (최근 30일)
Kenneth Morley
Kenneth Morley 2013년 12월 19일
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개)

카테고리

Help CenterFile Exchange에서 Geometric Geodesy에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by