How do I convert irregular lat/lon data from excel to a regular MATLAB grid for viewing as a contour plot?
4 次查看(过去 30 天)
显示 更早的评论
Hey there... I have a large data set with 6 columns in excel ordered by lat/lon (in decimal degrees to 0.01) and other variables such as year, month and most importantly for my survey, trawler fishing time in decimal hours. I want to build a 0.01 by 0.01 degree grid in MATLAB and view density of fishing hours (values between 0 & 8 hrs) as a contour plot. I have limited experience with MATLAB, I can make a grid using meshgrid to the appropriate size (58 x 165 grid cells) and I have imported the excel column data as vectors and as an array. How do I transpose/convert my data to a grid? There are multiple entries in the data for some grid cells and none for others. Help would be greatly appreciated.
0 个评论
回答(1 个)
Chad Greene
2016-6-11
However, a note which you may wish to consider or neglect, depending on the level of accuracy you need: Be aware that 1 degree of latitude is not the same distance along the ground as 1 degree of longitude. Depending on where you are, the effects of gridding under the assumption of equal distance can be negligible, or can become significant.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!