|
21 | 21 |
|
22 | 22 | # POM dataset |
23 | 23 | pomds = xr.Dataset() |
| 24 | +# fmt: off |
24 | 25 | pomds["sigma"] = ( |
25 | | - # fmt: off |
26 | 26 | "sigma", |
27 | 27 | [-0.983333, -0.95 , -0.916667, -0.883333, -0.85 , -0.816667, |
28 | 28 | -0.783333, -0.75 , -0.716667, -0.683333, -0.65 , -0.616667, |
29 | 29 | -0.583333, -0.55 , -0.516667, -0.483333, -0.45 , -0.416667, |
30 | 30 | -0.383333, -0.35 , -0.316667, -0.283333, -0.25 , -0.216667, |
31 | 31 | -0.183333, -0.15 , -0.116667, -0.083333, -0.05 , -0.016667], |
32 | | - # fmt: on |
33 | 32 | { |
34 | 33 | "units": "sigma_level", |
35 | 34 | "long_name": "Sigma Stretched Vertical Coordinate at Nodes", |
|
38 | 37 | "formula_terms": "sigma: sigma eta: zeta depth: depth", |
39 | 38 | } |
40 | 39 | ) |
| 40 | +# fmt: on |
41 | 41 | pomds["depth"] = 175.0 |
42 | 42 | pomds["zeta"] = ("ocean_time", [-0.155356, -0.127435]) |
43 | 43 |
|
|
109 | 109 |
|
110 | 110 |
|
111 | 111 | romsds = xr.Dataset() |
| 112 | +# fmt: off |
112 | 113 | romsds["s_rho"] = ( |
113 | | - # fmt: off |
114 | 114 | "s_rho", |
115 | 115 | [-0.983333, -0.95 , -0.916667, -0.883333, -0.85 , -0.816667, |
116 | 116 | -0.783333, -0.75 , -0.716667, -0.683333, -0.65 , -0.616667, |
117 | 117 | -0.583333, -0.55 , -0.516667, -0.483333, -0.45 , -0.416667, |
118 | 118 | -0.383333, -0.35 , -0.316667, -0.283333, -0.25 , -0.216667, |
119 | 119 | -0.183333, -0.15 , -0.116667, -0.083333, -0.05 , -0.016667], |
120 | | - # fmt: on |
121 | 120 | { |
122 | 121 | "long_name": "S-coordinate at RHO-points", |
123 | 122 | "valid_min": -1.0, |
124 | 123 | "valid_max": 0.0, |
125 | 124 | "standard_name": "ocean_s_coordinate_g2", |
126 | 125 | "formula_terms": "s: s_rho C: Cs_r eta: zeta depth: h depth_c: hc", |
127 | 126 | "field": "s_rho, scalar", |
128 | | - } |
| 127 | + }, |
129 | 128 | ) |
| 129 | +# fmt: on |
130 | 130 | romsds.coords["hc"] = 20.0 |
131 | 131 | romsds.coords["h"] = 603.9 |
132 | 132 | romsds.coords["Vtransform"] = 2.0 |
| 133 | +# fmt: off |
133 | 134 | romsds.coords["Cs_r"] = ( |
134 | | - # fmt: off |
135 | 135 | "s_rho", |
136 | 136 | [-9.33010396e-01, -8.09234736e-01, -6.98779853e-01, -6.01008926e-01, |
137 | 137 | -5.15058562e-01, -4.39938913e-01, -3.74609181e-01, -3.18031817e-01, |
|
141 | 141 | -2.53860004e-02, -1.95414261e-02, -1.46880431e-02, -1.06952600e-02, |
142 | 142 | -7.45515186e-03, -4.87981407e-03, -2.89916971e-03, -1.45919898e-03, |
143 | 143 | -5.20560097e-04, -5.75774004e-05], |
144 | | - # fmt: on |
145 | 144 | ) |
| 145 | +# fmt: on |
146 | 146 | romsds["zeta"] = ("ocean_time", [-0.155356, -0.127435]) |
147 | 147 | romsds["temp"] = ( |
148 | 148 | ("ocean_time", "s_rho"), |
|
0 commit comments