Skip to content

Commit 8b10e16

Browse files
mike-ganglFrank Greguskafrankinspacesureshshsvpetermao
authored
Develop (#131)
* Issues/91 (#92) * added citation creation tests and functionality to subscriber and downloader * added verbose option to create_citation_file command, previously hard coded * updated changelog (whoops) and fixed regression test: 1. Issue where the citation file now downloaded affected the counts 2. Issue where the logic for determining if a file modified time was changing or not was picking up the new citation file which _always_ gets rewritten to update the 'last accessed' date. * updated request to include exec_info in warning; fixed issue with params not being a dictionary caused errors * changed a warning to debug for citation file. fixed test issues * Enable debug logging during regression tests and set max parallel workflows to 2 * added output to pytest * fixed test to only look for downlaoded data files not citation file due to 'random' cmr errors when creating a citation. * added mock testing and retry on 503 * added 503 fixes Co-authored-by: Frank Greguska <[email protected]> * fixed issues where token was not proagated to CMR queries (#95) * Misc fixes (#101) * added ".tiff" to default extensions to address #100 * removed 'warning' message on not downloading all data to close #99 * updated help documentation for start/end times to close #79 * added version update, updates to CHANGELOG * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * Update python-app.yml * updated poetry version Version matches build/test versions. * Issues/98 (#107) * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * added EDL (not cmr-token) based get, list,delete, refresh token * updated token regression tests * updates and tests for subscriber moving to EDL. * marked tests as regression test * Update subscriber/podaac_data_downloader.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_data_subscriber.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * added exec info to errors, cleaned up some log statements Co-authored-by: Frank Greguska <[email protected]> * Issues/109 (#111) * Develop (#103) * Issues/91 (#92) * added citation creation tests and functionality to subscriber and downloader * added verbose option to create_citation_file command, previously hard coded * updated changelog (whoops) and fixed regression test: 1. Issue where the citation file now downloaded affected the counts 2. Issue where the logic for determining if a file modified time was changing or not was picking up the new citation file which _always_ gets rewritten to update the 'last accessed' date. * updated request to include exec_info in warning; fixed issue with params not being a dictionary caused errors * changed a warning to debug for citation file. fixed test issues * Enable debug logging during regression tests and set max parallel workflows to 2 * added output to pytest * fixed test to only look for downlaoded data files not citation file due to 'random' cmr errors when creating a citation. * added mock testing and retry on 503 * added 503 fixes Co-authored-by: Frank Greguska <[email protected]> * fixed issues where token was not proagated to CMR queries (#95) * Misc fixes (#101) * added ".tiff" to default extensions to address #100 * removed 'warning' message on not downloading all data to close #99 * updated help documentation for start/end times to close #79 * added version update, updates to CHANGELOG * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * Update python-app.yml Co-authored-by: Frank Greguska <[email protected]> * updated poetry version Version matches build/test versions. * Update README.md * Update podaac_data_downloader.py Fixing for issues 109 - adding capability to download by granule-name * Update Downloader.md Fixed the help file * added changelog entries, regressiont ests * added poetry lock cleanup Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> * added README information and updates (#113) * fixed pymock issues... again * Extension regex (#121) * extend -e option to handle regular expressions (#115) * Develop into Main (1.12.0) (#114) * Issues/91 (#92) * added citation creation tests and functionality to subscriber and downloader * added verbose option to create_citation_file command, previously hard coded * updated changelog (whoops) and fixed regression test: 1. Issue where the citation file now downloaded affected the counts 2. Issue where the logic for determining if a file modified time was changing or not was picking up the new citation file which _always_ gets rewritten to update the 'last accessed' date. * updated request to include exec_info in warning; fixed issue with params not being a dictionary caused errors * changed a warning to debug for citation file. fixed test issues * Enable debug logging during regression tests and set max parallel workflows to 2 * added output to pytest * fixed test to only look for downlaoded data files not citation file due to 'random' cmr errors when creating a citation. * added mock testing and retry on 503 * added 503 fixes Co-authored-by: Frank Greguska <[email protected]> * fixed issues where token was not proagated to CMR queries (#95) * Misc fixes (#101) * added ".tiff" to default extensions to address #100 * removed 'warning' message on not downloading all data to close #99 * updated help documentation for start/end times to close #79 * added version update, updates to CHANGELOG * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * Update python-app.yml * updated poetry version Version matches build/test versions. * Issues/98 (#107) * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * added EDL (not cmr-token) based get, list,delete, refresh token * updated token regression tests * updates and tests for subscriber moving to EDL. * marked tests as regression test * Update subscriber/podaac_data_downloader.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_data_subscriber.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * Update subscriber/podaac_access.py Co-authored-by: Frank Greguska <[email protected]> * added exec info to errors, cleaned up some log statements Co-authored-by: Frank Greguska <[email protected]> * Issues/109 (#111) * Develop (#103) * Issues/91 (#92) * added citation creation tests and functionality to subscriber and downloader * added verbose option to create_citation_file command, previously hard coded * updated changelog (whoops) and fixed regression test: 1. Issue where the citation file now downloaded affected the counts 2. Issue where the logic for determining if a file modified time was changing or not was picking up the new citation file which _always_ gets rewritten to update the 'last accessed' date. * updated request to include exec_info in warning; fixed issue with params not being a dictionary caused errors * changed a warning to debug for citation file. fixed test issues * Enable debug logging during regression tests and set max parallel workflows to 2 * added output to pytest * fixed test to only look for downlaoded data files not citation file due to 'random' cmr errors when creating a citation. * added mock testing and retry on 503 * added 503 fixes Co-authored-by: Frank Greguska <[email protected]> * fixed issues where token was not proagated to CMR queries (#95) * Misc fixes (#101) * added ".tiff" to default extensions to address #100 * removed 'warning' message on not downloading all data to close #99 * updated help documentation for start/end times to close #79 * added version update, updates to CHANGELOG * added token get,delete, refresh and list operations * Revert "added token get,delete, refresh and list operations" This reverts commit 15aba90. * Update python-app.yml Co-authored-by: Frank Greguska <[email protected]> * updated poetry version Version matches build/test versions. * Update README.md * Update podaac_data_downloader.py Fixing for issues 109 - adding capability to download by granule-name * Update Downloader.md Fixed the help file * added changelog entries, regressiont ests * added poetry lock cleanup Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> * added README information and updates (#113) * fixed pymock issues... again Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> * extend -e option to handle regular expressions formerly, -e could not handle PTM_\d+ extensions without the user explicitly calling all of them. --------- Co-authored-by: mike-gangl <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> * added dcoumentation and tests for regex * converted defaults to regexes, added gtiff test --------- Co-authored-by: Peter Mao <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> * closes 118. retries was never hit because range is not end inclusive. (#119) * closes 118. retries was never hit ebcause range is not end inclusive. * updated test to catch now-thrown exception * added --dry-run option, docs, and test cases (#124) * added --dry-run option, docs, and test cases * Update subscriber/podaac_data_downloader.py Added more elegant way of download limit application Co-authored-by: Stepheny Perez <[email protected]> --------- Co-authored-by: Stepheny Perez <[email protected]> * Issues/70 (#117) * added code for updating version * added chagnelog * moved version check into __main__ instead of on import of the module * added sorting of releases from github to find latest release. * added authenticated (option) access to github API to rpevent rate limiting * separate out auth/token regression tests * Issues/127 (#128) * added token sensitivity filter to remove tokens from CMR queries * added changelog updates * updated some lingering merge issues (huh?) * updated regression test * updated ubuntu versions * removed 18.04 ubuntu from workflows/actions * version and documentation updates (#130) --------- Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: Frank Greguska <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: sureshshsv <[email protected]> Co-authored-by: Peter Mao <[email protected]> Co-authored-by: Stepheny Perez <[email protected]>
1 parent 99807eb commit 8b10e16

17 files changed

+879
-167
lines changed

.github/workflows/python-app.yml

+40-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
1919
poetry-version: [ "1.1.14" ]
20-
os: [ ubuntu-18.04, macos-latest, windows-latest ]
20+
os: [ ubuntu-22.04, macos-latest, windows-latest ]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v2
@@ -39,8 +39,10 @@ jobs:
3939
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4040
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4141
- name: Test with pytest
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4244
run: |
43-
poetry run pytest -m "not regression"
45+
poetry run pytest -m "not regression and not token"
4446
- name: netrc-gen
4547
uses: extractions/netrc@v1
4648
with:
@@ -50,5 +52,41 @@ jobs:
5052
- name: Regression Test with pytest
5153
env:
5254
PODAAC_LOGLEVEL: "DEBUG"
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5356
run: |
5457
poetry run pytest -o log_cli=true --log-cli-level=DEBUG -m "regression"
58+
59+
auth_regression:
60+
needs: build
61+
strategy:
62+
fail-fast: false
63+
max-parallel: 1
64+
matrix:
65+
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
66+
poetry-version: [ "1.1.14" ]
67+
os: [ ubuntu-22.04, macos-latest, windows-latest ]
68+
runs-on: ${{ matrix.os }}
69+
steps:
70+
- uses: actions/checkout@v3
71+
- name: Set up Python
72+
uses: actions/setup-python@v4
73+
with:
74+
python-version: ${{ matrix.python-version }}
75+
- name: Install Poetry
76+
uses: abatilo/[email protected]
77+
with:
78+
poetry-version: ${{ matrix.poetry-version }}
79+
- name: Install dependencies
80+
run: |
81+
poetry install
82+
- name: netrc-gen
83+
uses: extractions/netrc@v1
84+
with:
85+
machine: urs.earthdata.nasa.gov
86+
username: ${{ secrets.EDL_OPS_USERNAME }}
87+
password: ${{ secrets.EDL_OPS_PASSWORD }}
88+
- name: Regression Test with pytest
89+
env:
90+
PODAAC_LOGLEVEL: "DEBUG"
91+
run: |
92+
poetry run pytest -o log_cli=true --log-cli-level=DEBUG -m "token"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
47-
os: [ ubuntu-18.04, macos-latest, windows-latest ]
47+
os: [ ubuntu-22.04, macos-latest, windows-latest ]
4848
runs-on: ${{ matrix.os }}
4949
steps:
5050
- name: Set up Python

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55

6+
## 1.13.0
7+
### Added
8+
- Added --dry-run option to subscriber and downloader to view the files that _would_ be downloaded without actuall downloading them. [102](https://github.com/podaac/data-subscriber/issues/102)
9+
- Added new feature allowing regex to be used in `--extension` `-e` options. For example using -e `PTM_\\d+` would match data files like `filename.PTM_1`, `filename.PTM_2` and `filename.PTM_10`, instead of specifying all possible combinations (`-e PTM_1, -e PTM_2, ..., -e PMT_10`) [115](https://github.com/podaac/data-subscriber/issues/115)
10+
- Added check for updated version [70](https://github.com/podaac/data-subscriber/issues/70)
11+
- Removed CMR Token from log messages [127](https://github.com/podaac/data-subscriber/issues/127)
12+
13+
614
## 1.12.0
715
### Fixed
816
- Added EDL based token downloading, removing CMR tokens [98](https://github.com/podaac/data-subscriber/issues/98),

Downloader.md

+26-21
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For installation and dependency information, please see the [top-level README](R
66

77
```
88
$> podaac-data-downloader -h
9-
usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-f] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-e EXTENSIONS] [--granule-name GRANULE] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER] [--limit LIMIT]
9+
usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-f] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-e EXTENSIONS] [-gr GRANULENAME] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER] [--limit LIMIT] [--dry-run]
1010
1111
optional arguments:
1212
-h, --help show this help message and exit
@@ -17,44 +17,39 @@ optional arguments:
1717
--cycle SEARCH_CYCLES
1818
Cycle number for determining downloads. can be repeated for multiple cycles
1919
-sd STARTDATE, --start-date STARTDATE
20-
The ISO date time before which data should be retrieved. For Example, --start-date 2021-01-14T00:00:00Z
20+
The ISO date time after which data should be retrieved. For Example, --start-date 2021-01-14T00:00:00Z
2121
-ed ENDDATE, --end-date ENDDATE
22-
The ISO date time after which data should be retrieved. For Example, --end-date 2021-01-14T00:00:00Z
23-
-f, --force
24-
Flag to force downloading files that are listed in CMR query, even if the file exists and checksum matches
22+
The ISO date time before which data should be retrieved. For Example, --end-date 2021-01-14T00:00:00Z
23+
-f, --force Flag to force downloading files that are listed in CMR query, even if the file exists and checksum matches
2524
-b BBOX, --bounds BBOX
26-
The bounding rectangle to filter result in. Format is W Longitude,S Latitude,E Longitude,N Latitude without
27-
spaces. Due to an issue with parsing arguments, to use this command, please use the -b="-180,-90,180,90" syntax
28-
when calling from the command line. Default: "-180,-90,180,90".
25+
The bounding rectangle to filter result in. Format is W Longitude,S Latitude,E Longitude,N Latitude without spaces. Due to an issue with parsing arguments, to use this command, please use the -b="-180,-90,180,90" syntax when calling from the command line.
26+
Default: "-180,-90,180,90".
2927
-dc Flag to use cycle number for directory where data products will be downloaded.
3028
-dydoy Flag to use start time (Year/DOY) of downloaded data for directory where data products will be downloaded.
31-
-dymd Flag to use start time (Year/Month/Day) of downloaded data for directory where data products will be
32-
downloaded.
29+
-dymd Flag to use start time (Year/Month/Day) of downloaded data for directory where data products will be downloaded.
3330
-dy Flag to use start time (Year) of downloaded data for directory where data products will be downloaded.
3431
--offset OFFSET Flag used to shift timestamp. Units are in hours, e.g. 10 or -10.
3532
-e EXTENSIONS, --extensions EXTENSIONS
36-
The extensions of products to download. Default is [.nc, .h5, .zip, .tar.gz]
37-
-gr GRANULE, --granule-name GRANULE
38-
The name of the granule to download. Only one granule name can be specified. Script will download all files matching similar granule name sans extension.
33+
Regexps of extensions of products to download. Default is [.nc, .h5, .zip, .tar.gz, .tiff]
34+
-gr GRANULENAME, --granule-name GRANULENAME
35+
Flag to download specific granule from a collection. This parameter can only be used if you know the granule name. Only one granule name can be supplied
3936
--process PROCESS_CMD
4037
Processing command to run on each downloaded file (e.g., compression). Can be specified multiple times.
4138
--version Display script version information and exit.
4239
--verbose Verbose mode.
4340
-p PROVIDER, --provider PROVIDER
4441
Specify a provider for collection search. Default is POCLOUD.
45-
--limit LIMIT Integer limit for number of granules to download. Useful in testing. Defaults to 2000
42+
--limit LIMIT Integer limit for number of granules to download. Useful in testing. Defaults to no limit.
43+
--dry-run Search and identify files to download, but do not actually download them
4644
4745
```
4846

49-
##Run the Script
50-
5147
## Step 2: Run the Script
5248

5349
Usage:
5450
```
55-
usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-f]
56-
[-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-e EXTENSIONS] [--process PROCESS_CMD]
57-
[--version] [--verbose] [-p PROVIDER] [--limit LIMIT]
51+
usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-f] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-e EXTENSIONS] [-gr GRANULENAME] [--process PROCESS_CMD] [--version] [--verbose]
52+
[-p PROVIDER] [--limit LIMIT] [--dry-run]
5853
```
5954

6055
To run the script, the following parameters are required:
@@ -215,17 +210,27 @@ podaac-data-downloader -c VIIRS_N20-OSPO-L2P-v2.61 -d ./data -b="-180,-90,180,90
215210

216211
### Setting extensions
217212

218-
Some collections have many files. To download a specific set of files, you can set the extensions on which downloads are filtered. By default, ".nc", ".h5", and ".zip" files are downloaded by default.
213+
Some collections have many files. To download a specific set of files, you can set the extensions on which downloads are filtered. By default, ".nc", ".h5", and ".zip" files are downloaded by default. The `-e` option is a regular expression check so you can do advanced things like `-e PTM_\\d+` to match `PTM_` followed by one or more digits- useful when the ending of a file has no suffix and has a number (1-12 for PTM, in this example)
219214

220215
```
221216
-e EXTENSIONS, --extensions EXTENSIONS
222-
The extensions of products to download. Default is [.nc, .h5, .zip]
217+
Regexps of extensions of products to download. Default is [.nc, .h5, .zip, .tar.gz, .tiff]
223218
```
224219

225220
An example of the -e usage- note the -e option is additive:
226221
```
227222
podaac-data-subscriber -c VIIRS_N20-OSPO-L2P-v2.61 -d ./data -e .nc -e .h5 -sd 2020-06-01T00:46:02Z -ed 2020-07-01T00:46:02Z
228223
```
224+
225+
One may also specify a regular expression to select files. For example, the following are equivalent:
226+
227+
`podaac-data-subscriber -c VIIRS_N20-OSPO-L2P-v2.61 -d ./data -e PTM_1, -e PTM_2, ..., -e PMT_10 -sd 2020-06-01T00:46:02Z -ed 2020-07-01T00:46:02Z`
228+
229+
and
230+
231+
`podaac-data-subscriber -c VIIRS_N20-OSPO-L2P-v2.61 -d ./data -e PTM_\\d+ -sd 2020-06-01T00:46:02Z -ed 2020-07-01T00:46:02Z`
232+
233+
229234
### run a post download process
230235

231236
Using the `--process` option, you can run a simple command agaisnt the "just" downloaded file. This will take the format of "<command> <path/to/file>". This means you can run a command like `--process gzip` to gzip all downloaded files. We do not support more advanced processes at this time (piping, running a process on a directory, etc).

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ pip install podaac-data-subscriber
3737
you should now have access to the downloader and subscriber Command line interfaces:
3838

3939
```
40-
$> podaac-data-subscriber -h
41-
usage: podaac_data_subscriber.py [-h] -c COLLECTION -d OUTPUTDIRECTORY [-sd STARTDATE] [-ed ENDDATE] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-m MINUTES]
42-
[-e EXTENSIONS] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER]
40+
$> usage: PO.DAAC data subscriber [-h] -c COLLECTION -d OUTPUTDIRECTORY [-f] [-sd STARTDATE] [-ed ENDDATE] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-m MINUTES]
41+
[-e EXTENSIONS] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER] [--dry-run]
4342
4443
...
4544
```
4645

4746
```
48-
$> podaac-data-downloader -h
49-
usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy] [--offset OFFSET] [-e EXTENSIONS] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER] [--limit LIMIT]
47+
$> usage: PO.DAAC bulk-data downloader [-h] -c COLLECTION -d OUTPUTDIRECTORY [--cycle SEARCH_CYCLES] [-sd STARTDATE] [-ed ENDDATE] [-f] [-b BBOX] [-dc] [-dydoy] [-dymd] [-dy]
48+
[--offset OFFSET] [-e EXTENSIONS] [-gr GRANULENAME] [--process PROCESS_CMD] [--version] [--verbose] [-p PROVIDER] [--limit LIMIT] [--dry-run]
49+
5050
5151
...
5252
```
@@ -114,6 +114,14 @@ export PODAAC_LOGLEVEL=DEBUG
114114

115115
And then run the script. This should give you more verbose output on URL requests to CMR, tokens, etc.
116116

117+
### OTHER OPTIONS
118+
119+
The podaac downloader and subscriber make calls to github for checking recent releases. Unauthenticated requests are limited to 60 per hour. If you start seeing errors like:
120+
```
121+
releases_json = {'documentation_url': 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting', 'message': "API... here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"}
122+
```
123+
You'll want to set the environment variable GITHUB_TOKEN to a github personal access token- this allows for up to 5000 calls per hour. This requires a free github account. Most users will not run in to this issue.
124+
117125

118126
### In need of Help?
119127
The PO.DAAC User Services Office is the primary point of contact for answering your questions concerning data and information held by the PO.DAAC. User Services staff members are knowledgeable about both the data ordering system and the data products themselves. We answer questions about data, route requests to other DAACs, and direct questions we cannot answer to the appropriate information source.

0 commit comments

Comments
 (0)