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
Copy file name to clipboardExpand all lines: src/DataWrangling/JRA55/JRA55_field_time_series.jl
+20-13Lines changed: 20 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -235,9 +235,11 @@ new_backend(b::JRA55NetCDFBackend, start, length) = JRA55NetCDFBackend(start, le
235
235
236
236
Return a `FieldTimeSeries` containing atmospheric reanalysis data for `variable_name`,
237
237
which describes one of the variables from the Japanese 55-year atmospheric reanalysis
238
-
for driving ocean-sea ice models (JRA55-do).
238
+
for driving ocean-sea ice models (JRA55-do). The JRA55-do dataset is described by:
239
239
240
-
The `variable_name`s (and their `shortname`s used in NetCDF files) available from the JRA55-do are:
240
+
> Tsujino et al. (2018). JRA-55 based surface dataset for driving ocean-sea-ice models (JRA55-do), _Ocean Modelling_, **130(1)**, 79-139
241
+
242
+
The `variable_name`s (and their `shortname`s used in the netCDF files) available from the JRA55-do are:
241
243
- `:river_freshwater_flux` ("friver")
242
244
- `:rain_freshwater_flux` ("prra")
243
245
- `:snow_freshwater_flux` ("prsn")
@@ -257,13 +259,19 @@ Keyword arguments
257
259
- `architecture`: Architecture for the `FieldTimeSeries`. Default: CPU()
258
260
259
261
- `dataset`: The data dataset; supported datasets are: `RepeatYearJRA55()` and `MultiYearJRA55()`.
260
-
`MultiYearJRA55()` refers to the full length of the JRA55-do dataset; `RepeatYearJRA55()`
261
-
refers to the "repeat-year forcing" dataset derived from JRA55-do. For more information
262
-
about the derivation of the repeat-year forcing dataset, see:
262
+
`MultiYearJRA55()` refers to the full length of the JRA55-do dataset; `RepeatYearJRA55()`
263
+
refers to the "repeat-year forcing" dataset derived from JRA55-do. Default: `RepeatYearJRA55()`.
264
+
265
+
!!! info "Repeat-year forcing"
266
+
267
+
For more information about the derivation of the repeat-year forcing dataset, see:
263
268
264
-
> Stewart et al. (2020). JRA55-do-based repeat year forcing datasets for driving ocean–sea-ice models, _Ocean Modelling_, **147**, 101557, https://doi.org/10.1016/j.ocemod.2019.101557.
269
+
> Stewart et al. (2020). JRA55-do-based repeat year forcing datasets for driving ocean–sea-ice models, _Ocean Modelling_, **147**, 101557, https://doi.org/10.1016/j.ocemod.2019.101557.
265
270
266
-
Default: `RepeatYearJRA55()`.
271
+
The repeat year in `RepeatYearJRA55()` corresponds to May 1st, 1990 - April 30th, 1991. However, the
272
+
returned dataset has dates that range from January 1st to December 31st. This implies
273
+
that the first 4 months of the `JRA55RepeatYear()` dataset correspond to year 1991 from the JRA55
274
+
reanalysis and the rest 8 months from 1990.
267
275
268
276
- `start_date`: The starting date to use for the dataset. Default: `first_date(dataset, variable_name)`.
269
277
@@ -278,8 +286,8 @@ Keyword arguments
278
286
Default: nothing, which retains the latitude range of the native grid.
279
287
280
288
- `longitude`: Guiding longitude bounds for the resulting grid.
281
-
Used to slice the data when loading into memory.
282
-
Default: nothing, which retains the longitude range of the native grid.
289
+
Used to slice the data when loading into memory.
290
+
Default: nothing, which retains the longitude range of the native grid.
283
291
284
292
- `backend`: Backend for the `FieldTimeSeries`. The two options are
285
293
* `InMemory()`: the whole time series is loaded into memory.
@@ -307,8 +315,7 @@ function JRA55FieldTimeSeries(metadata::JRA55Metadata, architecture=CPU(), FT=Fl
307
315
backend =InMemory(),
308
316
time_indexing =Cyclical())
309
317
310
-
311
-
# Cannot use `TotallyInMemory` backend with JRA55MultipleYear dataset
318
+
# Cannot use `TotallyInMemory` backend with MultiYearJRA55 dataset
312
319
if metadata.dataset isa MultiYearJRA55 && backend isa TotallyInMemory
313
320
msg =string("The `InMemory` backend is not supported for the MultiYearJRA55 dataset.")
314
321
throw(ArgumentError(msg))
@@ -402,8 +409,8 @@ function JRA55FieldTimeSeries(metadata::JRA55Metadata, architecture=CPU(), FT=Fl
402
409
λn =Array(ds["lon_bnds"][1, :])
403
410
φn =Array(ds["lat_bnds"][1, :])
404
411
405
-
# The .nc coordinates lon_bnds and lat_bnds do not include
406
-
# the last interface, so we push them here.
412
+
# The netCDF coordinates lon_bnds and lat_bnds do not include
0 commit comments