- pyart.io.write_cfradial(filename, radar, format='NETCDF4', include_fields=None, time_reference=None, arm_time_variables=False)#
Write a Radar object to a CF/Radial compliant netCDF file.
To control how the netCDF variables are created, set any of the following keys in the radar attribute dictionaries.
See the netCDF4 documentation for details on these settings.
filename (str) – Filename to create.
radar (Radar) – Radar object.
format (str, optional) – NetCDF format, one of ‘NETCDF4’, ‘NETCDF4_CLASSIC’, ‘NETCDF3_CLASSIC’ or ‘NETCDF3_64BIT’. See netCDF4 documentation for details.
include_fields (list, optional) – Fields to write out to NETCDF file. Default is None and will include all fields from the original radar object.
time_reference (bool) – True to include a time_reference variable, False will not include this variable. The default, None, will include the time_reference variable when the first time value is non-zero.
arm_time_variables (bool) – True to create the ARM standard time variables base_time and time_offset, False will not create these variables.