Skip to content

[Bug]: 1. Failure to produce output for v3 data #297

@TonyB9000

Description

@TonyB9000

What happened?

Failure to produce output for v3 data, possibly due to (metadata)X(cmor), not e2c specifically.

To accommodate v3 (CMIP6) data beyond the CMIP6 closure, we have established a new project (and "mip_era"), "CMIP6-E3SM-Ext" (case sensitive).

This value replaces "CMIP6" in future CMIP6 dataset_id, and user_metadata files.

What did you expect to happen? Are there are possible answers you came across?

Ordinarily, the indicated output directory (here, /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/product/) would receive the facet-path "CMIP6/CMIP/.../gr/vDate/" and contain the cmorized output files.

(for v3, this would be "CMIP6-E3SM-Ext/CMIP/.../gr/vDate/)

Also, the e3sm_to_cmip logfile (written to the the output directory) claims that a "cmor_logs" directory will also appear, but it does not.

Minimal Complete Verifiable Example (MVCE)

e3sm_to_cmip -v mlotst -u /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/metadata/historical_r1i1p1f1.json -t /lcrc/group/e3sm2/DSM/Staging/Resource/cmor/cmip6-cmor-tables/Tables -o YOUR_OUTPUT_DIR -i /lcrc/group/e3sm2/DSM/Ops/test/e2c_input -s --realm mpaso --map /lcrc/group/e3sm2/DSM/Staging/Resource/maps/map_IcoswISC30E3r5_to_cmip6_180x360_traave.20240221.nc

Note: The "-i input" directory has been prepared with the actual input files used.

Relevant log output

My post-processing creates a "run_report" directory:

/lcrc/group/e3sm2/DSM/Ops/DSM_Manager/TEST_REPORTS/test_record-CMIP6-E3SM-Ext.CMIP.E3SM-Project.E3SM-3-0.historical.r1i1p1f1.Omon.mlotst.gr-20250521_183645

containing various log data, and a summary report:

Report-20250521_183645

The log-data is mostly useful here for echoing the input parameters supplied.  But not "error" output seems to havbe been written.

The contents of that report is copied below:

RUN REPORT for dsm_manage_CMIP_production test ====================================

PRE-RUN Artifacts -----------------------------------

    Target CMIP dataset_id: CMIP6-E3SM-Ext.CMIP.E3SM-Project.E3SM-3-0.historical.r1i1p1f1.Omon.mlotst.gr
    Native E3SM dataset_id: E3SM.3_0.historical.LR.ocean.native.model-output.mon.ens1
    Native Case ID:         v3.LR.historical_0051
    Source Metadata file:   /lcrc/group/e3sm2/DSM/Staging/Resource/CMIP6-Metadata/E3SM-3-0/historical_r1i1p1f1.json

    cat /lcrc/group/e3sm2/DSM/Staging/Resource/CMIP6-Metadata/E3SM-3-0/historical_r1i1p1f1.json | grep -v license | grep -v #note | grep CMIP
          "activity_id": "CMIP",
          "parent_activity_id": "CMIP",
          "grid": "data regridded to a CMIP6 standard 1x1 degree lonxlat grid from the native grid using an area-average preserving method.",
          "outpath": "CMIP6-E3SM-Ext",
          "_controlled_vocabulary_file": "CMIP6_CV.json",
          "_AXIS_ENTRY_FILE": "CMIP6_coordinate.json",
          "_FORMULA_VAR_FILE": "CMIP6_formula_terms.json",
          "_cmip6_option": "CMIP6",
          "mip_era": "CMIP6-E3SM-Ext",
          "parent_mip_era": "CMIP6-E3SM-Ext",

    cat /lcrc/group/e3sm2/DSM/Staging/Resource/CMIP6-Metadata/E3SM-3-0/historical_r1i1p1f1.json | grep -v license | grep -v #note | grep source_id
          "parent_source_id": "E3SM-3-0",
          "source_id": "E3SM-3-0",
          "output_path_template": "<mip_era><activity_id><institution_id><source_id><experiment_id><_member_id><table><variable_id><grid_label><version>",
          "output_file_template": "<variable_id><table><source_id><experiment_id><_member_id><grid_label>"

POST-RUN Artifacts -----------------------------------

    ls -l tmp/v3.LR.historical_0051/product
        total 1041
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:15 20250521_181505_431691.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:15 20250521_181534_713909.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:15 20250521_181534_871635.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:15 20250521_181535_036291.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:16 20250521_181604_164331.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:16 20250521_181604_678067.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:16 20250521_181604_944584.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:16 20250521_181635_444463.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:16 20250521_181635_939495.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:17 20250521_181705_434127.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:17 20250521_181737_042226.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2  1740 May 21 13:18 20250521_181811_472290.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:18 20250521_181840_813651.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:18 20250521_181840_822019.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:18 20250521_181840_908557.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:19 20250521_181908_147324.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2 50580 May 21 13:19 20250521_181908_147338.log
        -rw-rw-r--+ 1 ac.bartoletti1 E3SM2  4059 May 21 13:19 user_metadata.json

    Content of e2c log tmp/v3.LR.historical_0051/product/20250521_181505_431691.log

        2025-05-21 13:15:05.449062 [INFO]: __main__.py(__init__:163) >> --------------------------------------
        2025-05-21 13:15:05.449220 [INFO]: __main__.py(__init__:164) >> | E3SM to CMIP Configuration
        2025-05-21 13:15:05.449289 [INFO]: __main__.py(__init__:165) >> --------------------------------------
        2025-05-21 13:15:05.452245 [INFO]: __main__.py(__init__:189) >>     * Timestamp: 20250521_181505_431691
        2025-05-21 13:15:05.452305 [INFO]: __main__.py(__init__:189) >>     * Version Info: version 1.11.3
        2025-05-21 13:15:05.452343 [INFO]: __main__.py(__init__:189) >>     * Mode: Serial
        2025-05-21 13:15:05.452382 [INFO]: __main__.py(__init__:189) >>     * Variable List: ['mlotst']
        2025-05-21 13:15:05.452416 [INFO]: __main__.py(__init__:189) >>     * Input Path: /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/native_data/seg-1850
        2025-05-21 13:15:05.452449 [INFO]: __main__.py(__init__:189) >>     * Output Path: /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/product
        2025-05-21 13:15:05.452481 [INFO]: __main__.py(__init__:189) >>     * Precheck Path: None
        2025-05-21 13:15:05.452512 [INFO]: __main__.py(__init__:189) >>     * Log Path: /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/product/20250521_181505_431691.log
        2025-05-21 13:15:05.452542 [INFO]: __main__.py(__init__:189) >>     * CMOR Log Path: /lcrc/group/e3sm2/DSM/Ops/DSM_Manager/tmp/v3.LR.historical_0051/product/cmor_logs
        2025-05-21 13:15:05.452572 [INFO]: __main__.py(__init__:189) >>     * Temp Path for Processing MPAS Files: /lcrc/group/e3sm2/DSM/tmp
        2025-05-21 13:15:05.452601 [INFO]: __main__.py(__init__:189) >>     * Frequency: mon
        2025-05-21 13:15:05.452632 [INFO]: __main__.py(__init__:189) >>     * Realm: mpaso
        2025-05-21 13:15:06.368011 [WARNING]: warnings.py(_showwarnmsg:112) >> /home/ac.bartoletti1/anaconda3/envs/dsm_test_e2c/lib/python3.12/site-packages/e3sm_to_cmip/__main__.py:340: FutureWarning: In a future version of xarray decode_timedelta will default to False rather than None. To silence this warning, set decode_timedelta to True, False, or a 'CFTimedelt
aCoder' instance.
          ds = xr.open_dataset(path)
        2025-05-21 13:15:06.588973 [WARNING]: warnings.py(_showwarnmsg:112) >> /home/ac.bartoletti1/anaconda3/envs/dsm_test_e2c/lib/python3.12/site-packages/e3sm_to_cmip/__main__.py:340: FutureWarning: In a future version of xarray decode_timedelta will default to False rather than None. To silence this warning, set decode_timedelta to True, False, or a 'CFTimedelt
aCoder' instance.
          ds = xr.open_dataset(path)

    dsm subordinate run script: tmp/v3.LR.historical_0051/scripts/CMIP6-E3SM-Ext.CMIP.E3SM-Project.E3SM-3-0.historical.r1i1p1f1.Omon.mlotst.gr-gen_CMIP6.py

    EXAMINE dsm subordinate run script log: tmp/v3.LR.historical_0051/caselogs/CMIP6-E3SM-Ext.CMIP.E3SM-Project.E3SM-3-0.historical.r1i1p1f1.Omon.mlotst.gr.sublog

    EXAMINE dsm_generate_CMIP6 log: tmp/mainlogs/dsm_gen-CMIP6-E3SM-Ext.CMIP.E3SM-Project.E3SM-3-0.historical.r1i1p1f1.Omon.mlotst.gr.log-20250521_181413_082176

Anything else we need to know?

No response

Environment

 active environment : dsm_test_e2c
active env location : /home/ac.bartoletti1/anaconda3/envs/dsm_test_e2c
        shell level : 2
   user config file : /home/ac.bartoletti1/.condarc

populated config files :
conda version : 23.7.4
conda-build version : 3.26.1
python version : 3.11.5.final.0
virtual packages : __archspec=1=x86_64
__glibc=2.28=0
__linux=4.18.0=0
__unix=0=0
base environment : /home/ac.bartoletti1/anaconda3 (writable)
conda av data dir : /home/ac.bartoletti1/anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/ac.bartoletti1/anaconda3/pkgs
/home/ac.bartoletti1/.conda/pkgs
envs directories : /home/ac.bartoletti1/anaconda3/envs
/home/ac.bartoletti1/.conda/envs
platform : linux-64
user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.5 Linux/4.18.0-553.16.1.el8_10.x86_64 rhel/8.10 glibc/2.28 aau/0.4.2 c/HGg8gxpvRuovNC12YQRpXg s/ClAe4uAavrqIHCJNKnding e/q9fFG7jpRw6ae6nxC1mGfQ
UID:GID : 22431:20001
netrc file : None
offline mode : False

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions