Closed georgemilosh closed 1 year ago
@AlessandroLovo , it allows me to merge, but I think it would be a good idea if you have a look. I am modifying some core functionality.
I wrote some comments on your changes. The one I am most concerned about is the manipulation of the latitude. Have you checked that it doesn't break Plasim data?
I am running some tests. Like making plots and some CNN training. The reason I have this sorting of latitudes is because Plasim and CESM have opposite ordering. So I put something to enforce the sorting consistent with Plasim. With that being said, as you indicate, it would be desirable to sort the latitudes in default case as well.
Concerning the point about using Model to decide where the data comes from, this would be ok, but current implementation gives us more flexbility where data could come from.
So I decided to move the sorting into a separate Plasim_field
class method which is called in Learn2_new.py: load_data()
Ok, on my side the tests look good. I think it would be nice to merge pull request soon
Also the changes you proposed seem to work, @AlessandroLovo
Actually there is one more point that is worth doing. I think it would be better for fields_infos
to be loaded from a json file, like we do with config.json. This is because I would like to keep the labels of the fields, while working with both CESM
and Plasim
Maybe make a separate issue for that?
Handling of data a bit different given specificities of CESM Small fixes in tutorial.ipynb