relocate a part of an image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I am having a matrix of time series of temperature images (lon,lat,time). The given images/matrix (see first attachment) starts from Africa/Europe and moves on to North/South America. My other data sets starts from North/South America and moves on to Africa/Europe See (second/third attachment). For further analysis I need to have same matrix or structure. How can I change the first image so that it looks like the second one. Maybe cropping the end and setting it in the front? Unfortunately, I am not able to do it.
Any help is appreciated! Thanks
6 comentarios
Respuesta aceptada
KSSV
el 5 de Jul. de 2018
ncfile = 'C:\Users\srinivas\Downloads\tmax.2016.nc' ;
lon = ncread(ncfile,'lon') ;
lat = ncread(ncfile,'lat') ;
tmax = ncread(ncfile,'tmax') ;
lon = lon-180 ;
idx = lon>=0 ;
lon(idx) = lon(idx)-360 ;
[lon,idx] = sort(lon) ;
pcolor(lon,lat,tmax(idx,:,1)') ; shading interp ;
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!