-
Notifications
You must be signed in to change notification settings - Fork 92
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
initial draft of TEMPO virtual dataset tutorial #924
base: main
Are you sure you want to change the base?
initial draft of TEMPO virtual dataset tutorial #924
Conversation
👈 Launch a binder notebook on this branch for commit 63bae71 I will automatically update this comment whenever this PR is modified |
@danielfromearth #923 was just merged just in case is a blocker here. |
Hey @betolink, seems I'm still getting the same error, though I'm not sure if I'm getting the latest version set up correctly in Jupyterhub — since it looks like |
correct, we haven't released yet. I think we need to |
Hmm. I just ran that. But then I still get this error:
Here's the relevant code: results = earthaccess.search_data(
short_name="TEMPO_NO2_L2",
version="V03",
temporal=("2024-01-11 12:00", "2024-01-18 12:00"),
)
open_options = {
"access": "direct",
"load": True,
"preprocess": preprocess_root_group,
"concat_dim": "date_and_scan_num",
"coords": 'all',
"compat": 'override',
"combine_attrs": 'drop_conflicts',
"parallel": True
}
result_root = earthaccess.open_virtual_mfdataset(granules=results, **open_options) |
@danielfromearth I'm not quite sure why this error is occuring but I tried running the same code on my cloud instance and it was able load the data. Maybe check that you are installing the optional dep group for virtualizarr?: |
The issue persistsHmm, no difference with that. But it looks like it's still using the wrong version, because I see
in the traceback, but that looks different than the same line 95 in PR 923. What I'm usingmamba uninstall -y earthaccess
pip install 'earthaccess[virtualizarr] @ git+https://github.com/nsidc/earthaccess.git@main' and then restarting the kernel. (I first tried the exact syntax you provided @ayushnag , but it gave a deprecation warning, so then I switched it to the Troubleshooting further...@betolink, I don't understand the background warnings of the Jupyterhub environment, so I'm not sure what to try next to modify the environment. Below is an image of what I am seeing when I click on the kernel selector ("Python 3 (ipykernel)") in the upper right corner. Should it show something different? Is there any other trick to restarting the kernel (I am hitting the "Restart Kernel..." button in the "Kernel" dropdown menu)? |
Sorry was on a meeting and then lunch. I don't think you need the mamba uninstall -y earthaccess it should uninstall 3 packages that use earthaccess. Then if you do |
version issue resolved@betolink and I did some more troubleshooting and discovered that the issue was simpler than it seemed. I was running the notebook from within an To resolve it, we moved the notebook out of the directory, ran it, and the error is no longer being raised, woohoo! (Thanks @betolink and @ayushnag for your assistance!) new data-related issueBeyond that error is a more data-related error, due to the structure of TEMPO data and concatenation of arrays with different shapes:
This will require some reworking of the preprocessing logic, or concatenation along different dimensions. Note: Since I won't be able to work on this again until next Friday, don't hold up any new |
Pull Request (PR) draft checklist - click to expand
contributing documentation
before getting started.
title such as "Add testing details to the contributor section of the README".
Example PRs: #763
example
closes #1
. SeeGitHub docs - Linking a pull request to an issue.
CHANGELOG.md
with details about your change in a section titled## Unreleased
. If such a section does not exist, please create one. FollowCommon Changelog for your additions.
Example PRs: #763
README.md
with details of changes to theearthaccess interface, if any. Consider new environment variables, function names,
decorators, etc.
Click the "Ready for review" button at the bottom of the "Conversation" tab in GitHub
once these requirements are fulfilled. Don't worry if you see any test failures in
GitHub at this point!
Pull Request (PR) merge checklist - click to expand
Please do your best to complete these requirements! If you need help with any of these
requirements, you can ping the
@nsidc/earthaccess-support
team in a comment and wewill help you out!
Request containing "pre-commit.ci autofix" to automate this.
📚 Documentation preview 📚: https://earthaccess--924.org.readthedocs.build/en/924/