amazon_rainforest/amazon_code/functions_amazon.py
def Rain(datasets):
        """
        Computation of rainfall values; all datasets are necessary and a potential rain factor
        """
        rain = []
        for data in datasets:
            net_data = Dataset(data)
            #get mean value for rainfall
            rain_dataset = net_data.variables["rain"][:]
            if len(rain) == 0:
                rain = rain_dataset
            else:
                rain = np.add(rain, rain_dataset)
        rain = np.array(rain)
        return rain

        Computation of rainfall values; all datasets are necessary and a potential rain factor
        
Computation of rainfall values; all datasets are necessary and a potential rain factor
Computation of rainfall values ; all datasets are necessary and a potential rain factor
def Rain(datasets):
        rain = []
        for data in datasets:
            net_data = Dataset(data)
            rain_dataset = net_data.variables["rain"][:]
            if len(rain) == 0:
                rain = rain_dataset
            else:
                rain = np.add(rain, rain_dataset)
        rain = np.array(rain)
        return rain
def Rain ( datasets ) : rain = [ ] for data in datasets : net_data = Dataset ( data ) rain_dataset = net_data . variables [ "rain" ] [ : ] if len ( rain ) == 0 : rain = rain_dataset else : rain = np . add ( rain , rain_dataset ) rain = np . array ( rain ) return rain
Computation of rainfall values; all datasets are necessary and a potential rain factor
Computation of rainfall values ; all datasets are necessary and a potential rain factor
"""
        Computation of rainfall values; all datasets are necessary and a potential rain factor
        """ #get mean value for rainfall
datasets