Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjtanner committed Dec 17, 2024
1 parent 9660ae5 commit 7e8dfb7
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions odfcontrol/odfcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,6 @@ def download_data(self,repo='esa',level='ODF',
--OPTIONAL--
--data_dir: (string/path): Path to directory where the data will be
downloaded. Automatically creates directory
data_dir/odfid.
Default: Default from sas_config file, or
current working directory.
--repo: (string): Which repository to use to download data.
Default: 'esa'
Can be either
Expand All @@ -416,13 +410,16 @@ def download_data(self,repo='esa',level='ODF',
Default: 'ODF'
Can be 'ODF, 'PPS' or 'ALL'.
--data_dir: (string/path): Path to directory where the data will be
downloaded. Automatically creates directory
data_dir/odfid.
Default: Default from sas_config file, or
current working directory.
--overwrite: (boolean): If True will force overwrite of data if odfid
data already exists in data_dir/.
--encryption_key: (string): Encryption key for proprietary data, a string 32
characters long. -OR- path to file containing
ONLY the encryption key.
Note: ONLY used for data from the HEASARC.
--logger: (TaskLogger): Only used if called from inside 'basic_setup'.
--proprietary (boolean): Flag for downloading proprietary data from
the XSA at ESA.
Expand All @@ -432,6 +429,30 @@ def download_data(self,repo='esa',level='ODF',
only. (Optinal, astroquery will ask user
for username and password if filename
not given.)
--encryption_key: (string): Encryption key for proprietary data, a string 32
characters long. -OR- path to file containing
ONLY the encryption key.
Note: ONLY used for data from the HEASARC.
--PPS_subset: (boolean): Set PPS_subset=True if downloading a subset of PPS
files form the XMM-Newton archive.
--filename: (string): If the exact PPS file name is known, then this can
be used to download a single PPS file.
The remaining inputs are used for downloading groups of PPS files using a
particular file pattern. Using these requires an understanding of PPS
filenames.
instname: instrument name
expflag: Exposure flag
expno: Exposure number
product_type: Product type
datasubsetno: data subset number/character
sourceno: Source number or slew step number
extension: File format
"""

# Where are we?
Expand Down Expand Up @@ -579,6 +600,8 @@ def calibrate_odf(self,obs_dir=None,
--recalibrate: (boolean): If True will rerun odfingest and cifbuild.
--logger: (TaskLogger): Only used if called from inside 'basic_setup'.
"""

# Where are we?
Expand Down

0 comments on commit 7e8dfb7

Please sign in to comment.