-
Notifications
You must be signed in to change notification settings - Fork 7
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
ERA-5 remapping weights files flip longitude and latitude axes #4
Comments
Actually, it appears from the phantom Australia in the North Atlantic and Africa in the Pacific that the data is flipped only in latitude, and offset (not flipped) in longitude. ERA5 files, e.g. esmgrids/esmgrids/era5_grid.py Line 17 in 514b560
ERA5 longitude starts at -180 (whereas JRA55-do starts at 0), which seems about right to explain the offset. |
It looks like some reengineering of For the latitude issue I could try just not flipping the latitude in |
…s.* to support ERA5; COSIMA/esmgrids#4 ; #242
@nichannah's weights in |
I'll be busy with other things today so feel free to have a go at fixing this issue. The first thing I'd try is omitting |
CI tests failed on the PR. https://github.com/COSIMA/access-om2/runs/5964911440?check_suite_focus=true |
fixed bug that caused CI to fail. |
there are some tips on remapping here https://github.com/COSIMA/access-om2/wiki/Technical-documentation#creating-remapping-weights |
might need to be careful what version of |
Thanks @aekiss. I've successfully generated remapping weights using If I try to remove the We obviously don't want to derive new ERA-5 forcing files with latitude flipped. So it seems like the next step would be to rewrite the corner finding routines so that they work in both directions? |
thanks @rmholmes, that sounds sensible. FYI I've put an executable using Russ' tripole bug fix here: |
Just a recap from my progress today: If I remove the The code in It is frustrating that the ERA-5 latitude data is ordered this way - doesn't seem to serve any practical purpose except to unneccesarily make things difficult. |
Thanks for all these experiments. I'll raise it at today's TWG meeting. |
Try this one |
Thanks @aidanheerdegen!! That file has different variable names to the ones I've been working with (e.g. |
|
Fixed now. |
I've applied the same |
Ok thanks. In setting this up I've found this issue, which I think invalidates all my checks yesterday. [EDIT: Nope - I was just using too many symbolic links] But I can get around that now I know what it is. So I'll get back to you. |
No luck, that gives me exactly the same result, again! The run is at What did your testing consist of @aidanheerdegen? I feel like I'm missing something basic here... |
Hey Ryan The remapping file we're altering is for the OASIS coupler, i.e. it is the one defined in
The # Model configuration
name: common
model: access-om2
input: /g/data/ik11/inputs/access-om2/input_20210915/common_1deg_era5/ Looking at the $ git diff HEAD^
diff --git a/manifests/input.yaml b/manifests/input.yaml
index f3653c6..4c7ed1c 100644
--- a/manifests/input.yaml
+++ b/manifests/input.yaml
@@ -30917,20 +30917,30 @@ work/atmosphere/INPUT/2021/sp_era5_oper_sfc_20211101-20211130.nc:
binhash: 87a70249955c71776c9759a701b0f6f3
md5: ba7376809074b024f3cb8f92177365ee
work/atmosphere/INPUT/ERA5_MOM1_conserve.nc:
- fullpath: /g/data/ik11/inputs/access-om2/input_20210915/common_1deg_era5/ERA5_MOM1_conserve.nc
+ fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/ERA5_MOM1_conserve.nc
hashes:
- binhash: 9af5ca3052f6d5ed5d9139a23f121cf5
- md5: 1bb0abf04369ea4ffe1d9da343d20f1f
+ binhash: b9d28101ccc3821fab8320579626812b
+ md5: e5c1c2ca736b4d394fdac397c46e7a21
work/atmosphere/INPUT/ERA5_MOM1_patch.nc:
- fullpath: /g/data/ik11/inputs/access-om2/input_20210915/common_1deg_era5/ERA5_MOM1_patch.nc
+ fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/ERA5_MOM1_patch.nc
hashes:
- binhash: 2bab214c23d2eebc6d368e003fb641e6
- md5: 8352ce46dfb3cf6f1cc6b118b8b5dde2
+ binhash: e450e9fdae1056617f2363522d41c38e
+ md5: e5c1c2ca736b4d394fdac397c46e7a21
work/atmosphere/INPUT/PET0.RegridWeightGen.Log:
fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/PET0.RegridWeightGen.Log
hashes:
binhash: ffd3c47e6c1417cc8595e470ddae1fe3
md5: 08c82ec3a08e47ccc8b2b5b29117d3bc
+work/atmosphere/INPUT/common_1deg_era5/rmp_jrar_to_cict_CONSERV.nc:
+ fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/common_1deg_era5/rmp_jrar_to_cict_CONSERV.nc
+ hashes:
+ binhash: 6563b5e196a4ccb9a189dc533893bbb2
+ md5: 10f0b5ea6b8102a03ad1140e5163a0f7
+work/atmosphere/INPUT/era5_mom10_wts.nc:
+ fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/era5_mom10_wts.nc
+ hashes:
+ binhash: a881ab6afd66ab659457c62abd66a7b9
+ md5: e5c1c2ca736b4d394fdac397c46e7a21
work/atmosphere/INPUT/lat_flipud/ERA5_MOM1_conserve.nc:
fullpath: /g/data/e14/rmh561/access-om2/input/ERA-5/lat_flipud/ERA5_MOM1_conserve.nc
hashes: given the checksum of the updated weights file:
The only place the updated weights file shows up is in So you'll need to change input: /g/data/ik11/inputs/access-om2/input_20210915/common_1deg_era5/ to another location that has the updated remapping weights files. I guess none of the changed remapping weights were used if the same error was made in your other runs. Maybe those remapping weights files were ok? Possibly worth checking. As an aside, the ERA5 documentation states:
So the data we're using isn't conservatively interpolated from the native ERA5 model output, so there seems little point in us doing so, in which case I would recommend changing all those entries in |
I need a face palm emogy... Looks like the Thanks Aidan. I'll get on it. |
Thanks @aidanheerdegen - interesting point about the non-conservative interpolation. The patch interpolation gives much smoother (so more physically reasonable) results, but I wonder whether it's justifiable to add to the conservation error by using a second non-conservative interpolation. Not sure. |
It is justifiable to use conservation on fields that were never conserved? I think patch is more intellectually honest, and does not give a false impression. |
My thinking here is that ideally we'd want global integrals of fields like precip to be identical to the ERA5 native output to have the same water balance (likewise for radiation). The non-conservative interpolation to NetCDF introduces an error we can't avoid, but an additional patch interpolation could take it even further from native ERA5. I don't have a feel for the size of the non-conservation error in patch though. Maybe it's negligible, in which case the smoothness of patch is certainly appealing. I wince every time I look at the blocky conservative JRA55-do forcing we apply to the 0.1deg model. |
Ok I now have success: This is using the @aidanheerdegen your file did not work for me, spitting out some CICE errors which I didn't investigate any further. All I had to do was remove the The offset in longitude appears to be an issue only with Nic's original files. The longitude appears correct for mine without any changes needed. I am now proceeding with a 3 year run to compare with JRA55. |
My first test run with the https://github.com/COSIMA/1deg_era5_iaf repo has winds (and probably all the forcing fields) flipped in the longitude and latitude direction.
Jan 1981 zonal wind stress for ERA-5 (left) and JRA-55 (right);
This is likely a remapping weights issue, perhaps with the https://github.com/COSIMA/esmgrids/blob/master/esmgrids/era5_grid.py script?
The text was updated successfully, but these errors were encountered: