Example #1
0
    def __init__(self):
        super().__init__()
        # [-] switch to limit resolution to the horizontal direction
        self.swresohoriz = True
        # [-] switch to use only speed resolutions (works with swresohoriz = True)
        self.swresospd = False
        # [-] switch to use only heading resolutions (works with swresohoriz = True)
        self.swresohdg = False
        # [-] switch to limit resolution to the vertical direction
        self.swresovert = False

        mvp_stackfuns = {
            "RMETHH": [
                "RMETHH [method]",
                "[txt]",
                self.setresometh,
                "Set resolution method to be used horizontally",
            ],
            "RMETHV": [
                "RMETHV [method]",
                "[txt]",
                self.setresometv,
                "Set resolution method to be used vertically",
            ]
        }
        stack.append_commands(mvp_stackfuns)
Example #2
0
    def __init__(self, name, dt, header):
        self.name        = name
        self.file        = None
        self.dataparents = []
        self.header      = header.split('\n')
        self.tlog        = 0.0
        self.selvars     = []

        # In case this is a periodic logger: log timestep
        self.dt          = dt
        self.default_dt  = dt

        # Register a command for this logger in the stack
        stackcmd = {name : [
            name + ' ON/OFF,[dt] or ADD [FROM parent] var1,...,varn',
            '[txt,float/txt,...]', self.stackio, name+" data logging on"]
        }
        stack.append_commands(stackcmd)
    def __init__(self, name, dt, header):
        self.name = name
        self.file = None
        self.dataparents = []
        self.header = header.split('\n')
        self.tlog = 0.0
        self.selvars = []

        # In case this is a periodic logger: log timestep
        self.dt = dt
        self.default_dt = dt

        # Register a command for this logger in the stack
        stackcmd = {name: [
            name + ' ON/OFF,[dt] or ADD [FROM parent] var1,...,varn',
            '[txt,float/word,...]', self.stackio, name+" data logging on"]
        }
        stack.append_commands(stackcmd)
Example #4
0
    def __init__(self, name):
        self.name        = name
        self.file        = None
        self.dataparents = []
        self.header      = ''
        self.tlog        = 0.0
        self.allvars     = []
        self.selvars     = []

        # In case this is a periodic logger: log timestep
        self.dt          = 0.0
        self.default_dt  = 0.0

        # Register a command for this logger in the stack
        stackcmd = {name : [
            name + ' ON/OFF,[dt] or LISTVARS or SELECTVARS var1,...,varn',
            '[txt,float/txt,...]', self.stackio, name+" data logging on"]
        }
        stack.append_commands(stackcmd)
Example #5
0
    def __init__(self, name):
        self.name = name
        self.file = None
        self.dataparents = []
        self.header = ''
        self.tlog = 0.0
        self.allvars = []
        self.selvars = []

        # In case this is a periodic logger: log timestep
        self.dt = 0.0
        self.default_dt = 0.0

        # Register a command for this logger in the stack
        stackcmd = {
            name: [
                name + ' ON/OFF,[dt] or LISTVARS or SELECTVARS var1,...,varn',
                '[txt,float/txt,...]', self.stackio, name + " data logging on"
            ]
        }
        stack.append_commands(stackcmd)