I tried everything to clip NetCDF file with polygon but it is not working

조회 수: 2 (최근 30일)
Pai-Feng Teng
Pai-Feng Teng 2020년 9월 11일
편집: meghannmarie 2020년 9월 18일
Hello,
I have used MATLAB to generate the 720 x 360 x 187 NetCDF data which means to be the global data. Currently, I hope to clip it with the polygon. I reviewed the MATLAB answers but I still cannot find any solution.
I tried to use "inpolygon", but it did not work. It kept telling me "matrix dimensions must agree". I used transpose and they don't work.
I tried to use Interp2 and interp3 (since it is a 3-dimensional data) but neither works.
Please let me know what I should do so that I can clip my NetCDF data with my polygon. Thank you.
  댓글 수: 1
meghannmarie
meghannmarie 2020년 9월 18일
편집: meghannmarie 2020년 9월 18일
Can you provide an example of the polygon and netcdf file? Is your poly a rectangle?
Are you trying to clip data and write a new netcdf or just trying to access that data?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by