Пример #1
0
def default(inst):
    """Default routine to be applied when loading data. Removes redundant naming

    """
    import pysat.instruments.icon_ivm as icivm
    inst.tag = 'level_2'
    icivm.remove_icon_names(inst, target='ICON_L2_EUV_Daytime_OP_')
Пример #2
0
 def test_remove_names_target(self):
     self.testInst.tag = 'level_2'
     self.testInst.sat_id = 'a'
     
     self.testInst['ICON_L2_IVM_A_Blurp'] = self.testInst['dummy1']
     icivm.remove_icon_names(self.testInst, target='ICON_L2_IVM')
     # check prepended text removed
     assert (len(self.testInst['_A_Blurp']) > 0)
     # check other names untouched
     assert (len(self.testInst['dummy1']) > 0)
Пример #3
0
    def test_remove_names_target(self):
        self.testInst.tag = 'level_2'
        self.testInst.sat_id = 'a'

        self.testInst['ICON_L2_IVM_A_Blurp'] = self.testInst['dummy1']
        icivm.remove_icon_names(self.testInst, target='ICON_L2_IVM')
        # check prepended text removed
        assert (len(self.testInst['_A_Blurp']) > 0)
        # check other names untouched
        assert (len(self.testInst['dummy1']) > 0)
Пример #4
0
def default(inst):
    """Default routine to be applied when loading data.

    Note
    ----
        Removes ICON preamble on variable names.

    """
    import pysat.instruments.icon_ivm as icivm
    inst.tag = 'level_2'
    icivm.remove_icon_names(inst, target='ICON_L2_MIGHTI_')
Пример #5
0
def default(inst):
    """Default routine to be applied when loading data.

    Parameters
    -----------
    inst : (pysat.Instrument)
        Instrument class object

    Note
    ----
        Removes ICON preamble on variable names.

    """

    import pysat.instruments.icon_ivm as icivm
    inst.tag = 'level_2'
    icivm.remove_icon_names(inst, target='ICON_L2_EUV_Daytime_OP_')