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

1 Ansicht (letzte 30 Tage)
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 Kommentar
Jan
Jan am 6 Aug. 2013
Bearbeitet: Jan am 6 Aug. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by