Skip to content

Commit

Permalink
MAINT: update clean routine
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Nov 21, 2023
1 parent 939d26d commit af404d0
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions pysatNASA/instruments/cnofs_vefi.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@

import datetime as dt
import functools
import numpy as np

from pysat.instruments.methods import general as mm_gen

Expand Down Expand Up @@ -91,21 +90,8 @@
init = functools.partial(mm_nasa.init, module=mm_cnofs, name=name)


def clean(self):
"""Clean VEFI data to the specified level.
Note
----
'dusty' or 'clean' removes data when interpolation flag is set to 1
'dirty' is the same as 'none'
"""

if (self.clean_level == 'dusty') | (self.clean_level == 'clean'):
idx, = np.where(self['B_flag'] == 0)
self.data = self[idx, :]

return
# Use default clean
clean = mm_nasa.clean


# ----------------------------------------------------------------------------
Expand Down

0 comments on commit af404d0

Please sign in to comment.