[ecco-support] [EXTERNAL] Question regarding ECCO data download

Zhang, Hong (US 398K) hong.zhang at jpl.nasa.gov
Mon Apr 21 17:36:56 EDT 2025



On Apr 21, 2025, at 1:03 PM, Ahmed, Ashfaq <ashfaq_ahmed at brown.edu> wrote:

Hi all!

I hope you are enjoying the beautiful spring season.

I have a question regarding the ECCO data download, and if anyone can answer it, it would be an excellent help!

So, I was using this code to download daily (or monthly) ECCO data:

<Screenshot 2025-04-21 at 3.59.32 PM.png>

But by this process, all variables within this dataset are downloaded. If I want to download any specific variable only (say, only 'WVEL') from this short-named dataset, how can I do it?
I guess you can specify one more input argument “vars_to_include”,
see help on function ecco_podaac_download_subset in module ecco_download:

ecco_podaac_download_subset(ShortName, StartDate=None, EndDate=None, n_workers=4, force_redownload=False, vars_to_include='all', vars_to_omit=None, times_to_include='all', k_isel=[0, 50, 1], tile_isel=[0, 13, 1], j_isel=[0, 90, 1], i_isel=[0, 90, 1], Z_isel=[0, 50, 1], latitude_isel=[0, 360, 1], longitude_isel=[0, 720, 1], netcdf4=True, include_latlon_coords=True, download_or_list='download', list_filename='files_to_download.txt', download_root_dir=None, subset_file_id='')
    Downloads subsets of ECCOv4r4 datasets from PO.DAAC using OPeNDAP.
    This routine downloads ECCO datasets from PO.DAAC. It is adapted by Andrew Delman from the
    ecco_podaac_download routine derived from the Jupyter notebooks created by Jack McNelis and Ian Fenty,
    with some code from the OPeNDAP subsetting download script by Toshio Mike Chin and Y. Jiang
    (https://github.com/nasa/podaac_tools_and_services/blob/master/subset_opendap/subset_dataset.py).

    Parameters
...
    vars_to_include: list or tuple, names of data variables to include in the downloaded files.
                                    Dimension and coordinate variables are automatically included,
                                    except for the lat/lon coordinate variables when include_latlon_coords=False.
                                    Default is 'all', i.e., to include all data variables in the dataset.
…



Cheers

Hong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250421/662a7e51/attachment.htm>


More information about the ecco-support mailing list