TNO Intern

Commit 9725b9c1 authored by Arjo Segers's avatar Arjo Segers
Browse files

Sort listings by orbit.

parent e419c766
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@
#   Ensure that "dmode" is used when creating listing file.
#   Explicitly set units of ouptut time variable to `seconds since ...`
#   to ensure correct parsing by ncdump and other tools.
#   Sort input listing by orbit numbers when converting.
#


@@ -2786,8 +2787,8 @@ class CSO_S5p_Convert(utopya.UtopyaRc):
            # add:
            listing.Append(lst)
        # endfor # filenames
        # sort by filename:
        listing.Sort()
        # sort by orbit label:
        listing.Sort(by="orbit")

        # info ...
        logging.info(f"{indent}number of files : %i" % len(listing))
@@ -2839,7 +2840,7 @@ class CSO_S5p_Convert(utopya.UtopyaRc):
        # info ..
        logging.info(f"{indent}found {len(xlst)} orbits with overlap of time range ..")

        # oribit labels:
        # orbit labels:
        orbits = xlst.GetValues("orbit").unique()

        # no download initialized yet:
@@ -3329,7 +3330,7 @@ class CSO_S5p_Download(utopya.UtopyaRc):
        # info ..
        logging.info(f"{indent}found %i orbits with overlap of time range .." % len(xdf))

        # oribit labels:
        # orbit labels:
        orbits = xdf["orbit"].unique()

        # no download initialized yet: