def process_nexus_tile()

in sdap/processors/normalizetimebeginningofmonth.py [0:0]


    def process_nexus_tile(self, nexus_tile):
        the_tile_type = nexus_tile.tile.WhichOneof("tile_type")

        the_tile_data = getattr(nexus_tile.tile, the_tile_type)

        time = the_tile_data.time

        timeObj = datetime.datetime.utcfromtimestamp(time)

        timeObj = timeObj.replace(day=1, hour=0, minute=0, second=0, microsecond=0)

        timeObj = timezone('UTC').localize(timeObj)

        the_tile_data.time = int((timeObj - EPOCH).total_seconds())

        yield nexus_tile