From 19bc1329f9610ab10ed8143284aba9a9e8ef50f1 Mon Sep 17 00:00:00 2001 From: Jeff Klenzing Date: Mon, 2 Oct 2023 13:31:12 -0400 Subject: [PATCH] DOC: add refs and acknowledgements --- pysatNASA/instruments/methods/reach.py | 18 +++++++++++++++--- pysatNASA/instruments/reach_dosimeter.py | 11 ++++++++++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/pysatNASA/instruments/methods/reach.py b/pysatNASA/instruments/methods/reach.py index caadb7f6..17329378 100644 --- a/pysatNASA/instruments/methods/reach.py +++ b/pysatNASA/instruments/methods/reach.py @@ -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")) + ))} diff --git a/pysatNASA/instruments/reach_dosimeter.py b/pysatNASA/instruments/reach_dosimeter.py index 6dc6a33c..64e83943 100644 --- a/pysatNASA/instruments/reach_dosimeter.py +++ b/pysatNASA/instruments/reach_dosimeter.py @@ -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()}