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

feat: Onboard NOAA dataset #353

Merged
merged 4 commits into from
Jun 10, 2022
Merged

Conversation

nlarge-google
Copy link
Collaborator

@nlarge-google nlarge-google commented May 5, 2022

Description

ghcnd_by_year
ghcnd_countries
ghcdn_inventory
ghcnd_states
ghcnd_stations
gsod_stations
ghcnd_hurricanes
lightning_strikes_by_year

Checklist

  • (Required) This pull request is appropriately labeled
  • Please merge this pull request after it's approved
  • I'm adding or editing a dataset
    • The Google Cloud Datasets team is aware of the proposed dataset
    • I put all my code inside datasets/noaa and nothing outside of that directory
  • I'm refactoring or cleaning up some code

datasets/noaa/pipelines/_images/ghcnd_states_schema.json Outdated Show resolved Hide resolved
datasets/noaa/pipelines/_images/ghcnd_stations_schema.json Outdated Show resolved Hide resolved
int_date_list: typing.List[str],
gen_location_list: dict,
) -> None:
if pipeline_name == "GHCND by year":
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps "GHCND by year" can be defined as a constant at the top of this file (or better yet, read from a yaml file). Same goes for other similar cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What added value would that bring to the code? What would the variable be called?

Copy link
Member

@adlersantos adlersantos left a comment

Choose a reason for hiding this comment

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

Just fix the indentation on the JSON files and we're good to go.

@nlarge-google
Copy link
Collaborator Author

@adlersantos Fixes are complete as per your request. Testing showed one other issue which is now resolved. Please Review. Thanks!

Copy link
Member

@adlersantos adlersantos left a comment

Choose a reason for hiding this comment

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

LGTM

depends_on_past: False
start_date: '2021-03-01'
max_active_runs: 1
schedule_interval: "0 1 0 0 6"
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a comment for clarity.

Suggested change
schedule_interval: "0 1 0 0 6"
schedule_interval: "0 1 0 0 6" # Every Saturday at 1am server time

@adlersantos adlersantos merged commit 0f1c696 into GoogleCloudPlatform:main Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants