lzhenn / cmip6-to-wrfinterm

tools to process cmip6 data to drive wrf
34 stars 18 forks source link

prepare MRI-ESM2-0 ssp245 files #6

Open Rhizlane81 opened 7 months ago

Rhizlane81 commented 7 months ago

hi, I try to prepare MRI-ESM2-0 cmip6 file using ssp245 scenario, i prepare my MRI-ESM2-0_LND.csv, MRI-ESM2-0_SURF.csv, MRI-ESM2-0_LEV.csv files in db folder,and i add this 3 lignes in cmip6_meta.csv file "MRI-ESM2-0,ssp,LEV,CMIP6,6h MRI-ESM2-0,ssp,SURF,CMIP6,3h MRI-ESM2-0,ssp,LND,CMIP6,1M " i download all necessary files in sample/MRI-ESM2-0 but it doesn't work i have this error "Traceback (most recent call last): File "/oper/u/ecac/ecac002/cmip6-to-wrfinterm-master/run_c2w.py", line 59, in main_run() File "/oper/u/ecac/ecac002/cmip6-to-wrfinterm-master/run_c2w.py", line 48, in main_run cmip_hdl=lib.cmip_handler.CMIPHandler(cfg_hdl) File "/oper/u/ecac/ecac002/cmip6-to-wrfinterm-master/lib/cmip_handler.py", line 54, in init self._load_cmip_data()
File "/oper/u/ecac/ecac002/cmip6-to-wrfinterm-master/lib/cmip_handler.py", line 147, in _load_cmip_data self.ds[varname]=ds[varname].sel( File "/oper/u/ecac/ecac002/.conda/envs/wrf_cmip6/lib/python3.9/site-packages/xarray/core/dataset.py", line 1484, in getitem return self._construct_dataarray(key) File "/oper/u/ecac/ecac002/.conda/envs/wrf_cmip6/lib/python3.9/site-packages/xarray/core/dataset.py", line 1395, in _constructdataarray , name, variable = _get_virtual_variable(self._variables, name, self.dims) File "/oper/u/ecac/ecac002/.conda/envs/wrf_cmip6/lib/python3.9/site-packages/xarray/core/dataset.py", line 196, in _get_virtual_variable raise KeyError(key) KeyError: 'huss' "