필터 지우기
필터 지우기

How to recenter east-west hemisphere in netcdf plot while conserving the coordinates?

조회 수: 2 (최근 30일)
Its been a long time since Ive been trying to figure this out.
The thing is, matlab is not very good (at least with my current knowledge) at conserving usual coordinates (180°W-180°E) in a plot without changing the coordinates (for example, to recenter over the West Pacific, the whole meshgrid changes and became 0 to 360 instead of conserving the 180°W-180°E structure)
Does anyone know how to plot variables and recentering without changing the coordinates numbers?
What usually happens is this:
And I want to plot like this:
  댓글 수: 2
Dyuman Joshi
Dyuman Joshi 2023년 9월 16일
So you want to select an area on the world map for a given range of coordinates?
Or you want to fix the orientation to 180°W-180°E?
It would be helpful if you can provide more information and if you can attach the code you are working with.
Luis Jesús Olvera Lazcano
Luis Jesús Olvera Lazcano 2023년 9월 16일
Hi! Thanks for your answer!
I will delete this question in a few days, as I discovered that I can change what the ticks say with xticklabel and yticklabel :) That way I can "trick" the coordinate system from 0 to 360 to showing actual orientation in °W-°E :)
Nevertheless, thanks for your interest in my question!

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

답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by