-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update entry points, add noaa to sharp parser
- Loading branch information
1 parent
8521e6f
commit b0deb37
Showing
9 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import argparse | ||
|
||
import drms | ||
from dateutil.parser import parse | ||
|
||
from nf2.data.download import find_HARP | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--time', type=str, required=True) | ||
parser.add_argument('--email', type=str, required=True, help='email address for JSOC') | ||
parser.add_argument('--noaa_nums', type=int, nargs='+', required=False, default=None) | ||
args = parser.parse_args() | ||
|
||
client = drms.Client(email=args.email, verbose=True) | ||
time = parse(args.time) | ||
harp_numbers = find_HARP(time, args.noaa_nums, client) | ||
|
||
# print the HARP numbers | ||
print(f"HARP numbers for {time.isoformat()}: {harp_numbers}") | ||
|
||
def main(): # workaround for entry_points | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters