limits of latitude - longitude

4 visualizaciones (últimos 30 días)
Arnav Gupta
Arnav Gupta el 7 de Jun. de 2022
Editada: Yang Liu el 7 de Jun. de 2022
I had a netCDF file comprising of SST data . I plotted a graph using pcolor but now i have to plot same data for a shorter location, i have latitude longitude limits but dont know how to make plot for that specific lat lon limits . Pls help , I am attaching my initial plot
  1 comentario
Arnav Gupta
Arnav Gupta el 7 de Jun. de 2022
I have to plot from (0-360E, 80S-50S)

Iniciar sesión para comentar.

Respuestas (2)

KSSV
KSSV el 7 de Jun. de 2022
Read about interp2.
  4 comentarios
Arnav Gupta
Arnav Gupta el 7 de Jun. de 2022
since latitude has to be from 80S TO 50S shouldnt i put yi = -80:dy:-50 ;
in data it is given latitude is degrees north
KSSV
KSSV el 7 de Jun. de 2022
Thats fine..check the range or format of the lat, lon.

Iniciar sesión para comentar.


Yang Liu
Yang Liu el 7 de Jun. de 2022
Editada: Yang Liu el 7 de Jun. de 2022
% if you just want to show data in specific extent, set the axis limit as follows after ploting all data
ylim([-80 -50])
% if you want to plot data in specific extent, change your pcolor line as follows
sub = longg > -80 & longg < -50;
pcolor(longg(sub),latg(sub),sst_march(sub));

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by