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