Repository 'xarray_metadata_info'
hg clone https://toolshed.g2.bx.psu.edu/repos/ecology/xarray_metadata_info

Changeset 2:e8650cdf092f (2020-10-31)
Previous changeset 1:7edbe5ae8b72 (2020-05-22) Next changeset 3:663268794710 (2021-06-06)
Commit message:
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/data_manipulation/xarray/ commit 5cdfeb9e100109892a8490ebb4b9bff498c795b5"
modified:
xarray_metadata_info.xml
xarray_tool.py
b
diff -r 7edbe5ae8b72 -r e8650cdf092f xarray_metadata_info.xml
--- 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**
 
b
diff -r 7edbe5ae8b72 -r e8650cdf092f xarray_tool.py
--- 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()