Skip to content

Commit

Permalink
DOC: add refs and acknowledgements
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Oct 2, 2023
1 parent d3f6a35 commit 19bc132
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
18 changes: 15 additions & 3 deletions pysatNASA/instruments/methods/reach.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# -*- coding: utf-8 -*-
"""Provides non-instrument specific routines for REACH data."""

ackn_str = ' '.join(("Insert ackn"))
ackn_str = "Please load a file for full acknowledgments."

refs = {'dosimeter': ' '.join(('Insert ref'))
}
refs = {'dosimeter':
'\n'.join((' '.join(("Guild, T., O'Brien, T.P., Boyd,",
"A.J., Mazur, J.E., Halford, A.J., (2019)",
"Intra-calibration of REACH Dosimeters,",
"AEROSPACE REPORT NO. TOR-2019-02361")),
' '.join(("Halford, A.J., Guild, T., O'Brien, T.P., Boyd,",
"A.J., Mazur, J.E. (2019)",
"REACH Maps and Indices for UDL: Version 1,",
"AEROSPACE REPORT NO. TOR-2019-02650")),
' '.join(("Guild, T., O'Brien, T.P., Boyd, A.J., Mazur,",
"J.E. (2021)",
"REACH Maps and Indices for UDL: Version 1",
"AEROSPACE REPORT NO. TOR-2021-01076"))
))}
11 changes: 10 additions & 1 deletion pysatNASA/instruments/reach_dosimeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,22 @@
# Use default clean
clean = mm_nasa.clean


def preprocess(self):
"""Update acknowledgement with info from file."""

self.acknowledgements = self.meta.header.Acknowledgement

return


# ----------------------------------------------------------------------------
# Instrument functions
#
# Use the default CDAWeb and pysat methods

# Set the list_files routine
datestr = '{year:4d}{month:02d}{day:02d}'
datestr = '{year:04d}{month:02d}{day:02d}'
fname = 'reach-vid-{inst_id}_dosimeter-l1c_{datestr}_v{{version:01d}}.nc'
supported_tags = {iid: {'': fname.format(inst_id=iid, datestr=datestr)}
for iid in inst_ids.keys()}
Expand Down

0 comments on commit 19bc132

Please sign in to comment.