# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python [conda env:miniconda3-python-tutorial]
#     language: python
#     name: conda-env-miniconda3-python-tutorial-python3_myenv
# ---

# ### Final step in isotherm calculation
#
# This notebook is used to assemble the full isotherm files.

import xarray as xr
import cftime
import matplotlib.pyplot as plt
import numpy as np

from config import directory_figs, directory_data

ds = xr.open_mfdataset(f'{directory_data}temp_FWPaSalP04Sv/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_FWPaSalP04Sv.nc')

ds = xr.open_mfdataset(f'{directory_data}temp_FWAtSalG02Sv/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_FWAtSalG02Sv.nc')

ds = xr.open_mfdataset(f'{directory_data}temp_FWAtSalG04Sv/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_FWAtSalG04Sv.nc')

ds = xr.open_mfdataset(f'{directory_data}temp_FWAtSalP02Sv/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_FWAtSalP02Sv.nc')

ds = xr.open_mfdataset(f'{directory_data}temp_FWAtSalP04Sv/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_FWAtSalP04Sv.nc')

# + tags=[]
ds = xr.open_mfdataset(f'{directory_data}temp_005/iso20c_file_*.nc', combine='by_coords')
ds.to_netcdf(f'{directory_data}iso20c_005.nc')
# -



StarcoderdataJupyterScriptsDedupFiltered