コード例 #1
0
    lg.info("* Found %d datafiles." % (len(frames)))

    ## A list of frames.
    mds = []

    # Loop over the frames and upload them to the DFC.
    for f in frames:

        ## The basename for the data frame, based on frame information.
        bn = "%s_%s" % (f.getChipId(), make_time_dir(f.getStartTimeSec()))

        #bn = "%s_%d-%06d" % (f.getChipId(), f.getStartTimeSec(), f.getStartTimeSubSec())

        # Create the frame image.
        makeFrameImage(bn, f.getPixelMap(), frame_output_path, f.getPixelMask())

        # Create the metadata dictionary for the frame.
        metadata = {
            "id"          : bn,
            #
            "chipid"      : f.getChipId(),
            "hv"          : f.getBiasVoltage(),
            "ikrum"       : f.getIKrum(),
            #
            "lat"         : f.getLatitude(),
            "lon"         : f.getLongitude(),
            "alt"         : f.getAltitude(),
            #
            "start_time"  : f.getStartTimeSec(),
            "end_time"    : f.getEndTimeSec(),
コード例 #2
0
        mds = []

        ## A list of clusters.
        klusters = []

        # Loop over the frames.
        for i, f in enumerate(frames):

            if i % 50 == 0:
                print("*--> '%s': processing frame % 10d..." % (dp.get_name(), i))

            ## The basename for the data frame, based on frame information.
            bn = "%s_%d-%06d" % (f.getChipId(), f.getStartTimeSec(), f.getStartTimeSubSec())

            # Create the frame image.
            makeFrameImage(bn, f.getPixelMap(), frpath)

            # Create the metadata dictionary for the frame.
            metadata = {
                "id"          : bn,
                #
                "chipid"      : f.getChipId(),
                "hv"          : f.getBiasVoltage(),
                "ikrum"       : f.getIKrum(),
                #
                "lat"         : f.getLatitude(),
                "lon"         : f.getLongitude(),
                "alt"         : f.getAltitude(),
                #
                "start_time"  : f.getStartTimeSec(),
                "end_time"    : f.getEndTimeSec(),
コード例 #3
0
    klusters = []

    ## Frame count.
    count = 0

    # Loop over the frames.
    for i, f in enumerate(sorted(frames)):

        if i % 10 == 0:
            print("* Processing frame % 5d of % 5d..." % (i, max_frames))

        ## The basename for the data frame, based on frame information.
        bn = "%s_%d-%06d" % (f.getChipId(), f.getStartTimeSec(), f.getStartTimeSubSec())

        # Create the frame image.
        makeFrameImage(bn, f.getPixelMap(), frpath)

        # Create the metadata dictionary for the frame.
        metadata = {
            "id"          : bn,
            #
            "chipid"      : f.getChipId(),
            "hv"          : f.getBiasVoltage(),
            "ikrum"       : f.getIKrum(),
            #
            "lat"         : f.getLatitude(),
            "lon"         : f.getLongitude(),
            "alt"         : f.getAltitude(),
            #
            "start_time"  : f.getStartTimeSec(),
            "end_time"    : f.getEndTimeSec(),