Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMCC-ESM2 wmo needs unit conversion to kg/s #215

Open
jdldeauna opened this issue Mar 17, 2022 · 2 comments
Open

CMCC-ESM2 wmo needs unit conversion to kg/s #215

jdldeauna opened this issue Mar 17, 2022 · 2 comments

Comments

@jdldeauna
Copy link

Just FYI for other users of wmo, the CMCC-ESM2 wmo data in Pangeo Cloud is in m3/s and needs to be multiplied by 1026 kg/m3 to match other models that are actually in kg/s.

cat_url = "https://storage.googleapis.com/cmip6/pangeo-cmip6-noQC.json"
col = intake.open_esm_datastore(cat_url)
cat = col.search(table_id='Omon',experiment_id='historical',
             variable_id='wmo', grid_label='gn', member_id='r1i1p1f1',source_id='CMCC-ESM2')
cmcc_wmo = cat.to_dataset_dict(
        zarr_kwargs={'consolidated':True, 'decode_times': True, 'use_cftime': True},
        preprocess=combined_preprocessing,
        aggregate=False)
plot_wmo = cmcc_wmo['CMIP.CMCC.CMCC-ESM2.historical.r1i1p1f1.Omon.wmo.gn.gs://cmip6/CMIP6/CMIP/CMCC/CMCC-ESM2/historical/r1i1p1f1/Omon/wmo/gn/v20210127/.nan.20210127.good.none.none'].isel(lev=0,time=0)
plot_wmo['wmo'].plot.contourf()

CMCC-ESM2_wmo

cat_url = "https://storage.googleapis.com/cmip6/pangeo-cmip6-noQC.json"
col = intake.open_esm_datastore(cat_url)
cat = col.search(table_id='Omon',experiment_id='historical',
             variable_id='wmo', grid_label='gn', member_id='r1i1p1f1',source_id='IPSL-CM6A-LR')
ipsl_wmo = cat.to_dataset_dict(
        zarr_kwargs={'consolidated':True, 'decode_times': True, 'use_cftime': True},
        preprocess=combined_preprocessing,
        aggregate=False)
plot_wmo = ipsl_wmo['CMIP.IPSL.IPSL-CM6A-LR.historical.r1i1p1f1.Omon.wmo.gn.gs://cmip6/CMIP6/CMIP/IPSL/IPSL-CM6A-LR/historical/r1i1p1f1/Omon/wmo/gn/v20180803/.nan.20180803.good.none.none'].isel(lev=0,time=0)
plot_wmo['wmo'].plot.contourf()

IPSL-CM6A-LR_wmo

An errata ticket has been opened and the datasets are available at esgf-node2.cmcc.it. Eventually the datasets will be updated across nodes. :)

@jbusecke
Copy link
Owner

Thanks for raising this issue @jdldeauna. We have discussed this offline, but I will just repeat things here for openess:
I think that fixing issue like this is in scope for cmip6_pp! I think this package should provide two things:

  1. A way to apply arbitrary 'fixes' based on the exact instance_id(which includes the version, and thus prevents a fix like this to be applied to an updated dataset!). I think that an implementation of this should be carried out as part of a refactor to using a more general database like daops as a 'backend' for cmip6_preprocessing.
  2. It would be nice to have some way of checking individual datasets for existing ERRATA issues. This is something discussed in Porting functionality #149.

@znicholls
Copy link

+1 on finding a way to solve this within this package's scope, that would be super useful functionality and I can think of some other examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants