Mercurial > repos > climate > cds_essential_variability
comparison ecv_retrieve.py @ 2:f47873f1a4b3 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:15:51 -0400 |
| parents | edc85cde5f71 |
| children | a781bdaaa30e |
comparison
equal
deleted
inserted
replaced
| 1:b604f8caa415 | 2:f47873f1a4b3 |
|---|---|
| 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 }, |
