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

Add Gridded VIIRS from the NOAA AWS bucket #164

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from

Conversation

bbakernoaa
Copy link
Member

Added a new function to stream data from AWS from the noaa-jpss bucket into xarray for monetio. This should be useful for satellite comparisons.

It can handle both SNPP and NOAA20 satellites as well as varying resolutions (0.05, 0.1, 0.25 degree) and different time aggregations that are preprocessed by NESDIS (daily, weekly, monthly).

Data availability is from 2012 -> current.

to use:

nests_viirs_aod_gridded.open_dataset('2013-01-01', 'SNPP', '0.100', 'daily')

nests_viirs_aod_gridded.open_mfdataset(dates, 'SNPP', '0.050', 'daily')

@angehung5

@bbakernoaa bbakernoaa added the enhancement New feature or request label Mar 12, 2024
@bbakernoaa bbakernoaa requested a review from zmoon March 12, 2024 15:02
Copy link
Member

@zmoon zmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you run the pre-commit hooks?

How long does it take to get a small amount of data (for test)?

@bbakernoaa
Copy link
Member Author

just a few seconds at most

@bbakernoaa
Copy link
Member Author

Can you run the pre-commit hooks?

How long does it take to get a small amount of data (for test)?

Not quite sure how to do that. Can you provide a little instruction?

@bbakernoaa
Copy link
Member Author

I added back in the NRT data. Seems the AWS server didn't have a the latest data from the past 3 years. in the NRT data we don't have the 0.05 data but we do have the 0.1 and 0.25 degree data.

@zmoon
Copy link
Member

zmoon commented Mar 13, 2024

Not quite sure how to do that.

  1. Install pre-commit to your env if you don't have it available already (it's available on conda-forge)
  2. pre-commit install --install-hooks
  3. pre-commit run --all-files

@zmoon
Copy link
Member

zmoon commented Mar 13, 2024

just a few seconds at most

Sweet, do you want a write a test? I can give it a go if not.

@bbakernoaa
Copy link
Member Author

Not quite sure how to do that.

  1. Install pre-commit to your env if you don't have it available already (it's available on conda-forge)
  2. pre-commit install --install-hooks
  3. pre-commit run --all-files

Thanks! Added it and got these rolling. Seems the tests are failing but in unrelated spots where the code was changed

Copy link
Member

@zmoon zmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments on the gridded open_dataset

monetio/sat/nesdis_viirs_aod_aws_gridded.py Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Outdated Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Outdated Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Outdated Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Outdated Show resolved Hide resolved
monetio/sat/nesdis_viirs_aod_aws_gridded.py Outdated Show resolved Hide resolved
bbakernoaa and others added 2 commits March 18, 2024 13:35
Co-authored-by: Zachary Moon <zmoon92@gmail.com>
since s3fs fails to import
@zmoon zmoon force-pushed the feature/viirs_aws_gridded branch from 04b8476 to e8d6515 Compare March 18, 2024 20:28
@bbakernoaa bbakernoaa linked an issue Mar 20, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add reader for VIIRS AOD on S3
2 participants