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_')
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)
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)
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_')
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_')