TNO Intern

Commit 0026a38f authored by Arjo Segers's avatar Arjo Segers
Browse files

Added templates for debugging.

parent 3fc723bc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2860,6 +2860,12 @@ class CSO_S5p_Convert(utopya.UtopyaRc):
            # info ...
            logging.info(indent + '  orbit "%s" ...' % orbit)

            # TESTING ..
            if orbit != "21861":
                logging.warning(f"{indent}    skip!")
                continue
            #endif

            # select single orbit matching expression:
            odf = xlst.Select(
                orbit=orbit, expr=selection_expr, blacklist=blacklist, indent=f"    "
+7 −1
Original line number Diff line number Diff line
@@ -1058,7 +1058,7 @@ class CSO_VIIRS_File(cso_file.CSO_File):
            import scipy
            # loop over pixels:
            for i in range(nx):
                # pixels without data:
                # scan lines without data:
                jj, = numpy.where( values[:,i] < -180.0 )
                # any?
                if len(jj) > 0:
@@ -1324,6 +1324,12 @@ class CSO_VIIRS_Convert(utopya.UtopyaRc):
            # info ...
            logging.info(f"{indent}  orbit '{orbit}' ...")

            ## TESTING ..
            #if orbit != "60846":
            #    logging.warning(f"{indent}    skip!")
            #    continue
            ##endif

            # select orbits:
            olst = xlst.Select(expr=f"%{{orbit}} == '{orbit}'", verbose=False, indent=indent+"    ")
            # info ..