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

By default, no email status updates to users when ordering granules #240

Merged
merged 3 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 2 additions & 2 deletions examples/ICESat-2_DAAC_DataAccess_Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
"cell_type": "markdown",
"source": [
"#### Place the order\n",
"Then, we can send the order to NSIDC using the order_granules function. Information about the granules ordered and their status will be printed automatically as well as emailed to the address provided. Additional information on the order, including request URLs, can be viewed by setting the optional keyword input 'verbose' to True."
"Then, we can send the order to NSIDC using the order_granules function. Information about the granules ordered and their status will be printed automatically. Status information can also be emailed to the address provided when the `email` kwarg is set to `True`. Additional information on the order, including request URLs, can be viewed by setting the optional keyword input 'verbose' to True."
JessicaS11 marked this conversation as resolved.
Show resolved Hide resolved
],
"metadata": {}
},
Expand All @@ -436,7 +436,7 @@
"execution_count": null,
"source": [
"region_a.order_granules()\n",
"#region_a.order_granules(verbose=True,subset=False)"
"# region_a.order_granules(verbose=True, subset=False, email=False)"
],
"outputs": [],
"metadata": {}
Expand Down
4 changes: 2 additions & 2 deletions icepyx/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def avail_granules(self, ids=False, cycles=False, tracks=False, s3urls=False):

# DevGoal: display output to indicate number of granules successfully ordered (and number of errors)
# DevGoal: deal with subset=True for variables now, and make sure that if a variable subset Coverage kwarg is input it's successfully passed through all other functions even if this is the only one run.
def order_granules(self, verbose=False, subset=True, email=True, **kwargs):
def order_granules(self, verbose=False, subset=True, email=False, **kwargs):
"""
Place an order for the available granules for the query object.

Expand All @@ -827,7 +827,7 @@ def order_granules(self, verbose=False, subset=True, email=True, **kwargs):
by default when subset=True, but additional subsetting options are available.
Spatial subsetting returns all data that are within the area of interest (but not complete
granules. This eliminates false-positive granules returned by the metadata-level search)
email: boolean, default True
email: boolean, default False
Have NSIDC auto-send order status email updates to indicate order status as pending/completed.
**kwargs : key-value pairs
Additional parameters to be passed to the subsetter.
Expand Down