You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Resampling a OutputVar using the dimensions from another OutputVar](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#resampling-a-outputvar-using-the-dimensions-from-another-outputvar)
11
+
-[Add support for converting units](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#add-support-for-converting-units)
12
+
-[Applying a land/sea mask to GeoMakie plots](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#applying-a-landsea-mask-to-geomakie-plots)
13
+
-[Integrating OutputVar with respect to longitude or latitude](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#integrating-outputvar-with-respect-to-longitude-or-latitude)
14
+
-[Splitting OutputVar by season](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#splitting-outputvar-by-season)
15
+
-[Compute bias and squared error between OutputVar](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#compute-bias-and-squared-error-between-outputvar)
16
+
-[Represent RMSEs from various models](https://github.com/CliMA/ClimaAnalysis.jl/blob/main/NEWS.md#represent-rmses-from-various-models)
8
17
9
18
### Add support for directly reading NetCDF files
10
19
@@ -133,7 +142,7 @@ integration being done is rectangular integration using the left endpoints for i
133
142
longitude and latitude. See the example of integrating over a sphere where the data is all
134
143
ones to find the surface area of a sphere.
135
144
136
-
```@julia integrate_lonlat
145
+
```julia
137
146
julia> lon =collect(range(-179.5, 179.5, 360));
138
147
139
148
julia> lat =collect(range(-89.5, 89.5, 180));
@@ -164,7 +173,7 @@ julia> long_name(integrated_var) # updated long name to reflect the data being i
164
173
"f integrated over lon (-179.5 to 179.5degrees_east) and integrated over lat (-89.5 to 89.5degrees_north)"
165
174
```
166
175
167
-
### Split by season
176
+
### Splitting OutputVar by season
168
177
`OutputVar`s can be split by seasons using `split_by_season(var)` provided that a start date
169
178
can be found in `var.attributes["start_date"]` and time is a dimension in the `OutputVar`.
170
179
The unit of time is expected to be second. The function `split_by_season(var)` returns a
@@ -173,7 +182,7 @@ the seasons are March to May, June to August, September to November, and Decembe
173
182
February. The order of the vector is MAM, JJA, SON, and DJF. If there are no dates found for
174
183
a season, then the `OutputVar` for that season will be an empty `OutputVar`.
175
184
176
-
```@julia split_by_season
185
+
```julia
177
186
julia> attribs =Dict("start_date"=>"2024-1-1");
178
187
179
188
julia> time = [0.0, 5_184_000.0, 13_132_800.0]; # correspond to dates 2024-1-1, 2024-3-1, 2024-6-1
0 commit comments