[ecco-support] A Question about the ecco_v4_py tutorial

Li Pan lipan at udel.edu
Wed Dec 20 19:14:30 EST 2023


Dear ECCO team,

Thank you for developing the Python package ecco_v4_py!
I'm using your Python package tutorial to analyze the ECCO estimate Version
4. I find some regions in the global map of the advective flux of the
potential temperature are not connected (For example, the eastern and
western Atlantic Oceans are disconnected). Could you please provide me with
some hints to address the problem?
The figure is as follows:
[image: image.png]
The code I used is as follows:
import xarray as xr
import glob
from os.path import join
import ecco_v4_py as ecco
import matplotlib.pyplot as plt
## =================================================================
ECCO_dir = ('D:\eccov4r4\python\Downloads')
ecco_grid = xr.open_dataset(glob.glob(join(ECCO_dir,'*GEOMETRY*.nc'))[0])
vol =
(ecco_grid.rA*ecco_grid.drF*ecco_grid.hFacC).transpose('tile','k','j','i')
# year_start = 1993
# year_end = 2016
ecco_vars_int = xr.open_mfdataset(join(ECCO_dir,'*tem_flux*','*.nc'),\

 data_vars='minimal',coords='minimal',compat='override')
curr_t_ind = 0
tmp = str(ecco_vars_int.time.values[curr_t_ind])
plt.figure(figsize=(15,5));
ecco.plot_proj_to_latlon_grid(ecco_grid.XC, ecco_grid.YC,
ecco_vars_int['ADVx_TH'].isel(time=curr_t_ind,k=0), show_colorbar=True,
                              cmin=-1e7, cmax=1e7, cmap='RdBu_r',
user_lon_0=-67, dx=0.2, dy=0.2)
plt.title(r'U advection of potential temperature at the sea surface
[$^\circ$C s$^{-1}$] during ' +
          str(tmp)[0:4] +'/' + str(tmp)[5:7], fontsize=16)
plt.show()
#=======================================================================
The data file I used has been attached. It is downloaded from:
https://search.earthdata.nasa.gov/search/granules?portal=podaac-cloud&p=C1991543740-POCLOUD&pg[0][v]=f&pg[0][gsk]=-start_date&q=ECCO_L4_OCEAN_3D_TEMPERATURE_FLUX_LLC0090GRID_MONTHLY&tl=1703109688!3!!&lat=-0.5625&zoom=0

Thanks for your time. I'm looking forward to your response.
 OCEAN_3D_TEMPERATURE_FLUX_mon_mean_2017-12_ECCO...
<https://drive.google.com/file/d/12JTIby5oVpS688QwXCfkmf01ofPWz9yw/view?usp=drive_web>

Best regards,
Li Pan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20231220/2d921cb7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 249607 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20231220/2d921cb7/attachment-0001.png>


More information about the ecco-support mailing list