<jupyter_start><jupyter_text>Aquaplanet<jupyter_code>#path_O3_aqua = '/scratch/07088/tg863871/SPCAM_input/atm/cam/ozone/ozone_1.9x2.5_L26_2000clim_c091112.nc'
path_O3_aqua = '/export/nfs0home/tbeucler/Ozone_Aquaplanet.nc'
O3 = xr.open_dataset(path_O3_aqua)
O3
O3.OZONE
plt.plot(O3.OZONE.mean(dim=('time','lon')),O3.OZONE.lev);
plt.plot(O3.O3.mean(dim=('lat','time')),O3.lev);
plt.plot(O3.O3.mean(dim=('lon','lat')).transpose(),O3.lev);<jupyter_output><empty_output><jupyter_text>Save time-averaged profile in pkl file<jupyter_code>O3_tav_aqua = O3.OZONE.mean(dim=('time','lon'))
O3_tav_aqua<jupyter_output><empty_output><jupyter_text>Real-geography<jupyter_code>path_RG = '/scratch1/07088/tg863871/inputdata/atm/cam/ozone/'
O3_RG = xr.open_dataset(path_RG+'ozone_1.9x2.5_L26_2000clim_c091112.nc')
aO3_RG = xr.open_dataset(path_RG+'apeozone_cam3_5_54.nc')
O3_RG
aO3_RG
plt.plot(O3_RG.O3.mean(dim=('lat','lon','time')),O3_RG.lev)
plt.plot(O3_RG.O3.mean(dim=('lon','time')),O3_RG.lev);
plt.plot(O3_RG.O3.mean(dim=('lat','time')),O3_RG.lev);
plt.plot(O3_RG.O3.mean(dim=('lon','lat')).transpose(),O3_RG.lev);
O3_RG_tav_RG = O3_RG.O3.mean(dim='time')<jupyter_output><empty_output><jupyter_text>Save in pkl file<jupyter_code>pathPKL = '/home1/05823/tg851228/SPCAM/CBRAIN-CAM/notebooks/tbeucler_devlog/PKL_DATA/'
hf = open(pathPKL+'2021_01_21_O3.pkl','wb')
S = {"O3_aqua":O3_tav_aqua}
pickle.dump(S,hf)
hf.close()
pathPKL = '/home1/05823/tg851228/CBRAIN-CAM/notebooks/tbeucler_devlog/PKL_DATA/'
hf = open(pathPKL+'2021_01_21_O3_RG.pkl','wb')
S = {"O3_RG":O3_RG_tav_RG}
pickle.dump(S,hf)
hf.close()
pathPKL = '/export/nfs0home/tbeucler/CBRAIN-CAM/notebooks/tbeucler_devlog/PKL_DATA/'
hf = open(pathPKL+'2021_01_24_O3.pkl','wb')
S = {"O3_aqua":O3_tav_aqua}
pickle.dump(S,hf)
hf.close()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19667590027700832, 'fraction_numerical': 0.0853185595567867, 'mean_word_length': 9.033333333333333, 'pattern_counts': {'":': 3, '<': 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': '150632', 'license': 'MIT', 'n_tokens_mistral': 1004, 'n_tokens_neox': 945, 'n_words': 57, 'path': 'notebooks/tbeucler_devlog/062_O3_profile_analysis.ipynb', 'repo_name': 'tbeucler/CBRAIN-CAM', 'size': '1805'}