Skip to content

issue of CaseGroup2 when extracting data described in a catalog csv file. #62

@weiming9115

Description

@weiming9115

@jkrasting @bitterbark I used the MDTF catalog builder to generate a csv file (see attached), and tried following the MDTF.ipynb template to read the data with CaseGroup2 from the runtime_config.yml.

# Provide an MDTF case settings file
groups = [
    CaseGroup2(
        "/pscratch/sd/w/wmtsai/MDTF_POD_diags/MDTF-diagnostics/templates/runtime_config.mcstest.yml"
        #date_range=("2005-01-01", "2005-12-31"),
        #mapping=mapping,
    )
]

An error message indicated something was wrong with the csv file

"ComputeError: Path "/pscratch/sd/w/wmtsai//MDTF_POD_diags/catalogs/MPI-ESM1-2-HR_historical_r1i1p1f1_full.csv" contained empty path segment

This error occurred with the following context stack:
	[1] 'slice'
	[2] 'sink'"

After checking the csv file, we found that the init_year column is empty. The path to input data exists and is correct "/pscratch/sd/w/wmtsai/MDTF_POD_diags/inputdata/model/MPI-ESM1-2-HR_historical_r1i1p1f1_gn_200501010130-200912312230/3hr/MPI-ESM1-2-HR_historical_r1i1p1f1_gn_200501010130-200912312230.pr.3hr.nc".

Image

I manually filled it out with the year "2005", but the same error message still appeared. The same, unmodified yml and csv files worked fine under the MDFT framework command-line mode. I've attached the associated files below.


MPI-ESM1-2-HR_historical_r1i1p1f1_full.csv

settings.jsonc

runtime_config.mcstest.yml

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions