-
Notifications
You must be signed in to change notification settings - Fork 107
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
WIP expand Variables class to handle s3 urls from NSIDC #434
Closed
Closed
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
57ac538
wip inheritance method for modularizing authentication
rwegener2 703d832
add nsidc_s3 option to Variables class
rwegener2 9d09ff9
mvp remove intake from Read
rwegener2 4564b3b
outline of mixin method of authentication
rwegener2 16b8d3f
add s3 credential timer and auth check
rwegener2 54aeda0
Update icepyx/core/variables.py
rwegener2 083426c
Update icepyx/core/query.py
rwegener2 76d3c96
add docstrings to auth.py
rwegener2 edfa362
Merge branch 'move_auth' of https://github.com/icesat2py/icepyx into …
rwegener2 e8c9060
add comment to stop tests from running docstring on build
rwegener2 72c5347
fix user warning for giving an email parameter
rwegener2 434bbf2
add tests for auth module
rwegener2 7e8bf0f
add warning message for use of earthdata_login
rwegener2 e06765a
remove .netrc creation and update existing tests to new auth method
rwegener2 9e1f745
undo changes to troubleshoot build
rwegener2 a2a455f
another baby commit to figure out what is breaking travis
rwegener2 1aacb1d
remove duplicate netrc creation
rwegener2 50db05e
update documentation for new auth procedure
rwegener2 f44ead3
remove earthdata_login function from docstrings
rwegener2 12e21ba
remove missed instance of earthdata_login in docs
rwegener2 10bc734
attempt add auth to API reference
rwegener2 8033ed4
Update icepyx/core/auth.py
rwegener2 f1fa0df
alphabetize ordering
rwegener2 6cdddbf
add warning to dev log
rwegener2 b7b8b7e
add auth to components docs
rwegener2 97fda07
add more detail to auth string
rwegener2 1172e9e
add authentication explainer
rwegener2 abd950a
add internals to index.rst
rwegener2 8c3545b
match formatting
rwegener2 90354e6
update code block formatting
rwegener2 7fedc2d
continue to update formatting
rwegener2 e26c9a1
add an additional example line
rwegener2 a31b092
Update icepyx/tests/test_behind_NSIDC_API_login.py
rwegener2 ab3de31
Update doc/source/contributing/icepyx_internals.rst
rwegener2 3aab79a
Update doc/source/contributing/icepyx_internals.rst
rwegener2 ade942f
move auth description text to EarthdataAuthMixin class
rwegener2 f052b76
fix typo and double admonition in data access notebook
JessicaS11 63b0275
minor updates to auth module docstrings
JessicaS11 1796a2c
combine auth warning messages
rwegener2 4d7687b
switch s3token argument default to None
rwegener2 3838044
fix json error in data_access example notebook
rwegener2 e6caa70
merge move_auth
rwegener2 61b2006
Merge branch 'development' into s3_variables
rwegener2 e5458a1
Merge branch 'development' into refactor_intake
rwegener2 24f6a42
delete is2cat and references
rwegener2 b13b847
remove extra comments
rwegener2 0779b80
update doc strings
rwegener2 1cfbf72
update tests
rwegener2 de61d87
update documentation for removing intake
rwegener2 9f06611
update approach paragraph
rwegener2 d019b9a
remove one more instance of catalog from the docs
rwegener2 156ea89
clear jupyter history
rwegener2 b26ca4e
Update icepyx/core/read.py
rwegener2 ce1ca76
remove intake and related modules
rwegener2 fd00aeb
Merge branch 'development' into read_arguments
rwegener2 431af78
mvp with new read parameters
rwegener2 612662e
clean up remainder of file and remove extraneous comments
rwegener2 c16a003
maintain backward compatibility and combine arguments
rwegener2 7648078
update to new error message
rwegener2 4cfbfdb
update docs
rwegener2 f7f823b
glob kwargs and list error
rwegener2 203f3ad
formatting updates
rwegener2 10d1591
Apply suggestions from code review
rwegener2 0b23d1e
remove num_files
rwegener2 6f5bead
fix docs test typo
rwegener2 035ee5a
trying again to fix the build
rwegener2 903c351
add feedback to docs page
rwegener2 d842bde
Merge branch 'development' into read_arguments
rwegener2 5e06de9
fix typo
rwegener2 9ca29f1
Merge branch 'development' into read_arguments
rwegener2 e8e35ad
Merge branch 'development' into read_arguments
rwegener2 d26a194
Merge branch 'development' into s3_variables
rwegener2 af79818
Merge branch 'read_arguments' into s3_variables
rwegener2 ba52c55
resolve merge conflicts from development
rwegener2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This template looks to be hardcoded to the non-gridded ATLAS datasets like ATL06. Other gridded products (e.g. ATL14, ATL16, ATL20) would have a different template like
s3://nsidc-cumulus-prod-protected/ATLAS/{product}/{version}/{year}/{filename}
' . E.g. looking at https://search.earthdata.nasa.gov/search?ff=Available%20in%20Earthdata%20Cloud&fi=ATLAS&gdf=HDF&fst0=Cryosphere&lat=65.08299573518599&long=-25.69921875&zoom=5:Would it be possible to generalize this code to both non-gridded and gridded products?
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.
Ah, thanks for catching this @weiji14! I'll work on a fix and let you know when I'm ready for another review!
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.
A question for @JessicaS11 and @weiji14 -- What do we think of getting the version and product name from inside the file instead of parsing it from the filename? I've only checked a handful of products, but those fields seem to be available in top-level metadata in a consistent way. I've been trying to parse those things out of the filename, which is how I believe it is also done elsewhere in the module, but this limits the files icepyx can process to those named in a very specific way. If we grab product/version from inside the file we are able to process more files (ex. cloud icesat-2 files not in nsidc bucket, or local files that have had their name changed). Thoughts?
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.
I realized that the place I was thinking about this last was in the branch to remove intake from icepyx. I just pushed a WIP PR (#438) so there is a place to discuss questions. Hopefully whatever we decide there about accessing the product/version from that can be used for this PR later.
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.
The discussion summarized in #438 (comment) indicates our intention to move away from requiring the user provide the product as input (unless they are also feeding in a directory containing files from multiple products). This should address the template issues noted here.