COSIMA / regional-mom6

Automatic generation of regional configurations of the Modular Ocean Model 6 (MOM6) in Python
https://regional-mom6.readthedocs.io/en/latest
MIT License
24 stars 13 forks source link

Why is there a B-grid support? #57

Closed navidcy closed 1 year ago

navidcy commented 1 year ago

I see some mention to MOM5 and B grid here:

https://github.com/COSIMA/regional-mom6/blob/663b5f3011475addb41abd3f1f619e39f4410a97/regional_mom6/regional_mom6.py#L576-L620

Is it to read an input from a B grid? From the code I understand that the initial condition is converted to a B grid but I don't understand why?

ashjbarnes commented 1 year ago

I was just trying to keep things as flexible as possible. The code is read as a B grid but output as C always right?

navidcy commented 1 year ago

Not sure if that's the case but I can see why that is the intention. Thanks for explaining. :)

ashjbarnes commented 1 year ago

Can you elaborate on this issue Navid? ACCESS-OM2 is a B grid, and this function is what does the interpretation of B grid data before it's converted to C grid for use with MOM6

navidcy commented 1 year ago

OK, so the B-grid support is only for the input, right?

ashjbarnes commented 1 year ago

Yes only input. Output is always C

navidcy commented 1 year ago

Okie. I must have gotten the impression that it was for the output and I was confused. I'm closing this!