Skip to content

Commit 09f492f

Browse files
Add more information for the RepeatYearJRA55() dataset, including date range correspondence to JRA55 (#408)
* change default JRA55RepeatYear date range to match Stewart et al. 2021 * revert to Jan1 -> Dec31 * add comment regarding repeat-year = May 1, 1990 -> Apr 30, 1991 * Update src/DataWrangling/JRA55/JRA55_field_time_series.jl Co-authored-by: Simone Silvestri <[email protected]> * Update JRA55_field_time_series.jl --------- Co-authored-by: Simone Silvestri <[email protected]>
1 parent 0d1791d commit 09f492f

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

src/DataWrangling/JRA55/JRA55_field_time_series.jl

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,11 @@ new_backend(b::JRA55NetCDFBackend, start, length) = JRA55NetCDFBackend(start, le
235235
236236
Return a `FieldTimeSeries` containing atmospheric reanalysis data for `variable_name`,
237237
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:
239239
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:
241243
- `:river_freshwater_flux` ("friver")
242244
- `:rain_freshwater_flux` ("prra")
243245
- `:snow_freshwater_flux` ("prsn")
@@ -257,13 +259,19 @@ Keyword arguments
257259
- `architecture`: Architecture for the `FieldTimeSeries`. Default: CPU()
258260
259261
- `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:
263268
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.
265270
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.
267275
268276
- `start_date`: The starting date to use for the dataset. Default: `first_date(dataset, variable_name)`.
269277
@@ -278,8 +286,8 @@ Keyword arguments
278286
Default: nothing, which retains the latitude range of the native grid.
279287
280288
- `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.
283291
284292
- `backend`: Backend for the `FieldTimeSeries`. The two options are
285293
* `InMemory()`: the whole time series is loaded into memory.
@@ -307,8 +315,7 @@ function JRA55FieldTimeSeries(metadata::JRA55Metadata, architecture=CPU(), FT=Fl
307315
backend = InMemory(),
308316
time_indexing = Cyclical())
309317

310-
311-
# Cannot use `TotallyInMemory` backend with JRA55MultipleYear dataset
318+
# Cannot use `TotallyInMemory` backend with MultiYearJRA55 dataset
312319
if metadata.dataset isa MultiYearJRA55 && backend isa TotallyInMemory
313320
msg = string("The `InMemory` backend is not supported for the MultiYearJRA55 dataset.")
314321
throw(ArgumentError(msg))
@@ -402,8 +409,8 @@ function JRA55FieldTimeSeries(metadata::JRA55Metadata, architecture=CPU(), FT=Fl
402409
λn = Array(ds["lon_bnds"][1, :])
403410
φn = Array(ds["lat_bnds"][1, :])
404411

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
413+
# the last interfaces, so we push them here.
407414
push!(φn, 90)
408415
push!(λn, λn[1] + 360)
409416

0 commit comments

Comments
 (0)