Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Conversation

@peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Nov 11, 2021

Pull Request (small)

Description

edit fake coords to make them more realistic. They also centres in the UK

helps #openclimatefix-archives/nowcasting_utils#46

How Has This Been Tested?

They have been tested by being plotted
Screenshot 2021-11-11 at 15 27 41

  • No
  • Yes

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 marked this pull request as ready for review November 11, 2021 15:40
@peterdudfield peterdudfield self-assigned this Nov 11, 2021
@JackKelly JackKelly added the enhancement New feature or request label Nov 16, 2021
Copy link
Contributor

@flowirtz flowirtz left a comment

Choose a reason for hiding this comment

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

LGTM, just a a bunch of nits :)

return Topographic(xr_dataset)


def add_uk_centroid_osgb(x, y):
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit lost in this function.

What does x and y do to the random lat/lon values?

Is it more like "create a random OSGB value in the centre of UK influenced by x,y "?
I think it would help to change the comment and make the function name a bit more descriptive.

@peterdudfield peterdudfield marked this pull request as draft November 19, 2021 10:24
@peterdudfield peterdudfield marked this pull request as ready for review November 19, 2021 11:04
@peterdudfield peterdudfield merged commit df8b3da into main Nov 19, 2021
@peterdudfield peterdudfield deleted the issue/fake-data-update branch November 19, 2021 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants