xarray powered Cf/Radial and ODIM_H5¶
In this example, we read and write Cf/Radial (NetCDF) and ODIM_H5 (HDF5) data files from different sources using an xarray powered data structure.
[1]:
import wradlib as wrl
import warnings
warnings.filterwarnings('ignore')
import matplotlib.pyplot as pl
import numpy as np
import xarray as xr
try:
get_ipython().magic("matplotlib inline")
except:
pl.ion()
from wradlib.io.xarray import CfRadial, OdimH5
Load ODIM_H5 Volume Data¶
[2]:
fpath = 'hdf5/knmi_polar_volume.h5'
f = wrl.util.get_wradlib_data_file(fpath)
cf1 = OdimH5(f, standard='cf', georef=True)
Inspect root group¶
You can use the object dictionary using cf1[‘root’] or the property cf1.root.
The sweep dimension contains the number of scans in this radar volume. Further the dataset consists of variables (location coordinates, time_coverage) and attributes (Conventions, metadata).
[3]:
cf1.root
[3]:
<xarray.Dataset>
Dimensions: (sweep: 14)
Dimensions without coordinates: sweep
Data variables: (12/14)
volume_number int64 0
platform_type <U5 'fixed'
instrument_type <U5 'radar'
primary_axis <U6 'axis_z'
time_coverage_start <U20 '2011-06-10T11:40:02Z'
time_coverage_end <U20 '2011-06-10T11:43:54Z'
... ...
altitude float32 50.0
altitude_agl float64 nan
sweep_group_name (sweep) <U8 'sweep_1' 'sweep_2' ... 'sweep_14'
sweep_fixed_angle (sweep) float32 0.3 0.4 0.8 1.1 ... 12.0 15.0 20.0 25.0
frequency float64 nan
status_xml <U4 'None'
Attributes: (12/19)
Conventions: Cf/Radial
version: H5rad 2.0
title: None
institution: RAD:NL51;PLC:nldhl
references: None
source: None
... ...
ray_times_increase: "true" or "false", assumed "true" if missing. This ...
field_names: array of strings of field names present in this file.
time_coverage_start: copy of time_coverage_start global variable
time_coverage_end: copy of time_coverage_end global variable
simulated data: "true" or "false", assumed "false" if missing. data...
instrument: RAD:NL51;PLC:nldhl- sweep: 14
- volume_number()int640
array(0)
- platform_type()<U5'fixed'
array('fixed', dtype='<U5') - instrument_type()<U5'radar'
array('radar', dtype='<U5') - primary_axis()<U6'axis_z'
array('axis_z', dtype='<U6') - time_coverage_start()<U20'2011-06-10T11:40:02Z'
array('2011-06-10T11:40:02Z', dtype='<U20') - time_coverage_end()<U20'2011-06-10T11:43:54Z'
array('2011-06-10T11:43:54Z', dtype='<U20') - latitude()float3252.95
array(52.95334, dtype=float32)
- longitude()float324.79
array(4.78997, dtype=float32)
- altitude()float3250.0
array(50., dtype=float32)
- altitude_agl()float64nan
array(nan)
- sweep_group_name(sweep)<U8'sweep_1' 'sweep_2' ... 'sweep_14'
array(['sweep_1', 'sweep_2', 'sweep_3', 'sweep_4', 'sweep_5', 'sweep_6', 'sweep_7', 'sweep_8', 'sweep_9', 'sweep_10', 'sweep_11', 'sweep_12', 'sweep_13', 'sweep_14'], dtype='<U8') - sweep_fixed_angle(sweep)float320.3 0.4 0.8 1.1 ... 15.0 20.0 25.0
array([ 0.3, 0.4, 0.8, 1.1, 2. , 3. , 4.5, 6. , 8. , 10. , 12. , 15. , 20. , 25. ], dtype=float32) - frequency()float64nan
array(nan)
- status_xml()<U4'None'
array('None', dtype='<U4')
- Conventions :
- Cf/Radial
- version :
- H5rad 2.0
- title :
- None
- institution :
- RAD:NL51;PLC:nldhl
- references :
- None
- source :
- None
- history :
- None
- comment :
- im/exported using wradlib
- instrument_name :
- None
- site_name :
- name of site where data were gathered
- scan_name :
- name of scan strategy used, if applicable
- scan_id :
- scan strategy id, if applicable. assumed 0 if missing
- platform_is_mobile :
- "true" or "false", assumed "false" if missing
- ray_times_increase :
- "true" or "false", assumed "true" if missing. This is set to true if ray times increase monotonically thoughout all of the sweeps in the volume
- field_names :
- array of strings of field names present in this file.
- time_coverage_start :
- copy of time_coverage_start global variable
- time_coverage_end :
- copy of time_coverage_end global variable
- simulated data :
- "true" or "false", assumed "false" if missing. data in this file are simulated
- instrument :
- RAD:NL51;PLC:nldhl
Inspect sweep group(s)¶
The sweep-groups can be accessed via their respective keys. The dimensions consist of range and time with added coordinates azimuth, elevation, range and time. There will be variables like radar moments (DBZH etc.) and sweep-dependend metadata (like fixed_angle, sweep_mode etc.).
[4]:
cf1['sweep_1']
[4]:
<xarray.Dataset>
Dimensions: (range: 320, time: 360)
Coordinates: (12/14)
sweep_mode <U20 ...
latitude float32 ...
altitude float32 ...
longitude float32 ...
elevation (time) float32 ...
azimuth (time) float32 ...
... ...
z (time, range) float32 ...
gr (time, range) float32 ...
rays (time, range) float32 ...
bins (time, range) float32 ...
x (time, range) float32 ...
* time (time) datetime64[ns] 2011-06-10T11:40:06.694446592 ... 201...
Data variables:
DBZH (time, range) float32 ...
sweep_number int64 ...
follow_mode <U4 ...
prt_mode <U5 ...
fixed_angle float32 ...- range: 320
- time: 360
- sweep_mode()<U20...
array('azimuth_surveillance', dtype='<U20') - latitude()float32...
array(52.95334, dtype=float32)
- altitude()float32...
array(50., dtype=float32)
- longitude()float32...
array(4.78997, dtype=float32)
- elevation(time)float32...
- standard_name :
- ray_elevation_angle
- long_name :
- elevation_angle_from_horizontal_plane
- units :
- degrees
- axis :
- radial_elevation_coordinate
array([0.3, 0.3, 0.3, ..., 0.3, 0.3, 0.3], dtype=float32)
- azimuth(time)float32...
- standard_name :
- ray_azimuth_angle
- long_name :
- azimuth_angle_from_true_north
- units :
- degrees
- axis :
- radial_azimuth_coordinate
array([ 0.5, 1.5, 2.5, ..., 357.5, 358.5, 359.5], dtype=float32)
- range(range)float32500.0 1.5e+03 ... 3.195e+05
- units :
- meters
- standard_name :
- projection_range_coordinate
- long_name :
- range_to_measurement_volume
- spacing_is_constant :
- true
- axis :
- radial_range_coordinate
- meters_to_center_of_first_gate :
- 500.0
- meters_between_gates :
- 1000.0
array([ 500., 1500., 2500., ..., 317500., 318500., 319500.], dtype=float32) - y(time, range)float32...
[115200 values with dtype=float32]
- z(time, range)float32...
[115200 values with dtype=float32]
- gr(time, range)float32...
[115200 values with dtype=float32]
- rays(time, range)float32...
[115200 values with dtype=float32]
- bins(time, range)float32...
[115200 values with dtype=float32]
- x(time, range)float32...
[115200 values with dtype=float32]
- time(time)datetime64[ns]2011-06-10T11:40:06.694446592 .....
- standard_name :
- time
array(['2011-06-10T11:40:06.694446592', '2011-06-10T11:40:06.750002176', '2011-06-10T11:40:06.805557760', ..., '2011-06-10T11:40:06.527779840', '2011-06-10T11:40:06.583335424', '2011-06-10T11:40:06.638891008'], dtype='datetime64[ns]')
- DBZH(time, range)float32...
- IMAGE_VERSION :
- 1.2
- standard_name :
- radar_equivalent_reflectivity_factor_h
- long_name :
- Equivalent reflectivity factor H
- units :
- dBZ
[115200 values with dtype=float32]
- sweep_number()int64...
array(0)
- follow_mode()<U4...
array('none', dtype='<U4') - prt_mode()<U5...
array('fixed', dtype='<U5') - fixed_angle()float32...
array(0.3, dtype=float32)
[5]:
cf1['sweep_1'].DBZH
[5]:
<xarray.DataArray 'DBZH' (time: 360, range: 320)>
[115200 values with dtype=float32]
Coordinates: (12/14)
sweep_mode <U20 ...
latitude float32 ...
altitude float32 ...
longitude float32 ...
elevation (time) float32 ...
azimuth (time) float32 ...
... ...
z (time, range) float32 ...
gr (time, range) float32 ...
rays (time, range) float32 ...
bins (time, range) float32 ...
x (time, range) float32 ...
* time (time) datetime64[ns] 2011-06-10T11:40:06.694446592 ... 2011-...
Attributes:
IMAGE_VERSION: 1.2
standard_name: radar_equivalent_reflectivity_factor_h
long_name: Equivalent reflectivity factor H
units: dBZ- time: 360
- range: 320
- ...
[115200 values with dtype=float32]
- sweep_mode()<U20...
array('azimuth_surveillance', dtype='<U20') - latitude()float32...
array(52.95334, dtype=float32)
- altitude()float32...
array(50., dtype=float32)
- longitude()float32...
array(4.78997, dtype=float32)
- elevation(time)float32...
- standard_name :
- ray_elevation_angle
- long_name :
- elevation_angle_from_horizontal_plane
- units :
- degrees
- axis :
- radial_elevation_coordinate
array([0.3, 0.3, 0.3, ..., 0.3, 0.3, 0.3], dtype=float32)
- azimuth(time)float32...
- standard_name :
- ray_azimuth_angle
- long_name :
- azimuth_angle_from_true_north
- units :
- degrees
- axis :
- radial_azimuth_coordinate
array([ 0.5, 1.5, 2.5, ..., 357.5, 358.5, 359.5], dtype=float32)
- range(range)float32500.0 1.5e+03 ... 3.195e+05
- units :
- meters
- standard_name :
- projection_range_coordinate
- long_name :
- range_to_measurement_volume
- spacing_is_constant :
- true
- axis :
- radial_range_coordinate
- meters_to_center_of_first_gate :
- 500.0
- meters_between_gates :
- 1000.0
array([ 500., 1500., 2500., ..., 317500., 318500., 319500.], dtype=float32) - y(time, range)float32...
[115200 values with dtype=float32]
- z(time, range)float32...
[115200 values with dtype=float32]
- gr(time, range)float32...
[115200 values with dtype=float32]
- rays(time, range)float32...
[115200 values with dtype=float32]
- bins(time, range)float32...
[115200 values with dtype=float32]
- x(time, range)float32...
[115200 values with dtype=float32]
- time(time)datetime64[ns]2011-06-10T11:40:06.694446592 .....
- standard_name :
- time
array(['2011-06-10T11:40:06.694446592', '2011-06-10T11:40:06.750002176', '2011-06-10T11:40:06.805557760', ..., '2011-06-10T11:40:06.527779840', '2011-06-10T11:40:06.583335424', '2011-06-10T11:40:06.638891008'], dtype='datetime64[ns]')
- IMAGE_VERSION :
- 1.2
- standard_name :
- radar_equivalent_reflectivity_factor_h
- long_name :
- Equivalent reflectivity factor H
- units :
- dBZ
Plotting¶
[6]:
cf1['sweep_1'].DBZH.plot.pcolormesh(x='x', y='y')
pl.gca().set_aspect('equal')
[7]:
fig = pl.figure(figsize=(10,8))
cf1['sweep_1'].DBZH.sortby('azimuth').wradlib.plot_ppi(proj='cg', fig=fig)
[7]:
<matplotlib.collections.QuadMesh at 0x7f3eb2ab0d00>
[8]:
import cartopy
import cartopy.crs as ccrs
import cartopy.feature as cfeature
map_trans = ccrs.AzimuthalEquidistant(central_latitude=cf1['sweep_1'].latitude.values,
central_longitude=cf1['sweep_1'].longitude.values)
[9]:
map_proj = ccrs.AzimuthalEquidistant(central_latitude=cf1['sweep_1'].latitude.values,
central_longitude=cf1['sweep_1'].longitude.values)
pm = cf1['sweep_1'].DBZH.wradlib.plot_ppi(proj=map_proj)
ax = pl.gca()
ax.gridlines(crs=map_proj)
print(ax)
< GeoAxes: <cartopy.crs.AzimuthalEquidistant object at 0x7f3ebb08b6d0> >
[10]:
map_proj = ccrs.Mercator(central_longitude=cf1['sweep_1'].longitude.values)
fig = pl.figure(figsize=(10,8))
ax = fig.add_subplot(111, projection=map_proj)
pm = cf1['sweep_1'].DBZH.wradlib.plot_ppi(ax=ax)
ax.gridlines(draw_labels=True)
[10]:
<cartopy.mpl.gridliner.Gridliner at 0x7f3eb2ee0400>
[11]:
import cartopy.feature as cfeature
def plot_borders(ax):
borders = cfeature.NaturalEarthFeature(category='physical',
name='coastline',
scale='10m',
facecolor='none')
ax.add_feature(borders, edgecolor='black', lw=2, zorder=4)
map_proj = ccrs.Mercator(central_longitude=cf1['sweep_1'].longitude.values)
fig = pl.figure(figsize=(10,8))
ax = fig.add_subplot(111, projection=map_proj)
DBZH = cf1['sweep_1'].DBZH
pm = DBZH.where(DBZH > 0).wradlib.plot_ppi(ax=ax)
plot_borders(ax)
ax.gridlines(draw_labels=True)
[11]:
<cartopy.mpl.gridliner.Gridliner at 0x7f3eb2e8db20>
[12]:
import matplotlib.path as mpath
theta = np.linspace(0, 2*np.pi, 100)
center, radius = [0.5, 0.5], 0.5
verts = np.vstack([np.sin(theta), np.cos(theta)]).T
circle = mpath.Path(verts * radius + center)
map_proj = ccrs.AzimuthalEquidistant(central_latitude=cf1['sweep_1'].latitude.values,
central_longitude=cf1['sweep_1'].longitude.values,
)
fig = pl.figure(figsize=(10,8))
ax = fig.add_subplot(111, projection=map_proj)
ax.set_boundary(circle, transform=ax.transAxes)
pm = cf1['sweep_1'].DBZH.wradlib.plot_ppi(proj=map_proj, ax=ax)
ax = pl.gca()
ax.gridlines(crs=map_proj)
[12]:
<cartopy.mpl.gridliner.Gridliner at 0x7f3eb2e58f70>
[13]:
fig = pl.figure(figsize=(10, 8))
proj=ccrs.AzimuthalEquidistant(central_latitude=cf1['sweep_1'].latitude.values,
central_longitude=cf1['sweep_1'].longitude.values)
ax = fig.add_subplot(111, projection=proj)
pm = cf1['sweep_1'].DBZH.wradlib.plot_ppi(ax=ax)
ax.gridlines()
[13]:
<cartopy.mpl.gridliner.Gridliner at 0x7f3eb0285af0>
[14]:
dbz = cf1['sweep_1']
dbz.DBZH.wradlib.plot_ppi()
[14]:
<matplotlib.collections.QuadMesh at 0x7f3eb04e4dc0>
Inspect radar moments¶
The dataarrays can be accessed by key or by attribute. Each dataarray has the datasets dimensions and coordinates of it’s parent dataset. There are attributes connected which are defined by Cf/Radial and/or ODIM_H5 standard.
[15]:
cf1['sweep_1'].DBZH
[15]:
<xarray.DataArray 'DBZH' (time: 360, range: 320)>
[115200 values with dtype=float32]
Coordinates: (12/14)
sweep_mode <U20 ...
latitude float32 ...
altitude float32 ...
longitude float32 ...
elevation (time) float32 ...
azimuth (time) float32 ...
... ...
z (time, range) float32 ...
gr (time, range) float32 ...
rays (time, range) float32 ...
bins (time, range) float32 ...
x (time, range) float32 ...
* time (time) datetime64[ns] 2011-06-10T11:40:06.694446592 ... 2011-...
Attributes:
IMAGE_VERSION: 1.2
standard_name: radar_equivalent_reflectivity_factor_h
long_name: Equivalent reflectivity factor H
units: dBZ- time: 360
- range: 320
- ...
[115200 values with dtype=float32]
- sweep_mode()<U20...
array('azimuth_surveillance', dtype='<U20') - latitude()float32...
array(52.95334, dtype=float32)
- altitude()float32...
array(50., dtype=float32)
- longitude()float32...
array(4.78997, dtype=float32)
- elevation(time)float32...
- standard_name :
- ray_elevation_angle
- long_name :
- elevation_angle_from_horizontal_plane
- units :
- degrees
- axis :
- radial_elevation_coordinate
array([0.3, 0.3, 0.3, ..., 0.3, 0.3, 0.3], dtype=float32)
- azimuth(time)float32...
- standard_name :
- ray_azimuth_angle
- long_name :
- azimuth_angle_from_true_north
- units :
- degrees
- axis :
- radial_azimuth_coordinate
array([ 0.5, 1.5, 2.5, ..., 357.5, 358.5, 359.5], dtype=float32)
- range(range)float32500.0 1.5e+03 ... 3.195e+05
- units :
- meters
- standard_name :
- projection_range_coordinate
- long_name :
- range_to_measurement_volume
- spacing_is_constant :
- true
- axis :
- radial_range_coordinate
- meters_to_center_of_first_gate :
- 500.0
- meters_between_gates :
- 1000.0
array([ 500., 1500., 2500., ..., 317500., 318500., 319500.], dtype=float32) - y(time, range)float32...
[115200 values with dtype=float32]
- z(time, range)float32...
[115200 values with dtype=float32]
- gr(time, range)float32...
[115200 values with dtype=float32]
- rays(time, range)float32...
[115200 values with dtype=float32]
- bins(time, range)float32...
[115200 values with dtype=float32]
- x(time, range)float32...
[115200 values with dtype=float32]
- time(time)datetime64[ns]2011-06-10T11:40:06.694446592 .....
- standard_name :
- time
array(['2011-06-10T11:40:06.694446592', '2011-06-10T11:40:06.750002176', '2011-06-10T11:40:06.805557760', ..., '2011-06-10T11:40:06.527779840', '2011-06-10T11:40:06.583335424', '2011-06-10T11:40:06.638891008'], dtype='datetime64[ns]')
- IMAGE_VERSION :
- 1.2
- standard_name :
- radar_equivalent_reflectivity_factor_h
- long_name :
- Equivalent reflectivity factor H
- units :
- dBZ
[16]:
cf1['sweep_1']
[16]:
<xarray.Dataset>
Dimensions: (range: 320, time: 360)
Coordinates: (12/14)
sweep_mode <U20 ...
latitude float32 ...
altitude float32 ...
longitude float32 ...
elevation (time) float32 ...
azimuth (time) float32 ...
... ...
z (time, range) float32 ...
gr (time, range) float32 ...
rays (time, range) float32 ...
bins (time, range) float32 ...
x (time, range) float32 ...
* time (time) datetime64[ns] 2011-06-10T11:40:06.694446592 ... 201...
Data variables:
DBZH (time, range) float32 ...
sweep_number int64 ...
follow_mode <U4 ...
prt_mode <U5 ...
fixed_angle float32 ...- range: 320
- time: 360
- sweep_mode()<U20...
array('azimuth_surveillance', dtype='<U20') - latitude()float32...
array(52.95334, dtype=float32)
- altitude()float32...
array(50., dtype=float32)
- longitude()float32...
array(4.78997, dtype=float32)
- elevation(time)float32...
- standard_name :
- ray_elevation_angle
- long_name :
- elevation_angle_from_horizontal_plane
- units :
- degrees
- axis :
- radial_elevation_coordinate
array([0.3, 0.3, 0.3, ..., 0.3, 0.3, 0.3], dtype=float32)
- azimuth(time)float32...
- standard_name :
- ray_azimuth_angle
- long_name :
- azimuth_angle_from_true_north
- units :
- degrees
- axis :
- radial_azimuth_coordinate
array([ 0.5, 1.5, 2.5, ..., 357.5, 358.5, 359.5], dtype=float32)
- range(range)float32500.0 1.5e+03 ... 3.195e+05
- units :
- meters
- standard_name :
- projection_range_coordinate
- long_name :
- range_to_measurement_volume
- spacing_is_constant :
- true
- axis :
- radial_range_coordinate
- meters_to_center_of_first_gate :
- 500.0
- meters_between_gates :
- 1000.0
array([ 500., 1500., 2500., ..., 317500., 318500., 319500.], dtype=float32) - y(time, range)float32...
[115200 values with dtype=float32]
- z(time, range)float32...
[115200 values with dtype=float32]
- gr(time, range)float32...
[115200 values with dtype=float32]
- rays(time, range)float32...
[115200 values with dtype=float32]
- bins(time, range)float32...
[115200 values with dtype=float32]
- x(time, range)float32...
[115200 values with dtype=float32]
- time(time)datetime64[ns]2011-06-10T11:40:06.694446592 .....
- standard_name :
- time
array(['2011-06-10T11:40:06.694446592', '2011-06-10T11:40:06.750002176', '2011-06-10T11:40:06.805557760', ..., '2011-06-10T11:40:06.527779840', '2011-06-10T11:40:06.583335424', '2011-06-10T11:40:06.638891008'], dtype='datetime64[ns]')
- DBZH(time, range)float32...
- IMAGE_VERSION :
- 1.2
- standard_name :
- radar_equivalent_reflectivity_factor_h
- long_name :
- Equivalent reflectivity factor H
- units :
- dBZ
[115200 values with dtype=float32]
- sweep_number()int64...
array(0)
- follow_mode()<U4...
array('none', dtype='<U4') - prt_mode()<U5...
array('fixed', dtype='<U5') - fixed_angle()float32...
array(0.3, dtype=float32)
Create simple plot¶
Using xarray features a simple plot can be created like this. Note the sortby('time') method, which sorts the radials by time.
[17]:
cf1['sweep_1'].DBZH.copy().sortby('time').plot(add_labels=False)
[17]:
<matplotlib.collections.QuadMesh at 0x7f3eb2d84970>
[18]:
pm = cf1['sweep_1'].DBZH.wradlib.plot_ppi(proj={'latmin': 33e3})
[19]:
cf1.to_odim('knmi_odim.h5')
cf1.to_cfradial2('knmi_odim_as_cfradial.nc')
Import again¶
[20]:
cf1a = OdimH5('knmi_odim.h5', standard='cf', georef=True)
cf1b = CfRadial('knmi_odim_as_cfradial.nc', georef=True)
[21]:
cf1a['sweep_1']
[21]:
<xarray.Dataset>
Dimensions: (range: 320, time: 360)
Coordinates: (12/14)
sweep_mode <U20 ...
latitude float32 ...
altitude float32 ...
longitude float32 ...
elevation (time) float32 ...
azimuth (time) float32 ...
... ...
z (time, range) float32 ...
gr (time, range) float32 ...
rays (time, range) float32 ...
bins (time, range) float32 ...
x (time, range) float32 ...
* time (time) datetime64[ns] 2011-06-10T11:40:06.694446592 ... 201...
Data variables:
DBZH (time, range) float32 ...
sweep_number int64 ...
follow_mode <U4 ...
prt_mode <U5 ...
fixed_angle float32 ...- range: 320
- time: 360
- sweep_mode()<U20...
array('azimuth_surveillance', dtype='<U20') - latitude()float32...
array(52.95334, dtype=float32)
- altitude()float32...
array(50., dtype=float32)
- longitude()float32...
array(4.78997, dtype=float32)
- elevation(time)float32...
- standard_name :
- ray_elevation_angle
- long_name :
- elevation_angle_from_horizontal_plane
- units :
- degrees
- axis :
- radial_elevation_coordinate
array([0.3, 0.3, 0.3, ..., 0.3, 0.3, 0.3], dtype=float32)
- azimuth(time)float32...
- standard_name :
- ray_azimuth_angle
- long_name :
- azimuth_angle_from_true_north
- units :
- degrees
- axis :
- radial_azimuth_coordinate
array([ 0.5, 1.5, 2.5, ..., 357.5, 358.5, 359.5], dtype=float32)
- range(range)float32500.0 1.5e+03 ... 3.195e+05
- units :
- meters
- standard_name :
- projection_range_coordinate
- long_name :
- range_to_measurement_volume
- spacing_is_constant :
- true
- axis :
- radial_range_coordinate
- meters_to_center_of_first_gate :
- 500.0
- meters_between_gates :
- 1000.0
array([ 500., 1500., 2500., ..., 317500., 318500., 319500.], dtype=float32) - y(time, range)float32...
[115200 values with dtype=float32]
- z(time, range)float32...
[115200 values with dtype=float32]
- gr(time, range)float32...
[115200 values with dtype=float32]
- rays(time, range)float32...
[115200 values with dtype=float32]
- bins(time, range)float32...
[115200 values with dtype=float32]
- x(time, range)float32...
[115200 values with dtype=float32]
- time(time)datetime64[ns]2011-06-10T11:40:06.694446592 .....
- standard_name :
- time
array(['2011-06-10T11:40:06.694446592', '2011-06-10T11:40:06.750002176', '2011-06-10T11:40:06.805557760', ..., '2011-06-10T11:40:06.527779840', '2011-06-10T11:40:06.583335424', '2011-06-10T11:40:06.638891008'], dtype='datetime64[ns]')
- DBZH(time, range)float32...
- IMAGE_VERSION :
- 1.2
- standard_name :
- radar_equivalent_reflectivity_factor_h
- long_name :
- Equivalent reflectivity factor H
- units :
- dBZ
[115200 values with dtype=float32]
- sweep_number()int64...
array(0)
- follow_mode()<U4...
array('none', dtype='<U4') - prt_mode()<U5...
array('fixed', dtype='<U5') - fixed_angle()float32...
array(0.3, dtype=float32)
Check equality¶
[22]:
xr.testing.assert_equal(cf1.root, cf1a.root)
xr.testing.assert_equal(cf1['sweep_1'], cf1a['sweep_1'].sortby("azimuth"))
xr.testing.assert_equal(cf1.root, cf1b.root)
xr.testing.assert_allclose(cf1['sweep_1'], cf1b['sweep_1'].sortby("azimuth"))
Mask some values¶
[23]:
cf1['sweep_1']['DBZH'] = cf1['sweep_1']['DBZH'].where(cf1['sweep_1']['DBZH'] >= 0)
cf1['sweep_1']['DBZH'].sortby('time').plot()
[23]:
<matplotlib.collections.QuadMesh at 0x7f3eb2bc5430>
Load Cf/Radial1 Volume Data¶
[24]:
fpath = 'netcdf/cfrad.20080604_002217_000_SPOL_v36_SUR.nc'
f = wrl.util.get_wradlib_data_file(fpath)
cf2 = CfRadial(f)#, georef=True)
Fix duplicate rays¶
[25]:
for i, key in enumerate(cf2):
num_rays = int(360 // cf2[key].azimuth.diff("time").median())
start_rays = cf2[key].dims["time"] - num_rays
cf2[key] = cf2[key].sortby("time").isel(time=slice(start_rays, start_rays + num_rays ))
Inspect root group¶
[26]:
cf2.root
[26]:
<xarray.Dataset>
Dimensions: (sweep: 9)
Dimensions without coordinates: sweep
Data variables:
volume_number int32 36
platform_type |S32 b'fixed'
primary_axis |S32 b'axis_z'
status_xml |S1 b''
instrument_type |S32 b'radar'
time_coverage_start |S32 b'2008-06-04T00:15:03Z'
time_coverage_end |S32 b'2008-06-04T00:22:17Z'
latitude float64 22.53
longitude float64 120.4
altitude float64 45.0
sweep_fixed_angle (sweep) float32 0.4999 1.099 1.802 ... 6.498 9.102 12.8
sweep_group_name (sweep) <U7 'sweep_1' 'sweep_2' ... 'sweep_8' 'sweep_9'
Attributes: (12/14)
Conventions: CF/Radial instrument_parameters radar_parameters rad...
version: 1.2
title: TIMREX
institution:
references:
source:
... ...
instrument_name: SPOLRVP8
site_name:
scan_name:
scan_id: 0
platform_is_mobile: false
n_gates_vary: false- sweep: 9
- volume_number()int32...
- standard_name :
- data_volume_index_number
array(36, dtype=int32)
- platform_type()|S32...
- standard_name :
- platform_type
- options :
- fixed, vehicle, ship, aircraft_fore, aircraft_aft, aircraft_tail, aircraft_belly, aircraft_roof, aircraft_nose, satellite_orbit, satellite_geostat
array(b'fixed', dtype='|S32')
- primary_axis()|S32...
- standard_name :
- primary_axis_of_rotation
- options :
- axis_z, axis_y, axis_x
array(b'axis_z', dtype='|S32')
- status_xml()|S1...
- standard_name :
- status_xml
array(b'', dtype='|S1')
- instrument_type()|S32...
- standard_name :
- type_of_instrument
- options :
- radar, lidar
- meta_group :
- instrument_parameters
array(b'radar', dtype='|S32')
- time_coverage_start()|S32...
- standard_name :
- data_volume_start_time_utc
- comment :
- ray times are relative to start time in secs
array(b'2008-06-04T00:15:03Z', dtype='|S32')
- time_coverage_end()|S32...
- standard_name :
- data_volume_end_time_utc
array(b'2008-06-04T00:22:17Z', dtype='|S32')
- latitude()float64...
- standard_name :
- latitude
- units :
- degrees_north
array(22.526699)
- longitude()float64...
- standard_name :
- longitude
- units :
- degrees_east
array(120.433502)
- altitude()float64...
- standard_name :
- altitude
- units :
- meters
- positive :
- up
array(45.000002)
- sweep_fixed_angle(sweep)float32...
- standard_name :
- beam_target_fixed_angle
- units :
- degrees
array([ 0.4999, 1.0986, 1.8018, 2.5983, 3.598 , 4.7021, 6.4984, 9.1022, 12.7991], dtype=float32) - sweep_group_name(sweep)<U7'sweep_1' 'sweep_2' ... 'sweep_9'
array(['sweep_1', 'sweep_2', 'sweep_3', 'sweep_4', 'sweep_5', 'sweep_6', 'sweep_7', 'sweep_8', 'sweep_9'], dtype='<U7')
- Conventions :
- CF/Radial instrument_parameters radar_parameters radar_calibration geometry_correction
- version :
- 1.2
- title :
- TIMREX
- institution :
- references :
- source :
- history :
- comment :
- instrument_name :
- SPOLRVP8
- site_name :
- scan_name :
- scan_id :
- 0
- platform_is_mobile :
- false
- n_gates_vary :
- false
Inspect sweep group(s)¶
[27]:
cf2['sweep_1']
[27]:
<xarray.Dataset>
Dimensions: (range: 996, time: 480)
Coordinates:
sweep_mode <U20 'azimuth_surveillance'
* time (time) datetime64[ns] 2008-06-04T00:15:03 ... 2008-06...
* range (range) float32 150.0 300.0 ... 1.492e+05 1.494e+05
azimuth (time) float32 123.0 123.8 124.5 ... 120.8 121.5 122.2
elevation (time) float32 0.1648 0.1648 0.2142 ... 0.5109 0.5109
longitude float64 120.4
latitude float64 22.53
altitude float64 45.0
Data variables: (12/16)
sweep_number int32 0
polarization_mode |S32 b'not_set'
prt_mode |S32 b'not_set'
follow_mode |S32 b'not_set'
fixed_angle float32 0.4999
target_scan_rate float32 -9.999e+03
... ...
antenna_transition (time) int8 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0
n_samples (time) int32 192 192 192 192 192 ... 192 192 192 192 192
r_calib_index (time) int8 -1 -1 -1 -1 -1 -1 -1 ... -1 -1 -1 -1 -1 -1
scan_rate (time) float32 -3.277e+04 -3.277e+04 ... -3.277e+04
DBZ (time, range) float32 ...
VR (time, range) float32 ...- range: 996
- time: 480
- sweep_mode()<U20'azimuth_surveillance'
array('azimuth_surveillance', dtype='<U20') - time(time)datetime64[ns]2008-06-04T00:15:03 ... 2008-06-...
- standard_name :
- time
- long_name :
- time in seconds since volume start
- comment :
- times are relative to the volume start_time
array(['2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', ..., '2008-06-04T00:15:49.000000000', '2008-06-04T00:15:50.000000000', '2008-06-04T00:15:50.000000000'], dtype='datetime64[ns]') - range(range)float32150.0 300.0 ... 1.492e+05 1.494e+05
- standard_name :
- range_to_center_of_measurement_volume
- long_name :
- Range from instrument to center of gate
- units :
- meters
- spacing_is_constant :
- true
- meters_to_center_of_first_gate :
- 150.00000596046448
- meters_between_gates :
- 150.00000596046448
array([ 150. , 300. , 450.00003, ..., 149100. , 149250. , 149400. ], dtype=float32) - azimuth(time)float32...
- standard_name :
- beam_azimuth_angle
- units :
- degrees
array([123. , 123.75, 124.5 , ..., 120.75, 121.5 , 122.25], dtype=float32)
- elevation(time)float32...
- standard_name :
- beam_elevation_angle
- units :
- degrees
- positive :
- up
array([0.1648, 0.1648, 0.2142, ..., 0.5109, 0.5109, 0.5109], dtype=float32)
- longitude()float64...
- standard_name :
- longitude
- units :
- degrees_east
array(120.433502)
- latitude()float64...
- standard_name :
- latitude
- units :
- degrees_north
array(22.526699)
- altitude()float64...
- standard_name :
- altitude
- units :
- meters
- positive :
- up
array(45.000002)
- sweep_number()int32...
- standard_name :
- sweep_index_number_0_based
array(0, dtype=int32)
- polarization_mode()|S32...
- standard_name :
- polarization_mode_for_sweep
- options :
- horizontal, vertical, hv_alt, hv_sim, circular
- meta_group :
- radar_parameters
array(b'not_set', dtype='|S32')
- prt_mode()|S32...
- standard_name :
- transmit_pulse_mode
- options :
- fixed, staggered, dual
- meta_group :
- radar_parameters
array(b'not_set', dtype='|S32')
- follow_mode()|S32...
- standard_name :
- follow_mode_for_scan_strategy
- options :
- none, sun, vehicle, aircraft, target, manual
- meta_group :
- instrument_parameters
array(b'not_set', dtype='|S32')
- fixed_angle()float32...
- standard_name :
- beam_target_fixed_angle
- units :
- degrees
array(0.4999, dtype=float32)
- target_scan_rate()float32...
- standard_name :
- target_scan_rate_for_sweep
- units :
- degrees per second
array(-9999., dtype=float32)
- pulse_width(time)timedelta64[ns]...
- standard_name :
- transmitter_pulse_width
- meta_group :
- instrument_parameters
array([0, 0, 0, ..., 0, 0, 0], dtype='timedelta64[ns]')
- prt(time)timedelta64[ns]...
- standard_name :
- pulse_repetition_frequency
- meta_group :
- instrument_parameters
array([-9999000000000, -9999000000000, -9999000000000, ..., -9999000000000, -9999000000000, -9999000000000], dtype='timedelta64[ns]') - nyquist_velocity(time)float32...
- standard_name :
- unambiguous_doppler_velocity
- units :
- meters per second
- meta_group :
- instrument_parameters
array([26.925, 26.925, 26.925, ..., 26.925, 26.925, 26.925], dtype=float32)
- unambiguous_range(time)float32...
- standard_name :
- unambiguous_range
- units :
- meters
- meta_group :
- instrument_parameters
array([150000., 150000., 150000., ..., 150000., 150000., 150000.], dtype=float32) - antenna_transition(time)int8...
- standard_name :
- antenna_is_in_transition_between_sweeps
- comment :
- 1 if antenna is in transition, 0 otherwise
array([0, 0, 0, ..., 0, 0, 0], dtype=int8)
- n_samples(time)int32...
- standard_name :
- number_of_samples_used_to_compute_moments
- meta_group :
- instrument_parameters
array([192, 192, 192, ..., 192, 192, 192], dtype=int32)
- r_calib_index(time)int8...
- standard_name :
- calibration_data_array_index_per_ray
- meta_group :
- radar_calibration
- comment :
- This is the index for the calibration which applies to this ray
array([-1, -1, -1, ..., -1, -1, -1], dtype=int8)
- scan_rate(time)float32...
- standard_name :
- antenna_angle_scan_rate
- units :
- degrees per second
- meta_group :
- instrument_parameters
array([-32768., -32768., -32768., ..., -32768., -32768., -32768.], dtype=float32) - DBZ(time, range)float32...
- long_name :
- Computed Horizontal Co-polar Reflectivit
- standard_name :
- equivalent_reflectivity_factor
- units :
- dBZ
- threshold_field_name :
- threshold_value :
- -9999.0
- sampling_ratio :
- 1.0
- grid_mapping :
- grid_mapping
[478080 values with dtype=float32]
- VR(time, range)float32...
- long_name :
- Computed Velocity
- standard_name :
- radial_velocity_of_scatterers_away_from_instrument
- units :
- m/s
- threshold_field_name :
- threshold_value :
- -9999.0
- sampling_ratio :
- 1.0
- grid_mapping :
- grid_mapping
[478080 values with dtype=float32]
Inspect radar moments¶
[28]:
cf2['sweep_1'].DBZ
[28]:
<xarray.DataArray 'DBZ' (time: 480, range: 996)>
[478080 values with dtype=float32]
Coordinates:
sweep_mode <U20 'azimuth_surveillance'
* time (time) datetime64[ns] 2008-06-04T00:15:03 ... 2008-06-04T00:1...
* range (range) float32 150.0 300.0 450.0 ... 1.492e+05 1.494e+05
azimuth (time) float32 123.0 123.8 124.5 125.2 ... 120.8 121.5 122.2
elevation (time) float32 0.1648 0.1648 0.2142 ... 0.5109 0.5109 0.5109
longitude float64 120.4
latitude float64 22.53
altitude float64 45.0
Attributes:
long_name: Computed Horizontal Co-polar Reflectivit
standard_name: equivalent_reflectivity_factor
units: dBZ
threshold_field_name:
threshold_value: -9999.0
sampling_ratio: 1.0
grid_mapping: grid_mapping- time: 480
- range: 996
- ...
[478080 values with dtype=float32]
- sweep_mode()<U20'azimuth_surveillance'
array('azimuth_surveillance', dtype='<U20') - time(time)datetime64[ns]2008-06-04T00:15:03 ... 2008-06-...
- standard_name :
- time
- long_name :
- time in seconds since volume start
- comment :
- times are relative to the volume start_time
array(['2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', ..., '2008-06-04T00:15:49.000000000', '2008-06-04T00:15:50.000000000', '2008-06-04T00:15:50.000000000'], dtype='datetime64[ns]') - range(range)float32150.0 300.0 ... 1.492e+05 1.494e+05
- standard_name :
- range_to_center_of_measurement_volume
- long_name :
- Range from instrument to center of gate
- units :
- meters
- spacing_is_constant :
- true
- meters_to_center_of_first_gate :
- 150.00000596046448
- meters_between_gates :
- 150.00000596046448
array([ 150. , 300. , 450.00003, ..., 149100. , 149250. , 149400. ], dtype=float32) - azimuth(time)float32123.0 123.8 124.5 ... 121.5 122.2
- standard_name :
- beam_azimuth_angle
- units :
- degrees
array([123. , 123.75, 124.5 , ..., 120.75, 121.5 , 122.25], dtype=float32)
- elevation(time)float320.1648 0.1648 ... 0.5109 0.5109
- standard_name :
- beam_elevation_angle
- units :
- degrees
- positive :
- up
array([0.1648, 0.1648, 0.2142, ..., 0.5109, 0.5109, 0.5109], dtype=float32)
- longitude()float64120.4
- standard_name :
- longitude
- units :
- degrees_east
array(120.433502)
- latitude()float6422.53
- standard_name :
- latitude
- units :
- degrees_north
array(22.526699)
- altitude()float6445.0
- standard_name :
- altitude
- units :
- meters
- positive :
- up
array(45.000002)
- long_name :
- Computed Horizontal Co-polar Reflectivit
- standard_name :
- equivalent_reflectivity_factor
- units :
- dBZ
- threshold_field_name :
- threshold_value :
- -9999.0
- sampling_ratio :
- 1.0
- grid_mapping :
- grid_mapping
Create simple plot¶
[29]:
cf2['sweep_1'].DBZ.plot()
[29]:
<matplotlib.collections.QuadMesh at 0x7f3eb2e640d0>
[30]:
cf2['sweep_1'].DBZ.pipe(wrl.georef.georeference_dataset).plot.pcolormesh(x='x', y='y', add_labels=False)
pl.gca().set_aspect('equal')
Use wradlib DataArray connector¶
[31]:
pm = cf2['sweep_1'].DBZ.pipe(wrl.georef.georeference_dataset).wradlib.plot_ppi()
[32]:
pm = cf2['sweep_1'].DBZ.pipe(wrl.georef.georeference_dataset).wradlib.plot_ppi(proj='cg')
Export data to Cf/Radial2 and ODIM_H5¶
[33]:
cf2.to_cfradial2('timrex_cfradial2.nc')
cf2.to_odim('timrex_cfradial_as_odim.h5')
[34]:
cf2["sweep_1"]
[34]:
<xarray.Dataset>
Dimensions: (range: 996, time: 480)
Coordinates:
sweep_mode <U20 'azimuth_surveillance'
* time (time) datetime64[ns] 2008-06-04T00:15:03 ... 2008-06...
* range (range) float32 150.0 300.0 ... 1.492e+05 1.494e+05
azimuth (time) float32 123.0 123.8 124.5 ... 120.8 121.5 122.2
elevation (time) float32 0.1648 0.1648 0.2142 ... 0.5109 0.5109
longitude float64 120.4
latitude float64 22.53
altitude float64 45.0
Data variables: (12/16)
sweep_number int32 0
polarization_mode |S32 b'not_set'
prt_mode |S32 b'not_set'
follow_mode |S32 b'not_set'
fixed_angle float32 0.4999
target_scan_rate float32 -9.999e+03
... ...
antenna_transition (time) int8 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0
n_samples (time) int32 192 192 192 192 192 ... 192 192 192 192 192
r_calib_index (time) int8 -1 -1 -1 -1 -1 -1 -1 ... -1 -1 -1 -1 -1 -1
scan_rate (time) float32 -3.277e+04 -3.277e+04 ... -3.277e+04
DBZ (time, range) float32 -6.079 10.45 ... -2.259 0.4694
VR (time, range) float32 26.71 24.83 ... -20.84 17.25- range: 996
- time: 480
- sweep_mode()<U20'azimuth_surveillance'
array('azimuth_surveillance', dtype='<U20') - time(time)datetime64[ns]2008-06-04T00:15:03 ... 2008-06-...
- standard_name :
- time
- long_name :
- time in seconds since volume start
- comment :
- times are relative to the volume start_time
array(['2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', '2008-06-04T00:15:03.000000000', ..., '2008-06-04T00:15:49.000000000', '2008-06-04T00:15:50.000000000', '2008-06-04T00:15:50.000000000'], dtype='datetime64[ns]') - range(range)float32150.0 300.0 ... 1.492e+05 1.494e+05
- standard_name :
- range_to_center_of_measurement_volume
- long_name :
- Range from instrument to center of gate
- units :
- meters
- spacing_is_constant :
- true
- meters_to_center_of_first_gate :
- 150.00000596046448
- meters_between_gates :
- 150.00000596046448
array([ 150. , 300. , 450.00003, ..., 149100. , 149250. , 149400. ], dtype=float32) - azimuth(time)float32123.0 123.8 124.5 ... 121.5 122.2
- standard_name :
- beam_azimuth_angle
- units :
- degrees
array([123. , 123.75, 124.5 , 125.25, 126. , 126.75, 127.5 , 128.25, 129. , 129.75, 130.5 , 131.25, 132. , 132.75, 133.5 , 134.25, 135. , 135.75, 136.5 , 137.25, 138. , 138.75, 139.5 , 140.25, 141. , 141.75, 142.5 , 143.25, 144. , 144.75, 145.5 , 146.25, 147. , 147.75, 148.5 , 149.25, 150. , 150.75, 151.5 , 152.25, 153. , 153.75, 154.5 , 155.25, 156. , 156.75, 157.5 , 158.25, 159. , 159.75, 160.5 , 161.25, 162. , 162.75, 163.5 , 164.25, 165. , 165.75, 166.5 , 167.25, 168. , 168.75, 169.5 , 170.25, 171. , 171.75, 172.5 , 173.25, 174. , 174.75, 175.5 , 176.25, 177. , 177.75, 178.5 , 179.25, 180. , 180.75, 181.5 , 182.25, 183. , 183.75, 184.5 , 185.25, 186. , 186.75, 187.5 , 188.25, 189. , 189.75, 190.5 , 191.25, 192. , 192.75, 193.5 , 194.25, 195. , 195.75, 196.5 , 197.25, 198. , 198.75, 199.5 , 200.25, 201. , 201.75, 202.5 , 203.25, 204. , 204.75, 205.5 , 206.25, 207. , 207.75, 208.5 , 209.25, 210. , 210.75, 211.5 , 212.25, 213. , 213.75, 214.5 , 215.25, 216. , 216.75, 217.5 , 218.25, 219. , 219.75, 220.5 , 221.25, 222. , 222.75, 223.5 , 224.25, 225. , 225.75, 226.5 , 227.25, 228. , 228.75, 229.5 , 230.25, 231. , 231.75, 232.5 , 233.25, 234. , 234.75, 235.5 , 236.25, 237. , 237.75, 238.5 , 239.25, 240. , 240.75, 241.5 , 242.25, ... 9. , 9.75, 10.5 , 11.25, 12. , 12.75, 13.5 , 14.25, 15. , 15.75, 16.5 , 17.25, 18. , 18.75, 19.5 , 20.25, 21. , 21.75, 22.5 , 23.25, 24. , 24.75, 25.5 , 26.25, 27. , 27.75, 28.5 , 29.25, 30. , 30.75, 31.5 , 32.25, 33. , 33.75, 34.5 , 35.25, 36. , 36.75, 37.5 , 38.25, 39. , 39.75, 40.5 , 41.25, 42. , 42.75, 43.5 , 44.25, 45. , 45.75, 46.5 , 47.25, 48. , 48.75, 49.5 , 50.25, 51. , 51.75, 52.5 , 53.25, 54. , 54.75, 55.5 , 56.25, 57. , 57.75, 58.5 , 59.25, 60. , 60.75, 61.5 , 62.25, 63. , 63.75, 64.5 , 65.25, 66. , 66.75, 67.5 , 68.25, 69. , 69.75, 70.5 , 71.25, 72. , 72.75, 73.5 , 74.25, 75. , 75.75, 76.5 , 77.25, 78. , 78.75, 79.5 , 80.25, 81. , 81.75, 82.5 , 83.25, 84. , 84.75, 85.5 , 86.25, 87. , 87.75, 88.5 , 89.25, 90. , 90.75, 91.5 , 92.25, 93. , 93.75, 94.5 , 95.25, 96. , 96.75, 97.5 , 98.25, 99. , 99.75, 100.5 , 101.25, 102. , 102.75, 103.5 , 104.25, 105. , 105.75, 106.5 , 107.25, 108. , 108.75, 109.5 , 110.25, 111. , 111.75, 112.5 , 113.25, 114. , 114.75, 115.5 , 116.25, 117. , 117.75, 118.5 , 119.25, 120. , 120.75, 121.5 , 122.25], dtype=float32) - elevation(time)float320.1648 0.1648 ... 0.5109 0.5109
- standard_name :
- beam_elevation_angle
- units :
- degrees
- positive :
- up
array([0.1648, 0.1648, 0.2142, 0.2417, 0.2911, 0.3571, 0.4175, 0.4779, 0.5054, 0.5274, 0.5164, 0.5109, 0.5274, 0.5219, 0.5164, 0.5219, 0.5164, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, 0.5219, ... 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5219, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5164, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109, 0.5109], dtype=float32) - longitude()float64120.4
- standard_name :
- longitude
- units :
- degrees_east
array(120.4335022)
- latitude()float6422.53
- standard_name :
- latitude
- units :
- degrees_north
array(22.52669907)
- altitude()float6445.0
- standard_name :
- altitude
- units :
- meters
- positive :
- up
array(45.00000179)
- sweep_number()int320
- standard_name :
- sweep_index_number_0_based
array(0, dtype=int32)
- polarization_mode()|S32b'not_set'
- standard_name :
- polarization_mode_for_sweep
- options :
- horizontal, vertical, hv_alt, hv_sim, circular
- meta_group :
- radar_parameters
array(b'not_set', dtype='|S32')
- prt_mode()|S32b'not_set'
- standard_name :
- transmit_pulse_mode
- options :
- fixed, staggered, dual
- meta_group :
- radar_parameters
array(b'not_set', dtype='|S32')
- follow_mode()|S32b'not_set'
- standard_name :
- follow_mode_for_scan_strategy
- options :
- none, sun, vehicle, aircraft, target, manual
- meta_group :
- instrument_parameters
array(b'not_set', dtype='|S32')
- fixed_angle()float320.4999
- standard_name :
- beam_target_fixed_angle
- units :
- degrees
array(0.4999, dtype=float32)
- target_scan_rate()float32-9.999e+03
- standard_name :
- target_scan_rate_for_sweep
- units :
- degrees per second
array(-9999., dtype=float32)
- pulse_width(time)timedelta64[ns]00:00:00 00:00:00 ... 00:00:00
- standard_name :
- transmitter_pulse_width
- meta_group :
- instrument_parameters
array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype='timedelta64[ns]') - prt(time)timedelta64[ns]-1 days +21:13:21 ... -1 days +2...
- standard_name :
- pulse_repetition_frequency
- meta_group :
- instrument_parameters
array([-9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, ... -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000, -9999000000000], dtype='timedelta64[ns]') - nyquist_velocity(time)float3226.92 26.92 26.92 ... 26.92 26.92
- standard_name :
- unambiguous_doppler_velocity
- units :
- meters per second
- meta_group :
- instrument_parameters
array([26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, ... 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925, 26.925], dtype=float32) - unambiguous_range(time)float321.5e+05 1.5e+05 ... 1.5e+05 1.5e+05
- standard_name :
- unambiguous_range
- units :
- meters
- meta_group :
- instrument_parameters
array([150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., ... 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000., 150000.], dtype=float32) - antenna_transition(time)int80 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0
- standard_name :
- antenna_is_in_transition_between_sweeps
- comment :
- 1 if antenna is in transition, 0 otherwise
array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=int8) - n_samples(time)int32192 192 192 192 ... 192 192 192 192
- standard_name :
- number_of_samples_used_to_compute_moments
- meta_group :
- instrument_parameters
array([192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192], dtype=int32) - r_calib_index(time)int8-1 -1 -1 -1 -1 ... -1 -1 -1 -1 -1
- standard_name :
- calibration_data_array_index_per_ray
- meta_group :
- radar_calibration
- comment :
- This is the index for the calibration which applies to this ray
array([-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], dtype=int8) - scan_rate(time)float32-3.277e+04 ... -3.277e+04
- standard_name :
- antenna_angle_scan_rate
- units :
- degrees per second
- meta_group :
- instrument_parameters
array([-32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., ... -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768., -32768.], dtype=float32) - DBZ(time, range)float32-6.079 10.45 ... -2.259 0.4694
- long_name :
- Computed Horizontal Co-polar Reflectivit
- standard_name :
- equivalent_reflectivity_factor
- units :
- dBZ
- threshold_field_name :
- threshold_value :
- -9999.0
- sampling_ratio :
- 1.0
- grid_mapping :
- grid_mapping
array([[-6.079263 , 10.450549 , 3.2391877 , ..., -5.0203886 , -0.8701691 , -3.5599947 ], [-7.1203713 , 14.529704 , -0.1204291 , ..., -5.4307914 , -1.6501119 , -0.31941223], [ 5.380033 , 12.049521 , 2.7506132 , ..., 0.33971938, -2.2701576 , 0.13007645], ..., [28.170708 , 35.90085 , 8.880004 , ..., -3.2597432 , -0.42068043, -3.8993318 ], [-1.7496034 , 16.560398 , 7.5795074 , ..., -2.4691408 , -1.5701632 , -4.8196287 ], [14.129961 , 15.430458 , 7.099816 , ..., 0.6204277 , -2.2594976 , 0.46941376]], dtype=float32) - VR(time, range)float3226.71 24.83 ... -20.84 17.25
- long_name :
- Computed Velocity
- standard_name :
- radial_velocity_of_scatterers_away_from_instrument
- units :
- m/s
- threshold_field_name :
- threshold_value :
- -9999.0
- sampling_ratio :
- 1.0
- grid_mapping :
- grid_mapping
array([[ 26.710032 , 24.829687 , -0.48010498, ..., 5.6598406 , 21.28002 , 14.659968 ], [ 26.279818 , 26.289633 , 1.9498641 , ..., -11.9600935 , -12.220184 , -13.360332 ], [ 26.430311 , 10.079751 , 1.4697592 , ..., 22.079922 , 5.8896694 , -0.7598254 ], ..., [ 26.390234 , 26.369787 , 0.22982879, ..., 2.760399 , 7.569628 , -25.319609 ], [ 5.200183 , 1.7797418 , -3.1096408 , ..., 0.61015046, 22.389904 , -7.7601976 ], [ 2.0897243 , 1.6398816 , -18.419836 , ..., -3.7598681 , -20.83999 , 17.250246 ]], dtype=float32)
Import again¶
[35]:
cf2a = CfRadial('timrex_cfradial2.nc')
cf2b = OdimH5('timrex_cfradial_as_odim.h5', standard='cf')
[36]:
cf2a['sweep_1'].DBZ.pipe(wrl.georef.georeference_dataset).plot.pcolormesh(x='x', y='y', add_labels=False)
pl.gca().set_aspect('equal')
[37]:
cf2b['sweep_1'].DBZ.pipe(wrl.georef.georeference_dataset).plot.pcolormesh(x='x', y='y', add_labels=False)
pl.gca().set_aspect('equal')
Check equality¶
For Cf/Radial there are issues with nan, which need to be fixed. For the ODIM_H5 intercomparison there are too problems with nan and issues with attributes.
[38]:
xr.testing.assert_equal(cf2.root, cf2a.root)
xr.testing.assert_allclose(cf2['sweep_1'], cf2a['sweep_1'])
xr.testing.assert_allclose(cf2.root.drop_vars(["volume_number", "status_xml"]),
cf2b.root.drop_vars(["volume_number", "status_xml", "altitude_agl", "frequency"]))
drop = set(cf2['sweep_1']) ^ set(cf2b['sweep_1']) | set(["prt_mode", "follow_mode", "time"])
xr.testing.assert_allclose(cf2['sweep_1'].drop_vars(drop).sortby("azimuth"),
cf2b['sweep_1'].drop_vars(drop, errors="ignore").sortby("azimuth"))