Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

                               'satellite-sea-surface-temperature',
                               {
                               'processinglevel': 'level_4',
                               'sensor_on_satellite': 'combined_product',
                               'version': '2_0',
                               'year': yr,
                               'month': mn,
                               'day': [
                                      '01', '02', '03',
                                      '04', '05', '06',
                                      '07', '08', '09',
                                      '10', '11', '12',
                                      '13', '14', '15',
                                      '16', '17', '18',
                                      '19', '20', '21',
                                      '22', '23', '24',
                                      '25', '26', '27',
                                      '28', '29', '30',
                                      '31',
                               ],
                              'variable': 'seaanalysed_surface_temperaturesst',
                              'grid': [0.25, 0.25],
                       }
                )
               data = ct.cube.resample(data1, dim='time', freq='MS')
               data_monthly = ct.climate.monthly_mean(data)
               if mn == '01':
               data_monthly_all=data_monthly
               else:
              data_monthly_all=ct.cube.concat([data_monthly_all,data_monthly],dim='time')
       if count == 1:
       monthly_all=data_monthly_all
       else:
      monthly_all=ct.cube.concat([monthly_all,data_monthly_all],dim='time')
      count = count+1
print(monthly_all)
return monthly_all

...