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 UKV #226

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

add UKV #226

wants to merge 12 commits into from

Conversation

peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Jan 21, 2025

Pull Request

Description

Add UKV MO model. This has x and y as main dims, with lat and lot as a grid.

  • this gets new results every hour
    Current we have dropped lat and lon, but perhaps it would be good to save these too TODO

We might need to add #222 so that not data is not pulled twice

openclimatefix/ocf-infrastructure#697

How Has This Been Tested?

  • ran locally
  • added a test

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@peterdudfield peterdudfield changed the title Ukv add UKV Jan 21, 2025
@peterdudfield peterdudfield marked this pull request as draft January 21, 2025 19:14
@peterdudfield peterdudfield requested a review from devsjc January 21, 2025 19:15
@peterdudfield
Copy link
Contributor Author

This is my first try at this @devsjc, I wonder if you could have a look and advise

@devsjc
Copy link
Collaborator

devsjc commented Jan 22, 2025

A great first effort Peter! Hopefully it wasn't too much of a pain to figure out, I like to think the model API is fairly self-explanatory, but its certainly easy for me to say...!

@peterdudfield peterdudfield marked this pull request as ready for review January 22, 2025 12:51
@peterdudfield peterdudfield marked this pull request as draft January 22, 2025 14:05
case self.WIND_DIRECTION.name:
return ParameterData(
name=str(self),
description="The wind direction from 0 to 360",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you specify that 0 is north just for complete clarity? I've tried to be as explicit as possible in all the other descriptions.

Parameter.DOWNWARD_SHORTWAVE_RADIATION_FLUX_GL,
Parameter.TEMPERATURE_SL,
Parameter.WIND_U_COMPONENT_10m,
Parameter.WIND_V_COMPONENT_10m,
Parameter.WIND_DIRECTION,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you also put a height at the end? Is it WIND_DIRECTION_10m for instance?

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.

2 participants