Skip to content
Snippets Groups Projects
Commit dba4e257 authored by leufen1's avatar leufen1
Browse files

add another fix to use raw input data for climate filter

parent a97324fe
Branches
Tags
6 merge requests!353add developments to release v1.5.0,!352Resolve "release v1.5.0",!343Update wrf with develop,!342Include sample-uncertainty to wrf workflow,!324Resolve "too big data for memory",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #76556 passed with warnings
...@@ -393,7 +393,8 @@ class DataHandlerClimateFirFilterSingleStation(DataHandlerFirFilterSingleStation ...@@ -393,7 +393,8 @@ class DataHandlerClimateFirFilterSingleStation(DataHandlerFirFilterSingleStation
climate_filter.filtered_data] climate_filter.filtered_data]
# create input data with filter index # create input data with filter index
input_data = xr.concat(climate_filter_data, pd.Index(self.create_filter_index(), name=self.filter_dim)) input_data = xr.concat(climate_filter_data, pd.Index(self.create_filter_index(add_unfiltered_index=False),
name=self.filter_dim))
# add unfiltered raw data # add unfiltered raw data
if self._add_unfiltered is True: if self._add_unfiltered is True:
...@@ -410,7 +411,7 @@ class DataHandlerClimateFirFilterSingleStation(DataHandlerFirFilterSingleStation ...@@ -410,7 +411,7 @@ class DataHandlerClimateFirFilterSingleStation(DataHandlerFirFilterSingleStation
# self.input_data.sel(filter="low", variables="temp", Stations="DEBW107").plot() # self.input_data.sel(filter="low", variables="temp", Stations="DEBW107").plot()
# self.input_data.sel(variables="temp", Stations="DEBW107").plot.line(hue="filter") # self.input_data.sel(variables="temp", Stations="DEBW107").plot.line(hue="filter")
def create_filter_index(self) -> pd.Index: def create_filter_index(self, add_unfiltered_index=True) -> pd.Index:
""" """
Round cut off periods in days and append 'res' for residuum index. Round cut off periods in days and append 'res' for residuum index.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment