diff --git a/freva/src/drs/metadata.rs b/freva/src/drs/metadata.rs index 72191eaf210200fa773b0b787cf97ff4ebbb57dc..3cb87fa3509083b88ede02ea4f3c914c1231438b 100644 --- a/freva/src/drs/metadata.rs +++ b/freva/src/drs/metadata.rs @@ -12,7 +12,11 @@ use std::{ }; use camino::{Utf8Path, Utf8PathBuf}; -use drs::{cmip5::Cmip5, cmip6::Cmip6, cordex::Cordex}; +use drs::{ + cmip5::Cmip5, + cmip6::{Cmip6, MIP_ERA}, + cordex::Cordex, +}; use netcdf::AttrValue; use thiserror::Error; use tracing::{debug, error}; @@ -418,8 +422,8 @@ fn metadata_from_cmip6(cmip: Cmip6, root_dir: &Utf8Path) -> Result<Metadata, Ext let m = &cmip.metadata; Ok(Metadata { path: cmip.path.to_owned(), - activity: m.activity_id.to_owned(), - product: m.activity_id.to_owned(), // all cmip6 data as the same product so we duplicate `activity_id` here + activity: MIP_ERA.to_owned(), + product: m.activity_id.to_owned(), institute: m.institution_id.to_owned(), model: m.source_id.to_owned(), experiment: m.experiment_id.to_owned(),