<jupyter_start><jupyter_text>Example on how to calculate and plot cfad-----------------------------------------This example shows how to calculate and plot a cfad<jupyter_code>import radtraq
import act
import matplotlib.pyplot as plt

# Read in example data
obj = act.io.armfiles.read_netcdf(radtraq.tests.sample_files.EXAMPLE_KAZR)

# Calculate CFAD histogram
hist, x, y = radtraq.plotting.cfad.calc_cfad(obj, 'reflectivity_copol', 'range')

# Plot CFAD histogram
display = radtraq.plotting.cfad.plot_cfad(hist, x, y)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1592128801431127, 'fraction_numerical': 0.0, 'mean_word_length': 4.045045045045045, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '455637', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 197, 'n_tokens_neox': 191, 'n_words': 47, 'path': 'docs/source/source/auto_examples/plot_cfad.ipynb', 'repo_name': 'cgodine/RadTraQ', 'size': '559'}