%--------------------------------------------------------------------------
% This sample file shows how to read X-band XSCV radar NetCDF file in Matlab.
% This program will call the function 'reader_XSCV_radar.m';
%
% This sample is provided as a courtesy. We do not guarantee that we can
% support the code.
%
% Copyright(C)
% Physical Sciences Division (PSD) 
% NOAA Earth System Research Laboratory
% For any question, please contact Rob.Cifelli@noaa.gov or
% Haonan.Chen@noaa.gov
% Oct, 2016
% -------------------------------------------------------------------------

clear all; close all; clc

% please make sure the file is on your path 
filename =  'san_jose.ca-20160306-115519.qc.netcdf';

% radar data and attributes will be stored in data
data = reader_XSCV_radar(filename);

%
% data.az: azimuth in degree (clockwise from zero-north)  
% data.el: radar scan elevation angle in degree
% data.info: radar system attributes, including radar location 
% data.startaz: start azimuth angle of a sweep 
% data.startel: start elevation angle of a sweep 
% data.stopaz: end azimuth angle of a sweep
% data.stopel: end elevation angle of a sweep 
% data.gate: gate width (in millimeters) of each radial 
% data.startrange: start range of each radial 
% data.time: scan time of each radial 
% data.numgate: number of gates 
% data.R: range of each gate 
%
% data.Z: reflectivity,               data.VE: radial velocity 
% data.SW: spectral width             data.ZDR: differential reflectivity 
% data.DP: differential phase         data.RH: correlation coefficient 
% data.NC: normalized coherent power  data.SNR: signal-to-noise ratio
% data.RR: rainfall rate              data.CZ: attenuation corrected reflectivity
% data.CZDR: attenuation corrected differential reflectivity
% data.PDP: filtered differential phase
% data.KDP: specific differential phase
