-
Notifications
You must be signed in to change notification settings - Fork 43
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
publish 0.3.0 #99
publish 0.3.0 #99
Changes from 7 commits
f9e7800
e21e05e
fe7bbbd
12eb5a5
b817a4d
56227bc
4f9fb18
80a75c6
23ab498
fcc7482
b7071bd
6c73339
80401c4
20a6407
5b2aeb9
11d87e1
52f1f18
2b971da
0f542b7
ff7e7a1
262443f
0bf0fe0
4ef5ab1
a2f7c32
e680eb1
1f2e33e
6d79e5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,8 @@ def __init__(self, *args, **kwargs): | |
self.output_group.add_argument('--print-md', help=h, default=None, nargs='*', dest='printmd') | ||
h = 'Print calendar showing dates' | ||
self.output_group.add_argument('--print-cal', help=h, dest='printcal') | ||
self.output_group.add_argument('--print-assets', help=h, dest='printassets', default=False, action='store_true') | ||
#h = 'Print Item Asset definition from Collections' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? |
||
#self.output_group.add_argument('--print-assets', help=h, dest='printassets', default=False, action='store_true') | ||
self.output_group.add_argument('--save', help='Save results as GeoJSON', default=None) | ||
|
||
def parse_args(self, *args, **kwargs): | ||
|
@@ -112,7 +113,7 @@ def __call__(self, parser, namespace, values, option_string=None): | |
setattr(namespace, n, {'eq': v}) | ||
|
||
|
||
def main(items=None, printmd=None, printcal=None, printassets=None, | ||
def main(items=None, printmd=None, printcal=None, #printassets=None, | ||
found=False, filename_template='${collection}/${date}/${id}', | ||
save=None, download=None, requester_pays=False, headers=None, **kwargs): | ||
""" Main function for performing a search """ | ||
|
@@ -139,8 +140,8 @@ def main(items=None, printmd=None, printcal=None, printassets=None, | |
if printcal: | ||
print(items.calendar(printcal)) | ||
|
||
if printassets: | ||
print(items.assets_definition()) | ||
#if printassets: | ||
# print(items.assets_definition()) | ||
|
||
# save all metadata in JSON file | ||
if save is not None: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
logger = logging.getLogger(__name__) | ||
|
||
API_URL = os.getenv('STAC_API_URL', 'https://1tqdbvsut9.execute-api.us-west-2.amazonaws.com/v0').rstrip('/') + '/' | ||
API_URL = os.getenv('STAC_API_URL', 'https://earth-search.aws.element84.com/v0').rstrip('/') + '/' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👋 @matthewhanson what do you think about removing any hardcoded URL? you could still use STAC_API_URL environ but I think it will be better if stac-search wasn't tied to any URL. We (Devseed) will love to fix the API we are hosting but it means first we have to wait for the specification do be complete. |
||
|
||
|
||
class SatSearchError(Exception): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.3.0-rc1' | ||
__version__ = '0.3.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no more default here!