Skip to content

Commit 377ea07

Browse files
committed
Move CRS to within esmgrids package for neatness
1 parent 386b73e commit 377ea07

File tree

2 files changed

+2
-34
lines changed

2 files changed

+2
-34
lines changed

Diff for: grid_generation/esmgrids

Diff for: grid_generation/make_cice_grid.py

+1-33
Original file line numberDiff line numberDiff line change
@@ -59,38 +59,6 @@ def main():
5959
cice.grid_f.inputfile_md5 = md5sum(args.ocean_hgrid)
6060
cice.grid_f.history_command = f"python make_CICE_grid.py {args.ocean_hgrid} {args.ocean_mask}"
6161

62-
#AS: based on https://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch05s06.html
63-
crs = cice.grid_f.createVariable('tripolar', 'S1')
64-
crs.grid_mapping_name = "tripolar_latitude_longitude"
65-
crs.crs_wkt = """
66-
GEOGCRS["WGS 84",
67-
ENSEMBLE["World Geodetic System 1984 ensemble",
68-
MEMBER["World Geodetic System 1984 (Transit)"],
69-
MEMBER["World Geodetic System 1984 (G730)"],
70-
MEMBER["World Geodetic System 1984 (G873)"],
71-
MEMBER["World Geodetic System 1984 (G1150)"],
72-
MEMBER["World Geodetic System 1984 (G1674)"],
73-
MEMBER["World Geodetic System 1984 (G1762)"],
74-
MEMBER["World Geodetic System 1984 (G2139)"],
75-
ELLIPSOID["WGS 84",6378137,298.257223563,
76-
LENGTHUNIT["metre",1]],
77-
ENSEMBLEACCURACY[2.0]],
78-
PRIMEM["Greenwich",0,
79-
ANGLEUNIT["radian",1]],
80-
CS[ellipsoidal,2],
81-
AXIS["geodetic latitude (Lat)",north,
82-
ORDER[1],
83-
ANGLEUNIT["radian",1]],
84-
AXIS["geodetic longitude (Lon)",east,
85-
ORDER[2],
86-
ANGLEUNIT["radian",1]],
87-
USAGE[
88-
SCOPE["Horizontal component of 3D system."],
89-
AREA["World."],
90-
BBOX[-80,80,90,80]],
91-
ID["EPSG",4326]]
92-
"""
93-
9462
cice.write()
9563

9664
cice.create_masknc(mask_file)
@@ -103,4 +71,4 @@ def main():
10371
cice.write_mask()
10472

10573
if __name__ == '__main__':
106-
sys.exit(main())
74+
sys.exit(main())

0 commit comments

Comments
 (0)