How can I to plot wind vectors from a netcdf file?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
LUCK RH
el 4 de Nov. de 2016
Comentada: Danielle Lemire
el 28 de Mayo de 2021
Hi everyone!
I am trying to plot wind vectors from netcdf file with quiver.m function, but then
??? Error using ==> quiver at 77 Matrices X and Y must be the same size as Z.
when I enter
quiver(x,y,mat1,mat2);
in
varname1='uwnd';
[lat,lon,time,mat1,var1,unit1]=read_WWNC_var(filename,varname1);
varname2='vwnd';
[lat2,lon2,time2,mat2,var2,unit2]=read_WWNC_var(filename,varname2);
[x,y] = meshgrid(lon,lat);
how cai I to plot it?,
please help!!
3 comentarios
Respuesta aceptada
Walter Roberson
el 5 de Nov. de 2016
2 Dimensional arrays read from netCDF files often come out transposed compared to what you would expect. Try
quiver(x, y, mat1.', mat2.')
2 comentarios
Danielle Lemire
el 28 de Mayo de 2021
LUCK RH did you ever get an answer to your above problem? I have the same issue.
Más respuestas (0)
Ver también
Categorías
Más información sobre Weather and Atmospheric Science en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!