<jupyter_start><jupyter_text>Climate<jupyter_code># imports
from matplotlib import pyplot as plt

import iris
from iris import quickplot
%matplotlib notebook<jupyter_output><empty_output><jupyter_text>Load<jupyter_code>test_climate_file = '/home/xavier/Projects/Oceanography/MHWs/db/test_climate.nc'
climate_file = '/home/xavier/Projects/Oceanography/MHWs/db/full_climate.nc'
#cube = iris.load(test_climate_file)
cube = iris.load(climate_file)
cube<jupyter_output><empty_output><jupyter_text>Parse<jupyter_code>seasonal = cube[0]
seasonal<jupyter_output><empty_output><jupyter_text>Plot<jupyter_code>time = iris.Constraint(day=0)
jan1 = seasonal.extract(time)
jan1

# Draw the contour with 25 levels.
quickplot.contourf(jan1, 25)

# Add coastlines to the map created by contourf.
plt.gca().coastlines()

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11374407582938388, 'fraction_numerical': 0.01066350710900474, 'mean_word_length': 8.71264367816092, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '319336', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 349, 'n_tokens_neox': 338, 'n_words': 48, 'path': 'doc/nb/Climate.ipynb', 'repo_name': 'profxj/mwh_analysis', 'size': '844'}