<jupyter_start><jupyter_text>Debug iceberg error when using existing 1/8 restarts.Most of this is now in `combine_restarts`<jupyter_code>import xarray as xr
import matplotlib.pyplot as plt
import os
%matplotlib inline
# This is my main development dir; where this crap happens atm
path = '/gpfsm/dhome/jjbuseck/jjbuseck/models/MOM6_dev/geoclim-mom6/MOM6_SIS2_COBALT/BOM_0125_JRA_1.3/INPUT'
# load ocean mask
mask = xr.open_dataset(os.path.join(path, 'ocean_mask.nc'))
print(mask)
mask.mask.plot()
# load the calving restart file
calving = xr.open_dataset(os.path.join(path, 'calving.res.nc'))
print(calving)

calving.stored_ice.isel(zaxis_1=0).plot()
# convert dimensions of mask to calving file
mask_calving = mask.mask.rename({'nx':'xaxis_1', 'ny':'yaxis_1'})
print(mask_calving)
calving.stored_ice.isel(zaxis_1=0).where(mask_calving==0).plot()<jupyter_output><xarray.DataArray 'mask' (yaxis_1: 2240, xaxis_1: 2880)>
[6451200 values with dtype=float64]
Dimensions without coordinates: yaxis_1, xaxis_1
Attributes:
    standard_name:  ocean fraction at T-cell centers
    units:          none<jupyter_text>How does a 'working' file look?<jupyter_code># The 1 sec run 
path = '~/jjbuseck/model_setups/xanadu_mom6_20181101/OM4p125_IAF_csf_JRA55do1-3_r5_cycle4/archive/restart_init_bgc_from_rest_1sec/'
# load the calving restart file
calving = xr.open_dataset(os.path.join(path, 'calving.res.nc'))
print(calving)
calving.stored_ice.isel(zaxis_1=0).plot()
# convert dimensions of mask to calving file
mask_calving = mask.mask.rename({'nx':'xaxis_1', 'ny':'yaxis_1'})
print(mask_calving)
calving.stored_ice.isel(zaxis_1=0).where(mask_calving==0).plot()
# convert dimensions of mask to calving file
mask_calving = mask.mask.rename({'nx':'xaxis_1', 'ny':'yaxis_1'})
print(mask_calving)
calving.stored_ice.isel(zaxis_1=0).where(mask_calving).plot()<jupyter_output><xarray.DataArray 'mask' (yaxis_1: 2240, xaxis_1: 2880)>
[6451200 values with dtype=float64]
Dimensions without coordinates: yaxis_1, xaxis_1
Attributes:
    standard_name:  ocean fraction at T-cell centers
    units:          none
{'fraction_non_alphanumeric': 0.1235040689325036, 'fraction_numerical': 0.04451890856869316, 'mean_word_length': 6.491039426523297, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '376505', 'license': 'MIT', 'n_tokens_mistral': 859, 'n_tokens_neox': 814, 'n_words': 159, 'path': 'notebooks/discover_debug_icebergs_on_land.ipynb', 'repo_name': 'jbusecke/mom6_design', 'size': '2089'}