how to get polar plot for a matrix data(2000*759) for given range(2000*1) and azimuth(1*759) in separate matrix.

1 次查看(过去 30 天)
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 个评论
Jan
Jan 2013-8-6
编辑:Jan 2013-8-6
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.

请先登录,再进行评论。

回答(1 个)

Bhowmik.U
Bhowmik.U 2013-8-6
@Jan Simon
Respected Sir,
I searched HELP files but couldnt figure out. Sorry.

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by