Skip to content

Commit

Permalink
Update maven_mag.py
Browse files Browse the repository at this point in the history
  • Loading branch information
t-esman authored Sep 6, 2023
1 parent ed505df commit fb5c4f9
Showing 1 changed file with 3 additions and 40 deletions.
43 changes: 3 additions & 40 deletions pysatNASA/instruments/maven_mag.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
"""Module for the MAVEN mag instrument.
Created by: Teresa Esman, NPP at GSFC
Supports the Magnetometer (MAG) onboard the Mars Atmosphere
and Volatile Evolution (MAVEN) satellite.
Accesses local data in CDF format.
Expand All @@ -25,13 +23,7 @@
Examples
--------
::
import pysat
from pysat.utils import registry
registry.register_by_module(pysatNASA.instruments)
mag = pysat.Instrument(platform='MAVEN', name='mag')
mag = pysat.Instrument(platform='maven', name='mag')
mag.download(dt.datetime(2020, 1, 1), dt.datetime(2020, 1, 31))
mag.load(2020, 1, use_header = True)
Expand Down Expand Up @@ -67,18 +59,8 @@
init = functools.partial(mm_nasa.init, module=mm_mvn, name=name)


def clean(self):
"""Clean MAVEN mag data to the specified level.
Note
----
Supports 'clean', 'dusty', 'dirty', 'none'. Method is
not called by pysat if clean_level is None or 'none'.
"""

return
# Use default clean
clean = mm_nasa.clean


# ----------------------------------------------------------------------------
Expand All @@ -103,25 +85,6 @@ def clean(self):
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=download_tags)


def init(self):
"""Initialize the Instrument object with instrument specific values.
Runs once upon instantiation.
Parameters
-----------
self : pysat.Instrument
Instrument class object
"""

pysat.logger.info(mm_mvn.ackn_str)
self.acknowledgements = mm_mvn.ackn_str
self.references = mm_mvn.references

return


# Set the load routine
load = functools.partial(cdw.load, epoch_name='epoch',
pandas_format=pandas_format, use_cdflib=True)

0 comments on commit fb5c4f9

Please sign in to comment.