how to get polar plot for a matrix data(2000*759) for given range(2000*1) and azimuth(1*759) in separate matrix.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have reflectivity data(dbzh2) in a matrix form 2000*759 where 2000 corresponds to each range bin and 800 to each azimuth. also i have 2000*1 range matrix:RANGE and 1*759 azimuth matrix:AZIT. I want to get a polar plot with data for each azimuth value for a given range and for all ranges likewise. This is the following code I tried.
ncid1=netcdf.open('xradar.nc','nowrite');
[ndim, nvar, natt, unlim] = netcdf.inq(ncid1)
[dimname, dimlength] = netcdf.inqDim(ncid1, 0)
[dimname, dimlength] = netcdf.inqDim(ncid1, 1)
[dimname, dimlength] = netcdf.inqDim(ncid1, 2)
[dimname, dimlength] = netcdf.inqDim(ncid1, 3)
[dimname, dimlength] = netcdf.inqDim(ncid1, 4)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,0)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,1)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,2)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,3)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,4)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,5)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,6)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,7)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,8)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,9)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,10)
[varname, xtype, dimid, natt] = netcdf.inqVar(ncid1,11)
[name, xtype, dimid, natt] = netcdf.inqVar(ncid1,12)
[name, xtype, dimid, natt] = netcdf.inqVar(ncid1,13)
[name, xtype, dimid, natt] = netcdf.inqVar(ncid1,14)
[name, xtype, dimid, natt] = netcdf.inqVar(ncid1,15)
sm1 = netcdf.getVar(ncid1,11,[0,0],[10,1]);
dbzh1 = netcdf.getVar(ncid1,15,[0,0],[2000,759]);
dbzh2=(0.5*dbzh1-32);
RANGE = netcdf.getVar(ncid1,9);
AZIMUTH= netcdf.getVar(ncid1,7);
AZIT=AZIMUTH.';
contour(dbzh2)
When I tried contour(dbzh2). I got a plot but no idea of polar plot using matrix data. Hope i was clear in framing my query.
1 comentario
Jan
el 6 de Ag. de 2013
Editada: Jan
el 6 de Ag. de 2013
Adding a new line after each line of code is not exactly what code formatting means in this forum. It seems like you hesitate to follow the "? Help" link, although this has been suggested already. But at least it is possible to read the code now. Thanks.
Respuestas (1)
Ver también
Categorías
Más información sobre Data Distribution Plots 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!