comparison ecv_retrieve.py @ 2:b9d9fe0c2ce7 draft

planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/essential_climate_variables commit 6045302c39c9c11fb6a73966a364cc395f2f9b28
author climate
date Sun, 23 Jun 2019 11:16:11 -0400
parents 5c0ab9932311
children ee42b7a33dc7
comparison
equal deleted inserted replaced
1:8b30be2cef81 2:b9d9fe0c2ce7
32 self.month = month.split(',') 32 self.month = month.split(',')
33 if time_aggregation == '': 33 if time_aggregation == '':
34 self.time_aggregation = '1_month' 34 self.time_aggregation = '1_month'
35 else: 35 else:
36 self.time_aggregation = time_aggregation 36 self.time_aggregation = time_aggregation
37 self.area = area 37 if area == '':
38 self.area = 'global'
39 else:
40 self.area = area
41
38 if format == '': 42 if format == '':
39 self.format = 'tgz' 43 self.format = 'tgz'
40 else: 44 else:
41 self.format = format 45 self.format = format
42 if output == '': 46 if output == '':
55 self.cdsapi.retrieve( 59 self.cdsapi.retrieve(
56 self.archive, { 60 self.archive, {
57 'variable': self.variable, 61 'variable': self.variable,
58 'year': self.year, 62 'year': self.year,
59 'month': self.month, 63 'month': self.month,
64 'origin': 'era5',
60 'area': self.area, 65 'area': self.area,
61 'format': self.format, 66 'format': self.format,
62 'product_type': self.product_type, 67 'product_type': self.product_type,
63 'time_aggregation': self.time_aggregation, 68 'time_aggregation': self.time_aggregation,
64 }, 69 },