https://github.com/podaac/cmr-association-diff
https://github.com/podaac/cmr-association-diff
development hitide tva
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/podaac/cmr-association-diff
- Owner: podaac
- License: apache-2.0
- Created: 2021-10-13T17:39:50.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2026-04-12T21:10:57.000Z (2 months ago)
- Last Synced: 2026-04-12T22:25:48.459Z (2 months ago)
- Topics: development, hitide, tva
- Language: Python
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cmr-association-diff
Python tool to compare tools and services collection associations in a text file to those in CMR. Results are collections in CMR and NOT in text file. Either concept id or provider and name is needed to run the command line tool.
## Usage
```
$ cmr_association_diff --help
usage: cmr_association_diff [-h] [-c] -e uat or ops [-p] [-n] -t
{tool,service} -a associations.txt
[-o OUTPUT_FILE]
Update CMR with latest profile
optional arguments:
-h, --help show this help message and exit
-c , --concept_id Concept id of umm to poll (default: None)
-e uat or ops, --env uat or ops
CMR environment used to pull results from. (default:
None)
-p , --provider Provider of the umm (default: None)
-n , --umm_name Name of the umm tool or service (default: None)
-t {tool,service}, --type {tool,service}
type of umm to poll (default: None)
-a associations.txt, --assoc associations.txt
Association concept ID or file containing many concept
IDs to be associated with UMM provided. (default:
None)
-o OUTPUT_FILE, --output_file OUTPUT_FILE
File to output to (default: None)
```
## Example:
Tools
Using concept id
```
cmr_association_diff -c TL1240538128-POCLOUD -e uat -t tool -a hitide_uat_associations.txt
```
Using provider and name
```
cmr_association_diff -e uat -t tool -a hitide_uat_associations.txt -p POCLOUD -n hitide
```
Services
Using concept id
```
cmr_association_diff -c S1234899453 -e uat -t service -a hitide_uat_associations.txt
```
Using provider and name
```
cmr_association_diff -e uat -t service -a hitide_uat_associations.txt -p POCLOUD -n podaac_l2_cloud_subsetter
```