Mercurial > repos > ecology > xarray_metadata_info
changeset 2:e8650cdf092f draft
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 5cdfeb9e100109892a8490ebb4b9bff498c795b5"
author | ecology |
---|---|
date | Sat, 31 Oct 2020 11:00:53 +0000 |
parents | 7edbe5ae8b72 |
children | 663268794710 |
files | xarray_metadata_info.xml xarray_tool.py |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/xarray_metadata_info.xml Fri May 22 05:18:55 2020 -0400 +++ b/xarray_metadata_info.xml Sat Oct 31 11:00:53 2020 +0000 @@ -43,6 +43,10 @@ </output> </test> </tests> + <edam_topics> + <edam_topic>topic_0610</edam_topic> + <edam_topic>topic_3050</edam_topic> + </edam_topics> <help><![CDATA[ **What it does**
--- a/xarray_tool.py Fri May 22 05:18:55 2020 -0400 +++ b/xarray_tool.py Sat Oct 31 11:00:53 2020 +0000 @@ -84,8 +84,8 @@ writer = csv.writer(f, delimiter='\t') header = ['VariableName', 'NumberOfDimensions'] for idx, val in enumerate(ds.dims.items()): - header.append('Dim'+str(idx)+'Name') - header.append('Dim'+str(idx)+'Size') + header.append('Dim' + str(idx) + 'Name') + header.append('Dim' + str(idx) + 'Size') writer.writerow(header) for name, da in ds.data_vars.items(): line = [name] @@ -113,8 +113,7 @@ if filter_varname == self.select: # filter on values of the selected variable if op == 'bi': - self.dset = self.dset.where((self.dset <= rl) & - (self.dset >= ll)) + self.dset = self.dset.where((self.dset <= rl) & (self.dset >= ll)) elif op == 'le': self.dset = self.dset.where(self.dset <= ll) elif op == 'ge': @@ -207,8 +206,7 @@ for row in fcoords.itertuples(): self.latvalN = row[0] self.lonvalE = row[1] - self.outfile = (self.outputdir + '/' + self.select + '_' - + str(row.Index) + '.tabular') + self.outfile = (self.outputdir + '/' + self.select + '_' + str(row.Index) + '.tabular') self.selection()