Repository 'cdo_info'
hg clone https://toolshed.g2.bx.psu.edu/repos/climate/cdo_info

Changeset 0:8e0ae5c594e7 (2022-01-15)
Commit message:
"planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/cdo commit da614bb8e3e9b19a5167ff19b625a71d9976108a"
added:
cdo_info.xml
macros.xml
macros_info.xml
macros_operations.xml
test-data/WMI_Lear.nc
test-data/WMI_Lear_addc.nc
test-data/WMI_Lear_copy.nc
test-data/WMI_Lear_expr.nc
test-data/WMI_Lear_griddes.txt
test-data/WMI_Lear_invertlat.nc
test-data/WMI_Lear_names.txt
test-data/WMI_Lear_sellonlatbox.nc
test-data/WMI_Lear_sellonlatbox_units.nc
test-data/WMI_Lear_showdate.txt
test-data/WMI_Lear_timesteps.nc
test-data/attributes.txt
test-data/drops1.nc
test-data/drops2.nc
test-data/drops_cat.nc
test-data/lat_long.nc
test-data/lat_long_modified.nc
test-data/latitude.nc
test-data/latitude3.nc
test-data/latitude_diff.txt
test-data/latitude_modified.nc
test-data/longitude.nc
test-data/longitude.txt
test-data/outfile_latitude.nc
test-data/split_latitude.nc
test-data/timeseries.nc
test-data/timeseries_sub.nc
test-data/timeseries_timavg.nc
b
diff -r 000000000000 -r 8e0ae5c594e7 cdo_info.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cdo_info.xml Sat Jan 15 23:20:26 2022 +0000
[
@@ -0,0 +1,78 @@
+<tool id="cdo_info" name="CDO get info" profile="20.05" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
+    <description>Climate Data Information Operators to get information on Climate and NWP model data</description>
+    <macros>
+        <import>macros.xml</import>
+        <import>macros_info.xml</import>
+    </macros>
+    <expand macro="edam_ontology"/>
+    <expand macro="cdo_requirements"/>
+    <expand macro="cdo_stdio"/>
+    <command><![CDATA[
+       cdo 
+       '$information.opt'
+       '$main_infile'
+       #if str($information.opt) == 'diff' or str($information.opt) == 'diffn'
+           '$information.secondary_infile'
+       #end if
+       > '$info'
+    ]]>    </command>
+    <inputs>
+        <expand macro="operator_information"/>
+    </inputs>
+    <outputs>
+        <data name="info" format="txt"/>
+    </outputs>
+    <tests>
+        <test>
+            <param name="main_infile" ftype="netcdf" value="longitude.nc"/>
+            <conditional name="information">
+                <param name="opt" value="info" />
+            </conditional>
+            <output name="info" value="longitude.txt" compare="diff" lines_diff="2"/>
+        </test>
+        <test>
+            <param name="main_infile" ftype="netcdf" value="latitude.nc"/>
+            <conditional name="information">
+                <param name="diff" value="info" />
+                <param name="secondary_infile" ftype="netcdf" value="latitude_modified.nc"/>
+            </conditional>
+            <output name="info" value="latitude_diff.txt" compare="diff" lines_diff="2"/>
+        </test>
+        <test>
+            <param name="main_infile" ftype="netcdf" value="WMI_Lear.nc"/>
+            <conditional name="information">
+                <param name="opt" value="showdate" />
+            </conditional>
+            <output name="info" value="WMI_Lear_showdate.txt" compare="diff" lines_diff="2"/>
+        </test>
+        <test>
+            <param name="main_infile" ftype="netcdf" value="WMI_Lear.nc"/>
+            <conditional name="information">
+                <param name="opt" value="griddes" />
+            </conditional>
+            <output name="info" value="WMI_Lear_griddes.txt" compare="diff" lines_diff="2"/>
+        </test>
+        <test>
+            <param name="main_infile" ftype="netcdf" value="WMI_Lear.nc"/>
+            <conditional name="information">
+                <param name="opt" value="showname" />
+            </conditional>
+            <output name="info" value="WMI_Lear_names.txt" compare="diff" lines_diff="2"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+
+**CDO Climate Data Information Operators**
+=======================================================================================================
+
+This tool is a wrapper to the Climate Data Operators (CDO) for all Information Operators.
+
+- CDO Information operators return information about the input file(s). Output is written in a text file.
+- CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data.
+- There are more than 600 operators available.
+
+- `CDO online documentation <https://code.mpimet.mpg.de/projects/cdo/>`_.
+
+    ]]>    </help>
+    <expand macro="citations"/>
+</tool>
b
diff -r 000000000000 -r 8e0ae5c594e7 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Sat Jan 15 23:20:26 2022 +0000
b
@@ -0,0 +1,33 @@
+<macros>
+    <token name="@TOOL_VERSION@">2.0.0</token>
+    <token name="@VERSION_SUFFIX@">0</token>
+    <xml name="cdo_requirements">
+        <requirements>
+            <requirement type="package" version="@TOOL_VERSION@">cdo</requirement>
+        </requirements>
+    </xml>
+    <xml name="edam_ontology">
+        <edam_topics>
+            <edam_topic>topic_3318</edam_topic>
+        </edam_topics>
+        <edam_operations>
+            <edam_operation>operation_3438</edam_operation>
+        </edam_operations>
+    </xml>
+    <xml name="cdo_stdio">
+        <stdio>
+            <!-- Anything other than zero or one is an error -->
+            <exit_code range="2:" />
+            <exit_code range=":-1"/>
+            <!-- In case the return code has not been set propery check stderr too -->
+            <regex match="Error" />
+            <regex match="Exception" />
+            <regex match="Abort" />
+        </stdio>
+    </xml>
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.5281/zenodo.3539275</citation>
+        </citations>
+    </xml>
+</macros>
b
diff -r 000000000000 -r 8e0ae5c594e7 macros_info.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros_info.xml Sat Jan 15 23:20:26 2022 +0000
b
@@ -0,0 +1,81 @@
+<macros>
+    <xml name="operator_information">
+        <param name="main_infile" type="data" label="Input file" format="netcdf"/>
+        <conditional name="information">
+            <param name="opt" type="select" label="Select cdo operator" multiple="false">
+                <option value="info">info (Dataset information listed by parameter identifier)</option>
+                <option value="infon">infon (Dataset information listed by parameter name)</option>
+                <option value="map">map (Dataset information and simple map)</option>
+                <option value="sinfo">sinfo (Short information listed by parameter identifier)</option>
+                <option value="sinfon">sinfon (Short information listed by parameter name)</option>
+                <option value="diff">diff (Compare two datasets listed by parameter identifier)</option>
+                <option value="diffn">diffn (Compare two datasets listed by parameter name)</option>
+                <option value="npar">npar (Number of parameters)</option>
+                <option value="nlevel">nlevel (Number of levels)</option>
+                <option value="nyear">nyear (Number of years)</option>
+                <option value="nmon">nmon (Number of months)</option>
+                <option value="ndate">ndate (Number of dates)</option>
+                <option value="ntime">ntime (Number of timesteps)</option>
+                <option value="ngridpoints">ngridpoints (Number of gridpoints)</option>
+                <option value="ngrids">ngrids (Number of horizontal grids)</option>
+                <option value="showformat">showformat (Show file format)</option>
+                <option value="showcode">showcode (Show code numbers)</option>
+                <option value="showname">showname (Show variable names)</option>
+                <option value="showstdname">showstdname (Show standard names)</option>
+                <option value="showlevel">showlevel (Show levels)</option>
+                <option value="showltype">showltype (Show GRIB level types)</option>
+                <option value="showyear">showyear (Show years)</option>
+                <option value="showmon">showmon (Show months)</option>
+                <option value="showdate">showdate (Show date information)</option>
+                <option value="showtime">showtime (Show time information)</option>
+                <option value="showtimestamp">showtimestamp (Show timestamp)</option>
+                <option value="showattribute">showattribute (Show a global attribute or a variable attribute)</option>
+                <option value="partab">partab (Parameter table)</option>
+                <option value="codetab">codetab (Parameter code table)</option>
+                <option value="griddes">griddes (Grid description)</option>
+                <option value="zaxisdes">zaxisdes (Z-axis description)</option>
+                <option value="vct">vct (Vertical coordinate table)</option>
+            </param>
+            <when value="info"/>
+            <when value="infon"/>
+            <when value="map"/>
+            <when value="sinfo"/>
+            <when value="sinfon"/>
+            <when value="diff">
+                <param name="secondary_infile" type="data" label="Input file" format="netcdf"/>
+            </when>
+            <when value="diffn">
+                <param name="secondary_infile" type="data" label="Input file" format="netcdf"/>
+            </when>
+            <when value="npar"/>
+            <when value="nlevel"/>
+            <when value="nyear"/>
+            <when value="nmon"/>
+            <when value="ndate"/>
+            <when value="ntime"/>
+            <when value="ngridpoints"/>
+            <when value="ngrids"/>
+            <when value="showformat"/>
+            <when value="showcode"/>
+            <when value="showname"/>
+            <when value="showstdname"/>
+            <when value="showlevel"/>
+            <when value="showltype"/>
+            <when value="showyear"/>
+            <when value="showmon"/>
+            <when value="showdate"/>
+            <when value="showtime"/>
+            <when value="showtimestamp"/>
+            <when value="showattribute">
+                <repeat name="attributes" title="List of attributes">
+                    <param name="attribute" type="text" label="Global or variable attribute name"/>
+                </repeat>
+            </when>
+            <when value="partab"/>
+            <when value="codetab"/>
+            <when value="griddes"/>
+            <when value="zaxisdes"/>
+            <when value="vct"/>
+        </conditional>
+    </xml>
+</macros>
b
diff -r 000000000000 -r 8e0ae5c594e7 macros_operations.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros_operations.xml Sat Jan 15 23:20:26 2022 +0000
b
b'@@ -0,0 +1,336 @@\n+<macros>\n+    <xml name="stat_selection">\n+        <param name="stat" type="select" label="Select statistical function" multiple="false">\n+            <option value="min">minimum</option>\n+            <option value="max">maximum</option>\n+            <option value="sum">sum</option>\n+            <option value="mean">mean</option>\n+            <option value="avg">average</option>\n+            <option value="var">variance</option>\n+            <option value="std">standard deviation</option>\n+        </param>\n+    </xml>\n+    <xml name="add_cdo_input">\n+        <param name="add_file" type="data" optional="true" label="Additional input file" format="netcdf"/>\n+    </xml>\n+    <xml name="cdo_option">\n+        <conditional name="option_type">\n+            <param name="add_opt" type="select" label="Provide cdo options" multiple="false">\n+                <option value="-a">Generate an absolute time axis (-a)</option>\n+                <option value="--cmor">CMOR conform NetCDF output (--cmor)</option>\n+                <option value="-f">-Output format (-f format)</option>\n+                <option value="-g">-g grid</option>\n+                <option value="-gf">-g grid filename</option>\n+                <option value="-M">-Indicate that the I/O streams have missing values (-M)</option>\n+                <option value="-m">Set the default missing value. Default is-9e+33 (-m missval)</option>\n+                <option value="--percentile">Percentile method (--percentile method)</option>\n+                <option value="--reduce_dim">Reduce NetCDF dimensions (--reduce_dim)</option>\n+                <option value="-R">Convert GRIB1 data from reduced to regular grid (-R)</option>\n+                <option value="--seed">Seed for a new sequence of pseudo-random numbers (--seed seed)</option>\n+                <option value="--sortname">Alphanumeric sorting of NetCDF parameter names (--sortname)</option>\n+                <option value="-r">Generate a relative time axis (-r)</option>\n+            </param>\n+            <when value="-a"/>\n+            <when value="--cmor"/>\n+            <when value="-f">\n+                <param name="output_format" type="select" label="Select output format" multiple="false">\n+                    <option value="nc4">NetCDF-4 (HDF5)</option>\n+                    <option value="nc4c">NetCDF-4 classic</option>\n+                    <option value="nc5">NetCDF version 5</option>\n+                </param>\n+            </when>\n+            <when value="-g">\n+                <param name="grid" type="text" label="Grid" help="(option -g grid)"/>\n+            </when>\n+            <when value="-gf">\n+                <param name="gridfile" type="data" label="Grid file" help="(option -g gridfile)" format="txt"/>\n+            </when>\n+            <when value="-M"/>\n+            <when value="-m">\n+                <param name="missval" type="float" value="-9e+33" label="Set the default missing value"/>\n+            </when>\n+            <when value="--percentile">\n+                <param name="percentile" type="select" label="Percentile method">\n+                    <option value="nrank">nrank</option>\n+                    <option value="nist">nist</option>\n+                    <option value="rtype8">rtype8</option>\n+                    <option value="numpy">numpy</option>\n+                    <option value="numpy_lower">numpy_lower</option>\n+                    <option value="numpy_higher">numpy_higher</option>\n+                    <option value="numpy_nearest">numpy_nearest</option>\n+                </param>\n+            </when>\n+            <when value="--reduce_dim"/>\n+            <when value="-R"/>\n+            <when value="--seed">\n+                <param name="seed" type="float" value="0.0" label="Seed for a new sequence of pseudo-random numbers"/>\n+            </when>\n+            <when value="--sortname"/>\n+            <when value="-r"/>\n+        </conditional>\n+    </xml>\n+    <xml name="cdo_operator">\n+    '..b' <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="mulc">\n+                <param name="const_value" type="float" label="Constant value to scale the fields" value="1"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="divc">\n+                <param name="const_value" type="float" label="Constant value to scale the fields" value="1"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="expr">\n+                <param name="params" type="text" value="" label="Expression for evaluation"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="ml2pl">\n+                <param name="params" type="text" value="" label="Pressure levels (comma separated)"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="ml2hl">\n+                <param name="params" type="text" value="" label="Height levels (comma separated)"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="intlevel">\n+                <param name="params" type="text" value="" label="Levels (comma separated)"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="sp2gp">\n+                <param name="trunc" type="integer" optional="true" value="" label="New spectral resolution"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="gp2sp">\n+                <param name="trunc" type="integer" optional="true" label="New spectral resolution"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="ens">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="zon">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="tim">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="vert">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="day">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="year">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="mon">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="seas">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="fld">\n+                <expand macro="stat_selection" />\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="add">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="sub">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="mul">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="div">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="min">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="max">\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+            <when value="setattribute">\n+                <param name="attr_file" type="data" format="txt" label="Text file containing the list of attributes (one per line)"/>\n+                <expand macro="add_cdo_input"/>\n+            </when>\n+        </conditional>\n+    </xml>\n+</macros>\n'
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear.nc
b
Binary file test-data/WMI_Lear.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_addc.nc
b
Binary file test-data/WMI_Lear_addc.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_copy.nc
b
Binary file test-data/WMI_Lear_copy.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_expr.nc
b
Binary file test-data/WMI_Lear_expr.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_griddes.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/WMI_Lear_griddes.txt Sat Jan 15 23:20:26 2022 +0000
[
@@ -0,0 +1,6 @@
+#
+# gridID 1
+#
+gridtype  = generic
+gridsize  = 1
+cdo    griddes: Processed 10 variables [0.00s 22MB].
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_invertlat.nc
b
Binary file test-data/WMI_Lear_invertlat.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_names.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/WMI_Lear_names.txt Sat Jan 15 23:20:26 2022 +0000
[
@@ -0,0 +1,2 @@
+ altitude latitude longitude pressure tdry dp mr wspd wdir Drops
+cdo    showname: Processed 10 variables [0.00s 22MB].
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_sellonlatbox.nc
b
Binary file test-data/WMI_Lear_sellonlatbox.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_sellonlatbox_units.nc
b
Binary file test-data/WMI_Lear_sellonlatbox_units.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_showdate.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/WMI_Lear_showdate.txt Sat Jan 15 23:20:26 2022 +0000
[
@@ -0,0 +1,2 @@
+  2003-07-06
+cdo    showdate: Processed 10 variables over 180 timesteps [0.00s 22MB].
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/WMI_Lear_timesteps.nc
b
Binary file test-data/WMI_Lear_timesteps.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/attributes.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/attributes.txt Sat Jan 15 23:20:26 2022 +0000
b
@@ -0,0 +1,2 @@
+Drops@units="number of elements"
+Drops@long_name = "Accumulated # of sonde drops"
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/drops1.nc
b
Binary file test-data/drops1.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/drops2.nc
b
Binary file test-data/drops2.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/drops_cat.nc
b
Binary file test-data/drops_cat.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/lat_long.nc
b
Binary file test-data/lat_long.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/lat_long_modified.nc
b
Binary file test-data/lat_long_modified.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/latitude.nc
b
Binary file test-data/latitude.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/latitude3.nc
b
Binary file test-data/latitude3.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/latitude_diff.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/latitude_diff.txt Sat Jan 15 23:20:26 2022 +0000
[
b'@@ -0,0 +1,183 @@\n+    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID\n+     1 : 2003-07-06 06:30:13       0        1       0 :                  43.585             : -1            \n+     2 : 2003-07-06 06:30:19       0        1       0 :                  43.585             : -1            \n+     3 : 2003-07-06 06:30:29       0        1       0 :                  43.585             : -1            \n+     4 : 2003-07-06 06:30:39       0        1       0 :                  43.585             : -1            \n+     5 : 2003-07-06 06:30:49       0        1       0 :                  43.585             : -1            \n+     6 : 2003-07-06 06:30:59       0        1       0 :                  43.584             : -1            \n+     7 : 2003-07-06 06:31:09       0        1       0 :                  43.584             : -1            \n+     8 : 2003-07-06 06:31:19       0        1       0 :                  43.584             : -1            \n+     9 : 2003-07-06 06:31:29       0        1       0 :                  43.584             : -1            \n+    10 : 2003-07-06 06:31:39       0        1       0 :                  43.584             : -1            \n+    11 : 2003-07-06 06:31:49       0        1       0 :                  43.583             : -1            \n+    12 : 2003-07-06 06:31:59       0        1       0 :                  43.583             : -1            \n+    13 : 2003-07-06 06:32:09       0        1       0 :                  43.583             : -1            \n+    14 : 2003-07-06 06:32:19       0        1       0 :                  43.583             : -1            \n+    15 : 2003-07-06 06:32:29       0        1       0 :                  43.583             : -1            \n+    16 : 2003-07-06 06:32:39       0        1       0 :                  43.584             : -1            \n+    17 : 2003-07-06 06:32:49       0        1       0 :                  43.584             : -1            \n+    18 : 2003-07-06 06:32:59       0        1       0 :                  43.585             : -1            \n+    19 : 2003-07-06 06:33:09       0        1       0 :                  43.585             : -1            \n+    20 : 2003-07-06 06:33:19       0        1       0 :                  43.586             : -1            \n+    21 : 2003-07-06 06:33:29       0        1       0 :                  43.587             : -1            \n+    22 : 2003-07-06 06:33:39       0        1       0 :                  43.587             : -1            \n+    23 : 2003-07-06 06:33:49       0        1       0 :                  43.588             : -1            \n+    24 : 2003-07-06 06:33:59       0        1       0 :                  43.589             : -1            \n+    25 : 2003-07-06 06:34:09       0        1       0 :                  43.589             : -1            \n+    26 : 2003-07-06 06:34:19       0        1       0 :                  43.590             : -1            \n+    27 : 2003-07-06 06:34:29       0        1       0 :                  43.591             : -1            \n+    28 : 2003-07-06 06:34:39       0        1       0 :                  43.591             : -1            \n+    29 : 2003-07-06 06:34:49       0        1       0 :                  43.592             : -1            \n+    30 : 2003-07-06 06:34:59       0        1       0 :                  43.592             : -1            \n+    31 : 2003-07-06 06:35:09       0        1       0 :                  43.593             : -1            \n+    32 : 2003-07-06 06:35:19       0        1       0 :                  43.593             : -1            \n+    33 : 2003-07-06 06:35:29       0        1       0 :                  43.593             : -1            \n+    34 : 2003-07-06 06:35:39       0        1       0 :                  43.593             : -1            \n+    35 : 2003-07-06 06:35:49       0        1       0 :                  43.593             : -1            \n+    36 : 2003-07-06 06'..b'  1       0 :                  42.628             : -1            \n+   147 : 2003-07-06 06:54:29       0        1       0 :                  42.618             : -1            \n+   148 : 2003-07-06 06:54:39       0        1       0 :                  42.608             : -1            \n+   149 : 2003-07-06 06:54:49       0        1       0 :                  42.601             : -1            \n+   150 : 2003-07-06 06:54:59       0        1       0 :                  42.589             : -1            \n+   151 : 2003-07-06 06:55:09       0        1       0 :                  42.577             : -1            \n+   152 : 2003-07-06 06:55:19       0        1       0 :                  42.568             : -1            \n+   153 : 2003-07-06 06:55:29       0        1       0 :                  42.561             : -1            \n+   154 : 2003-07-06 06:55:39       0        1       0 :                  42.549             : -1            \n+   155 : 2003-07-06 06:55:49       0        1       0 :                  42.536             : -1            \n+   156 : 2003-07-06 06:55:59       0        1       0 :                  42.527             : -1            \n+   157 : 2003-07-06 06:56:09       0        1       0 :                  42.518             : -1            \n+   158 : 2003-07-06 06:56:19       0        1       0 :                  42.507             : -1            \n+   159 : 2003-07-06 06:56:29       0        1       0 :                  42.496             : -1            \n+   160 : 2003-07-06 06:56:39       0        1       0 :                  42.485             : -1            \n+   161 : 2003-07-06 06:56:49       0        1       0 :                  42.477             : -1            \n+   162 : 2003-07-06 06:56:59       0        1       0 :                  42.467             : -1            \n+   163 : 2003-07-06 06:57:09       0        1       0 :                  42.458             : -1            \n+   164 : 2003-07-06 06:57:19       0        1       0 :                  42.452             : -1            \n+   165 : 2003-07-06 06:57:29       0        1       0 :                  42.442             : -1            \n+   166 : 2003-07-06 06:57:39       0        1       0 :                  42.434             : -1            \n+   167 : 2003-07-06 06:57:49       0        1       0 :                  42.425             : -1            \n+   168 : 2003-07-06 06:57:59       0        1       0 :                  42.416             : -1            \n+   169 : 2003-07-06 06:58:09       0        1       0 :                  42.409             : -1            \n+   170 : 2003-07-06 06:58:19       0        1       0 :                  42.400             : -1            \n+   171 : 2003-07-06 06:58:29       0        1       0 :                  42.392             : -1            \n+   172 : 2003-07-06 06:58:39       0        1       0 :                  42.384             : -1            \n+   173 : 2003-07-06 06:58:49       0        1       0 :                  42.374             : -1            \n+   174 : 2003-07-06 06:58:59       0        1       0 :                  42.363             : -1            \n+   175 : 2003-07-06 06:59:09       0        1       0 :                  42.355             : -1            \n+   176 : 2003-07-06 06:59:19       0        1       0 :                  42.348             : -1            \n+   177 : 2003-07-06 06:59:29       0        1       0 :                  42.340             : -1            \n+   178 : 2003-07-06 06:59:39       0        1       0 :                  42.333             : -1            \n+   179 : 2003-07-06 06:59:49       0        1       0 :                  42.326             : -1            \n+   180 : 2003-07-06 06:59:59       0        1       0 :                  42.321             : -1            \n+       :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID\n+cdo    info: Processed 180 values from 1 variable over 180 timesteps [0.00s 22MB].\n'
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/latitude_modified.nc
b
Binary file test-data/latitude_modified.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/longitude.nc
b
Binary file test-data/longitude.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/longitude.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/longitude.txt Sat Jan 15 23:20:26 2022 +0000
[
b'@@ -0,0 +1,183 @@\n+    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID\n+     1 : 2003-07-06 06:30:13       0        1       0 :                 -96.733             : -1            \n+     2 : 2003-07-06 06:30:19       0        1       0 :                 -96.733             : -1            \n+     3 : 2003-07-06 06:30:29       0        1       0 :                 -96.733             : -1            \n+     4 : 2003-07-06 06:30:39       0        1       0 :                 -96.733             : -1            \n+     5 : 2003-07-06 06:30:49       0        1       0 :                 -96.733             : -1            \n+     6 : 2003-07-06 06:30:59       0        1       0 :                 -96.734             : -1            \n+     7 : 2003-07-06 06:31:09       0        1       0 :                 -96.734             : -1            \n+     8 : 2003-07-06 06:31:19       0        1       0 :                 -96.735             : -1            \n+     9 : 2003-07-06 06:31:29       0        1       0 :                 -96.735             : -1            \n+    10 : 2003-07-06 06:31:39       0        1       0 :                 -96.735             : -1            \n+    11 : 2003-07-06 06:31:49       0        1       0 :                 -96.736             : -1            \n+    12 : 2003-07-06 06:31:59       0        1       0 :                 -96.737             : -1            \n+    13 : 2003-07-06 06:32:09       0        1       0 :                 -96.737             : -1            \n+    14 : 2003-07-06 06:32:19       0        1       0 :                 -96.737             : -1            \n+    15 : 2003-07-06 06:32:29       0        1       0 :                 -96.738             : -1            \n+    16 : 2003-07-06 06:32:39       0        1       0 :                 -96.738             : -1            \n+    17 : 2003-07-06 06:32:49       0        1       0 :                 -96.738             : -1            \n+    18 : 2003-07-06 06:32:59       0        1       0 :                 -96.739             : -1            \n+    19 : 2003-07-06 06:33:09       0        1       0 :                 -96.739             : -1            \n+    20 : 2003-07-06 06:33:19       0        1       0 :                 -96.740             : -1            \n+    21 : 2003-07-06 06:33:29       0        1       0 :                 -96.740             : -1            \n+    22 : 2003-07-06 06:33:39       0        1       0 :                 -96.740             : -1            \n+    23 : 2003-07-06 06:33:49       0        1       0 :                 -96.741             : -1            \n+    24 : 2003-07-06 06:33:59       0        1       0 :                 -96.741             : -1            \n+    25 : 2003-07-06 06:34:09       0        1       0 :                 -96.742             : -1            \n+    26 : 2003-07-06 06:34:19       0        1       0 :                 -96.742             : -1            \n+    27 : 2003-07-06 06:34:29       0        1       0 :                 -96.743             : -1            \n+    28 : 2003-07-06 06:34:39       0        1       0 :                 -96.743             : -1            \n+    29 : 2003-07-06 06:34:49       0        1       0 :                 -96.743             : -1            \n+    30 : 2003-07-06 06:34:59       0        1       0 :                 -96.744             : -1            \n+    31 : 2003-07-06 06:35:09       0        1       0 :                 -96.744             : -1            \n+    32 : 2003-07-06 06:35:19       0        1       0 :                 -96.744             : -1            \n+    33 : 2003-07-06 06:35:29       0        1       0 :                 -96.745             : -1            \n+    34 : 2003-07-06 06:35:39       0        1       0 :                 -96.745             : -1            \n+    35 : 2003-07-06 06:35:49       0        1       0 :                 -96.745             : -1            \n+    36 : 2003-07-06 06'..b'  1       0 :                 -96.862             : -1            \n+   147 : 2003-07-06 06:54:29       0        1       0 :                 -96.845             : -1            \n+   148 : 2003-07-06 06:54:39       0        1       0 :                 -96.828             : -1            \n+   149 : 2003-07-06 06:54:49       0        1       0 :                 -96.815             : -1            \n+   150 : 2003-07-06 06:54:59       0        1       0 :                 -96.794             : -1            \n+   151 : 2003-07-06 06:55:09       0        1       0 :                 -96.773             : -1            \n+   152 : 2003-07-06 06:55:19       0        1       0 :                 -96.755             : -1            \n+   153 : 2003-07-06 06:55:29       0        1       0 :                 -96.744             : -1            \n+   154 : 2003-07-06 06:55:39       0        1       0 :                 -96.723             : -1            \n+   155 : 2003-07-06 06:55:49       0        1       0 :                 -96.703             : -1            \n+   156 : 2003-07-06 06:55:59       0        1       0 :                 -96.688             : -1            \n+   157 : 2003-07-06 06:56:09       0        1       0 :                 -96.672             : -1            \n+   158 : 2003-07-06 06:56:19       0        1       0 :                 -96.653             : -1            \n+   159 : 2003-07-06 06:56:29       0        1       0 :                 -96.636             : -1            \n+   160 : 2003-07-06 06:56:39       0        1       0 :                 -96.617             : -1            \n+   161 : 2003-07-06 06:56:49       0        1       0 :                 -96.603             : -1            \n+   162 : 2003-07-06 06:56:59       0        1       0 :                 -96.583             : -1            \n+   163 : 2003-07-06 06:57:09       0        1       0 :                 -96.562             : -1            \n+   164 : 2003-07-06 06:57:19       0        1       0 :                 -96.550             : -1            \n+   165 : 2003-07-06 06:57:29       0        1       0 :                 -96.525             : -1            \n+   166 : 2003-07-06 06:57:39       0        1       0 :                 -96.505             : -1            \n+   167 : 2003-07-06 06:57:49       0        1       0 :                 -96.483             : -1            \n+   168 : 2003-07-06 06:57:59       0        1       0 :                 -96.464             : -1            \n+   169 : 2003-07-06 06:58:09       0        1       0 :                 -96.446             : -1            \n+   170 : 2003-07-06 06:58:19       0        1       0 :                 -96.427             : -1            \n+   171 : 2003-07-06 06:58:29       0        1       0 :                 -96.407             : -1            \n+   172 : 2003-07-06 06:58:39       0        1       0 :                 -96.390             : -1            \n+   173 : 2003-07-06 06:58:49       0        1       0 :                 -96.369             : -1            \n+   174 : 2003-07-06 06:58:59       0        1       0 :                 -96.349             : -1            \n+   175 : 2003-07-06 06:59:09       0        1       0 :                 -96.331             : -1            \n+   176 : 2003-07-06 06:59:19       0        1       0 :                 -96.313             : -1            \n+   177 : 2003-07-06 06:59:29       0        1       0 :                 -96.289             : -1            \n+   178 : 2003-07-06 06:59:39       0        1       0 :                 -96.266             : -1            \n+   179 : 2003-07-06 06:59:49       0        1       0 :                 -96.244             : -1            \n+   180 : 2003-07-06 06:59:59       0        1       0 :                 -96.227             : -1            \n+       :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID\n+cdo    info: Processed 180 values from 1 variable over 180 timesteps [0.00s 22MB].\n'
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/outfile_latitude.nc
b
Binary file test-data/outfile_latitude.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/split_latitude.nc
b
Binary file test-data/split_latitude.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/timeseries.nc
b
Binary file test-data/timeseries.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/timeseries_sub.nc
b
Binary file test-data/timeseries_sub.nc has changed
b
diff -r 000000000000 -r 8e0ae5c594e7 test-data/timeseries_timavg.nc
b
Binary file test-data/timeseries_timavg.nc has changed