-
Notifications
You must be signed in to change notification settings - Fork 446
EAMxx: Fixing the grid for LINOZ and OXID files. #7863
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
EAMxx: Fixing the grid for LINOZ and OXID files. #7863
Conversation
singhbalwinder
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Oscar for fixing this!
…does not use the same field tags as eamxx.
2097cb4 to
c97d0db
Compare
| // NOTE: Sometimes the original data does not use the same field tags as eamxx. | ||
| // For these cases, we need to perform a shallow clone of | ||
| // io_grid because the tags are constant in this object. | ||
| using namespace ShortFieldTagsNames; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bartgol I ended up only modifying the grid for the AtmosphereInput here because the other place we talked about did not have any effect. My guess is that when the remapper is created, the grid from the input target grid is not used to set or check the field tags.
…xx' into next (PR #7863) EAMxx: Fixing the grid for LINOZ and OXID files. We are using ne30pg2 files for linoz and oxid instead of ne4pg2, which produces an error in the DataInterpolation class because we also provide a remap file. Another piece of code is added to fix the following error: Error! Layout mismatch for input file variable. 26: - filename: /compyfs/inputdata//atm/scream/mam4xx/emissions/ne4pg2/elevated/cmip6_mam4_bc_a4_elev_1x1_2010_clim_ne4pg2_c20250701.nc 26: - varname : BB 26: - expected dims : ncol,lev 26: - dims from file: ncol,altitude It should fix these tests: REP_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.pm-gpu_gnugpu.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72 SMS_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.frontier_craygnu-mphipcc.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72 [BFB] * odiazib/oscar/eamxx/fix_remap_test_mam4xx: EAMxx: Updating files for remap unit test. EAMxx: Using a clone grid to allow reading data from an NC file that does not use the same field tags as eamxx. EAMxx: We must use ne4pg2 files for oxid and LINOZ.
We are using ne30pg2 files for linoz and oxid instead of ne4pg2, which produces an error in the DataInterpolation class because we also provide a remap file.
Another piece of code is added to fix the following error:
It should fix these tests:
REP_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.pm-gpu_gnugpu.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72
SMS_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.frontier_craygnu-mphipcc.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72
[BFB]