aditya-grover / climate-learn

Source code for ClimateLearn
MIT License
310 stars 49 forks source link

out_vars in ERA5Forecasting module works only when out_vars is a subset of in_vars #50

Closed prakhar6sharma closed 1 year ago

prakhar6sharma commented 1 year ago

Describe the bug When calling init for ERA5Forecasting, the arguments passed to it's parent class are (root_dir, root_highres_dir, in_vars, years, split). Because of this while creating the data_dict , only variables that are part of in_vars are loaded from netcdf files. See lines 45 and 61.

This can result in potential bug at line 122 when we create the output data, if the output variables are not a subset of input variables.