-
Notifications
You must be signed in to change notification settings - Fork 2
/
get_data_products_availability.py
31 lines (26 loc) · 1.13 KB
/
get_data_products_availability.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import pyaurorax
import datetime
def main():
# set parameters
start_date = datetime.datetime(2020, 1, 1)
end_date = datetime.date(2020, 1, 10)
program = "trex"
platform = "gillam"
instrument_type = "RGB ASI"
print("Retrieving data products availability with the parameters:")
print(" Start Date:\t\t%s" % (start_date.strftime("%Y-%m-%d")))
print(" End Date:\t\t%s" % (end_date.strftime("%Y-%m-%d")))
print(" Program:\t\t%s" % (program))
print(" Platform:\t\t%s" % (platform))
print(" Instrument Type:\t%s\n" % (instrument_type))
# get availability
availability = pyaurorax.availability.data_products(start_date,
end_date,
program=program,
platform=platform,
instrument_type=instrument_type,
format=pyaurorax.FORMAT_IDENTIFIER_ONLY)
print(availability)
# ----------
if (__name__ == "__main__"):
main()