Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.14.0 #140

Merged
merged 40 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9793d67
Issues/91 (#92)
mike-gangl Aug 4, 2022
c26bafb
fixed issues where token was not proagated to CMR queries (#95)
mike-gangl Aug 5, 2022
f8783bd
Misc fixes (#101)
mike-gangl Aug 23, 2022
5694b9d
added version update, updates to CHANGELOG
mike-gangl Aug 23, 2022
9680163
Merge branch 'develop' of https://github.com/podaac/data-subscriber i…
mike-gangl Aug 23, 2022
15aba90
added token get,delete, refresh and list operations
mike-gangl Aug 24, 2022
80f6b11
Revert "added token get,delete, refresh and list operations"
mike-gangl Aug 24, 2022
7333948
Update python-app.yml
mike-gangl Sep 2, 2022
583121c
updated poetry version
mike-gangl Sep 2, 2022
3f9d050
Issues/98 (#107)
mike-gangl Oct 19, 2022
27b475a
Issues/109 (#111)
mike-gangl Dec 12, 2022
2a402d7
added README information and updates (#113)
mike-gangl Dec 12, 2022
a2a7ae0
Merge branch 'main' into develop
mike-gangl Dec 12, 2022
35c8fc2
fixed pymock issues... again
mike-gangl Dec 12, 2022
ad50178
Extension regex (#121)
mike-gangl Feb 3, 2023
0e37c14
closes 118. retries was never hit because range is not end inclusive.…
mike-gangl Mar 15, 2023
0b9dd56
added --dry-run option, docs, and test cases (#124)
mike-gangl Mar 16, 2023
cc2e97b
Issues/70 (#117)
mike-gangl Mar 29, 2023
c8ed86e
Issues/127 (#128)
mike-gangl Apr 11, 2023
342aa47
Merge branch 'main' into develop
mike-gangl Apr 20, 2023
133f217
updated some lingering merge issues (huh?)
mike-gangl Apr 20, 2023
5d93610
updated regression test
mike-gangl Apr 20, 2023
fb91a77
updated ubuntu versions
mike-gangl Apr 20, 2023
628fa0d
removed 18.04 ubuntu from workflows/actions
mike-gangl Apr 20, 2023
3204bee
version and documentation updates (#130)
mike-gangl Apr 24, 2023
1622cd8
1.13.1 changelog and dependecny updates
mike-gangl Apr 27, 2023
d861d95
Merge branch 'main' into develop
mike-gangl Apr 27, 2023
c73516f
fixed formatting from unsaved merges
mike-gangl Apr 27, 2023
8313e1a
provide support for granule wildcard patterns in data downloader
Jun 14, 2023
41b8904
Update subscriber/podaac_data_downloader.py
jjmcnelis Jun 14, 2023
7639b4d
Update CHANGELOG.md
jjmcnelis Jun 14, 2023
3220c55
Update Downloader.md
jjmcnelis Jun 14, 2023
2948bb7
Update podaac_data_downloader.py gr option help text to indicate wild…
jjmcnelis Jun 14, 2023
e7fca8d
Merge branch 'develop' into main
jjmcnelis Jun 14, 2023
f707b9a
Merge pull request #138 from jjmcnelis/main
jjmcnelis Jun 20, 2023
7991df2
bump version
skorper Jun 21, 2023
2ebe5aa
/version 1.14.0-alpha.0
skorper Jun 22, 2023
9d5ec2c
Updated hardcoded version to correct value
skorper Jul 13, 2023
f2df79d
Update toml with version bump
skorper Jul 17, 2023
5daf6e7
bump version to 1.14.0
skorper Jul 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

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

## [1.14.0]
### Added
- Added support for wildcard search patterns in podaac-data-downloader when executed with the -gr option (i.e. search/download by CMR Granule Ur/Id). Also, added usage details to Downloader.md to describe this new feature [138](https://github.com/podaac/data-subscriber/pull/138).

## 1.13.1
### Fixed
- Fixed an issue where a required library wasn't being included in the installation.
Expand Down
3 changes: 2 additions & 1 deletion Downloader.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ optional arguments:
-e EXTENSIONS, --extensions EXTENSIONS
Regexps of extensions of products to download. Default is [.nc, .h5, .zip, .tar.gz, .tiff]
-gr GRANULENAME, --granule-name GRANULENAME
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
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. Supports wildcard search patterns allowing the user to identify multiple granules for download by using `?` for single- and `*` for multi-character expansion.
--process PROCESS_CMD
Processing command to run on each downloaded file (e.g., compression). Can be specified multiple times.
--version Display script version information and exit.
Expand Down Expand Up @@ -131,6 +131,7 @@ The `-gr` option works by taking the file name, removing the suffix and searchin

Because of this behavior, granules without data suffixes and granules where the the UR does not directly follow this convention may not work as anticipated. We will be adding the ability to download by granuleUR in a future enhancement.

The -gr option supports wildcard search patterns (using `?` for single- and `*` for multi-character expansion) to select and download multiple granules based on the filename pattern. This feature is supported through wildcard search functionality provided through CMR, which is described in the [CMR Search API documentation](https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html#parameter-options).

### Download data by cycle

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "podaac-data-subscriber"
version = "1.13.1"
version = "1.14.0-alpha.1"
description = "PO.DAAC Data Subscriber Command Line Tool"
authors = ["PO.DAAC <podaac@podaac.jpl.nasa.gov>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion subscriber/podaac_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import tenacity
from datetime import datetime

__version__ = "1.13.1"
__version__ = "1.14.0"
extensions = ["\\.nc", "\\.h5", "\\.zip", "\\.tar.gz", "\\.tiff"]
edl = "urs.earthdata.nasa.gov"
cmr = "cmr.earthdata.nasa.gov"
Expand Down
5 changes: 4 additions & 1 deletion subscriber/podaac_data_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_parser():
# Get specific granule from the search
# https://github.com/podaac/data-subscriber/issues/109
parser.add_argument("-gr", "--granule-name", dest="granulename",
help="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",
help="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. Supports wildcard search patterns allowing the user to identify multiple granules for download by using `?` for single- and `*` for multi-character expansion.",
default=None)

parser.add_argument("--process", dest="process_cmd",
Expand Down Expand Up @@ -190,6 +190,9 @@ def run(args=None):
('GranuleUR[]', cmr_granule),
('token', token),
]
#jmcnelis, 2023/06/14 - provide for wildcards in granuleur-based search
if '*' in cmr_granule or '?' in cmr_granule:
params.append(('options[GranuleUR][pattern]', 'true'))
if args.verbose:
logging.info("Granule: " + str(cmr_granule))

Expand Down
Loading