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!