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

Era5 fix. Typo, and need to combine years into single file again #170

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

ashjbarnes
Copy link
Collaborator

@ashjbarnes ashjbarnes commented Apr 30, 2024

I'd separated ERA5 forcing files into separate years automatically, but this probably isn't the best workflow. If someone does do an IAF run with HUGE forcing files, they should be able to split the forcing files up yearly as needed themselves. As it stands the package tried to anticipate this and split each ERA5 field into each forcing year, but this requires extra overhead and explaining unnecessary for simple runs.

In fact, it required modifications to the data_table file specifying the year in the filename, so broke the reanalysis forced example! So this patch (or something like it) is necessary to keep example working

  1. Fix bug
  2. Simplify ERA5 forcing files so that there's one file per field rather than per field and year

).sel(
latitude=slice(
self.latitude_extent[1], self.latitude_extent[0]
) ## This is because ERA5 has latitude in decreasing order (??)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this question here? Can’t we find out if that’s true or not and remove the “(??)”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not really sure tbh - might have been a reason for this but I never wrote it down. Don't have too much time today to troubleshoot but was just trying to get this patched for Anupiya (new student of Callum) who couldn't get the example working

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to make the most of Gadi being up before it takes a 2 day holiday!!

Copy link
Contributor

@navidcy navidcy left a comment

Choose a reason for hiding this comment

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

I’ll have a closer look later.
could we discuss about how to have a test or how to make the downloading more robust?

@ashjbarnes
Copy link
Collaborator Author

The downloading? We currently don't do any automatic downloading because the Copernicus Marine client is still very unstable and undergoing work. this package currently assumes you've already done all the downloading

@ashjbarnes
Copy link
Collaborator Author

This patch doesn't need to be perfect for now, but until it goes through the example won't work when running MOM6

@navidcy
Copy link
Contributor

navidcy commented Apr 30, 2024

@AVEllepola can install from this branch. We should merge this when properly reviewed

@navidcy navidcy merged commit e16340d into main Apr 30, 2024
5 checks passed
@navidcy navidcy deleted the era5_rundir_bugfix branch April 30, 2024 13:05
@navidcy navidcy added the bug 🐞 Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants