-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from pysat/enh/de2
ENH: Add DE2 instruments
- Loading branch information
Showing
9 changed files
with
269 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# -*- coding: utf-8 -*- | ||
"""The DE2 FPI instrument. | ||
Supports the Fabry-Perot Interferometer (FPI) instrument on Dynamics Explorer 2 | ||
(DE2). | ||
From CDAWeb: | ||
The Fabry-Perot Interferometer (FPI) was a high-resolution remote sensing | ||
instrument designed to measure the thermospheric temperature, meridional wind, | ||
and density of the following metastable atoms: atomic oxygen (singlet S and D) | ||
and the 2P state of ionic atomic oxygen. The FPI performed a wavelength analysis | ||
on the light detected from the thermospheric emission features by spatially | ||
scanning the interference fringe plane with a multichannel array detector. The | ||
wavelength analysis characterized the Doppler line profile of the emitting | ||
species. A sequential altitude scan performed by a commandable horizon scan | ||
mirror provided a cross-sectional view of the thermodynamic and dynamic state of | ||
the thermosphere below the DE 2 orbit. The information obtained from this | ||
investigation was used to study the dynamic response of the thermosphere to the | ||
energy sources caused by magnetospheric electric fields and the absorption of | ||
solar ultraviolet light in the thermosphere. The instrument was based on the | ||
visible airglow experiment (VAE) used in the AE program. The addition of a | ||
scanning mirror, the Fabry-Perot etalon, an image plane detector, and a | ||
calibration lamp were the principal differences. Interference filters isolated | ||
lines at (in Angstroms) 5577, 6300, 7320, 5896, and 5200. The FPI had a field of | ||
view of 0.53 deg (half-cone angle). More details are found in P. B. Hays et al., | ||
Space Sci. Instrum., v. 5, n. 4, p. 395, 1981. From February 16, 1982 to | ||
September 11, 1982 the DE satellite was inverted and the FPI measured galactic | ||
emissions. | ||
Properties | ||
---------- | ||
platform | ||
'de2' | ||
name | ||
'fpi' | ||
inst_id | ||
None Supported | ||
tag | ||
None Supported | ||
Warnings | ||
-------- | ||
- Currently no cleaning routine. | ||
References | ||
---------- | ||
Hays, P B, Killeen, T L, and Kennedy, B C. "Fabry-Perot interferometer on | ||
Dynamics Explorer". Space Sci. Instrum., 5, 395-416, 1981. | ||
""" | ||
|
||
import datetime as dt | ||
import functools | ||
|
||
from pysat.instruments.methods import general as mm_gen | ||
|
||
from pysatNASA.instruments.methods import cdaweb as cdw | ||
from pysatNASA.instruments.methods import de2 as mm_de2 | ||
from pysatNASA.instruments.methods import general as mm_nasa | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument attributes | ||
|
||
platform = 'de2' | ||
name = 'fpi' | ||
tags = {'': '8 s cadence Fabry-Perot Interferometer data'} | ||
inst_ids = {'': ['']} | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument test attributes | ||
|
||
_test_dates = {'': {'': dt.datetime(1983, 1, 1)}} | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument methods | ||
|
||
|
||
# Use standard init routine | ||
init = functools.partial(mm_nasa.init, module=mm_de2, name=name) | ||
|
||
# No cleaning, use standard warning function instead | ||
clean = mm_nasa.clean_warn | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument functions | ||
# | ||
# Use the default CDAWeb and pysat methods | ||
|
||
# Set the list_files routine | ||
fname = 'de2_neutral8s_fpi_{year:04d}{month:02d}{day:02d}_v{version:02d}.cdf' | ||
supported_tags = {'': {'': fname}} | ||
list_files = functools.partial(mm_gen.list_files, | ||
supported_tags=supported_tags) | ||
|
||
# Use the default CDAWeb method | ||
load = cdw.load | ||
|
||
# Support download routine | ||
download_tags = {'': {'': 'DE2_NEUTRAL8S_FPI'}} | ||
download = functools.partial(cdw.cdas_download, supported_tags=download_tags) | ||
|
||
# Support listing files currently on CDAWeb | ||
list_remote_files = functools.partial(cdw.cdas_list_remote_files, | ||
supported_tags=download_tags) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
"""Module for the DE2 VEFI instrument. | ||
From CDAWeb (adpated): | ||
This directory gathers data for the VEFI instrument that flew on the DE 2 | ||
spacecraft which was launched on 3 August 1981 into an elliptical orbit with | ||
an altitude range of 300 km to 1000 km and re-entered the atmosphere on | ||
19 February 1983. | ||
dca (NSSDC ID: 81-070B-02C) | ||
This data set contains the averaged (2 samples per second) DC electric fields in | ||
spacecraft coordinates and orbit information in ASCII format. | ||
ac (NSSDC ID: 81-070B-02E) | ||
This data set contains the averaged AC electric field data (1 or 2 points per | ||
second) and orbit information. | ||
References | ||
---------- | ||
Maynard, N. C., E. A. Bielecki, H. G. Burdick, Instrumentation for vector | ||
electric field measurements from DE-B, Space Sci. Instrum., 5, 523, 1981. | ||
Properties | ||
---------- | ||
platform | ||
'de2' | ||
name | ||
'vefi' | ||
inst_id | ||
None Supported | ||
tag | ||
'dca' or 'ac' | ||
Warnings | ||
-------- | ||
- Currently no cleaning routine. | ||
""" | ||
|
||
import datetime as dt | ||
import functools | ||
|
||
from pysat.instruments.methods import general as mm_gen | ||
from pysatNASA.instruments.methods import cdaweb as cdw | ||
from pysatNASA.instruments.methods import de2 as mm_de2 | ||
from pysatNASA.instruments.methods import general as mm_nasa | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument attributes | ||
|
||
platform = 'de2' | ||
name = 'vefi' | ||
tags = {'': '62 ms combination of Electric Field and Magnetometer', | ||
'dca': '500 ms cadence DC Averaged Electric Field data', | ||
'ac': '500 ms cadence AC Electric Field data'} | ||
inst_ids = {'': [tag for tag in tags]} | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument test attributes | ||
|
||
_test_dates = {'': {tag: dt.datetime(1983, 1, 1) for tag in tags}} | ||
|
||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument methods | ||
|
||
# Use standard init routine | ||
init = functools.partial(mm_nasa.init, module=mm_de2, name=name) | ||
|
||
# No cleaning, use standard warning function instead | ||
clean = mm_nasa.clean_warn | ||
|
||
# ---------------------------------------------------------------------------- | ||
# Instrument functions | ||
# | ||
# Use the default CDAWeb and pysat methods | ||
|
||
# Set the list_files routine | ||
datestr = '{year:04d}{month:02d}{day:02d}_v{version:02d}' | ||
fid = {'': '62ms_vefimagb', | ||
'ac': 'ac500ms_vefi', | ||
'dca': 'dca500ms_vefi'} | ||
fname = 'de2_{fid:s}_{datestr:s}.cdf' | ||
supported_tags = {'': {tag: fname.format(fid=fid[tag], datestr=datestr) | ||
for tag in tags}} | ||
list_files = functools.partial(mm_gen.list_files, | ||
supported_tags=supported_tags) | ||
|
||
# Set the load routine | ||
# Forcing use of cdflib as default since pysatCDF has a known issue with vefi | ||
# data. See pysat/pysatCDF#48 | ||
load = functools.partial(cdw.load, use_cdflib=True) | ||
|
||
# Set the download routine | ||
download_tags = {'': {'': 'DE2_62MS_VEFIMAGB', | ||
'ac': 'DE2_AC500MS_VEFI', | ||
'dca': 'DE2_DCA500MS_VEFI'}} | ||
download = functools.partial(cdw.cdas_download, supported_tags=download_tags) | ||
|
||
# Set the list_remote_files routine | ||
list_remote_files = functools.partial(cdw.cdas_list_remote_files, | ||
supported_tags=download_tags) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters