@@ -6,7 +6,7 @@ describes the types of plants on the surface of the globe. The
6
6
` SpaceVaringInputs ` and ` TimeVaryingInputs ` modules provide a unified
7
7
infrastructure to handle all these cases.
8
8
9
- ## ` TimeVaryingInputs `
9
+ ## [ ` TimeVaryingInputs ` ] ( @ id timevaryinginput)
10
10
11
11
> This extension is loaded when loading ` ClimaCore ` is loaded. In addition to
12
12
> this, if NetCDF files are used, ` NCDatasets ` has to be loaded too. Finally, a
@@ -21,9 +21,9 @@ developers to update their `Field`s.
21
21
This example shows that ` TimeVaryingInput ` can take different types of inputs
22
22
and be used with a single interface (` evaluate! ` ). In all of this,
23
23
` TimeVaryingInput ` s internally handle all the complexity related to reading
24
- files (using [ ` FileReaders ` ] ( @ref ) ), dealing with parallelism and GPUs,
25
- regridding onto the computational domains (using [ ` Regridders ` ] ( @ref ) and
26
- [ ` DataHandling ` ] ( @ref ) ), and so on.
24
+ files (using [ ` FileReaders ` ] (@ref file_reader_module )), dealing with parallelism and GPUs,
25
+ regridding onto the computational domains (using [ ` Regridders ` ] (@ref regridder_module ) and
26
+ [ ` DataHandling ` ] (@ref datahandling_module )), and so on.
27
27
28
28
` TimeVaryingInputs ` support:
29
29
- analytic functions of time;
@@ -53,7 +53,7 @@ All input variables to be composed together must have the same spatial and
53
53
temporal dimensions.
54
54
55
55
Composing multiple input variables is currently only supported with the
56
- ` InterpolationsRegridder ` , not with ` TempestRegridder ` . The regridding
56
+ [ ` InterpolationsRegridder ` ] ( @ ref interp_regridder) , not with [ ` TempestRegridder ` ] ( @ ref tempest_regridder) . The regridding
57
57
is applied after the pre-processing and composing.
58
58
59
59
Composing multiple input variables in one ` Input ` is also possible with
@@ -64,7 +64,7 @@ a `SpaceVaryingInput`, and everything mentioned here applies in that case.
64
64
Suppose that the input NetCDF file ` era5_example.nc ` contains two variables ` u `
65
65
and ` v ` , and we care about their sum ` u + v ` but not their individual values.
66
66
We can provide a pointwise composing function to perform the sum, along with
67
- the ` InterpolationsRegridder ` to produce the data we want, ` u + v ` .
67
+ the [ ` InterpolationsRegridder ` ] ( @ ref interp_regridder) to produce the data we want, ` u + v ` .
68
68
The ` preprocess_func ` passed in ` file_reader_kwargs ` will be applied to ` u `
69
69
and to ` v ` individually, before the composing function is applied. The regridding
70
70
is applied after the composing function. ` u ` and ` v ` could also come from separate
@@ -109,7 +109,7 @@ timevaryinginput = TimeVaryingInputs.TimeVaryingInput(["era5_1980.nc", "era5_198
109
109
110
110
This capability is only available for the ` InterpolationsRegridder ` .
111
111
112
- Read more about this feature in the page about [ ` DataHandler ` ] ( @ref ) .
112
+ Read more about this feature in the page about [ ` DataHandler ` ] (@ref datahandling_module ).
113
113
114
114
### Extrapolation boundary conditions
115
115
@@ -213,23 +213,24 @@ albedo_tv = TimeVaryingInputs.TimeVaryingInput("cesem_albedo.nc", "alb", target_
213
213
214
214
!!! note
215
215
216
- In this example we used the [`TempestRegridder`](@ref). This is not the best
217
- choice in most cases because the [`TempestRegridder`](@ref) is slower, and
216
+ In this example we used the [`TempestRegridder`](@ref tempest_regridder).
217
+ This is not the best
218
+ choice in most cases because the [`TempestRegridder`](@ref tempest_regridder) is slower, and
218
219
not well-compatible with MPI and GPUs (`ClimaUtilities` implements
219
220
workarounds for this, so the code would still work).
220
- [`InterpolationsRegridder`](@ref) should be preferred, unless there is a
221
- strict requirement of conservation: while [`TempestRegridder`](@ref) is
222
- guaranteed to conserve various properties, [`InterpolationsRegridder`](@ref)
221
+ [`InterpolationsRegridder`](@ref interp_regridder ) should be preferred, unless there is a
222
+ strict requirement of conservation: while [`TempestRegridder`](@ref tempest_regridder ) is
223
+ guaranteed to conserve various properties, [`InterpolationsRegridder`](@ref interp_regridder )
223
224
is not.
224
225
225
- ## ` SpaceVaryingInputs `
226
+ ## [ ` SpaceVaryingInputs ` ] ( @ id spacevaryinginput)
226
227
227
228
> This extension is loaded when loading ` ClimaCore ` is loaded. In addition to
228
229
> this, if NetCDF files are used, ` NCDatasets ` has to be loaded too. Finally, a
229
230
> ` Regridder ` is needed (which might require importing additional packages).
230
231
231
232
` SpaceVaryingInput ` s uses the same building blocks as ` TimeVaryingInput `
232
- (chiefly the [ ` DataHandling ` ] ( @ref ) module ) to construct a ` Field ` from
233
+ (chiefly the [ ` DataHandling ` ] (@ref datahandling_module) datahandling_module ) to construct a ` Field ` from
233
234
different sources.
234
235
235
236
` SpaceVaryingInputs ` support:
@@ -246,7 +247,7 @@ be a named tuple or a dictionary that maps `Symbol`s to values.
246
247
247
248
` SpaceVaryingInputs ` support reading individual input variables from NetCDF files,
248
249
as well as composing multiple input variables into one ` SpaceVaryingInput ` .
249
- See the [ ` TimeVaryingInput ` ] ( @ref ) "NetCDF file inputs" section for more
250
+ See the [ ` TimeVaryingInput ` ] (@ref timevaryinginput ) "NetCDF file inputs" section for more
250
251
information about this feature.
251
252
252
253
### Example
@@ -284,5 +285,6 @@ ClimaUtilities.TimeVaryingInputs.Flat
284
285
ClimaUtilities.TimeVaryingInputs.evaluate!
285
286
ClimaUtilities.TimeVaryingInputs.extrapolation_bc
286
287
Base.in
287
- Base.close
288
+ Base.close(::ClimaUtilities.TimeVaryingInputs.AbstractTimeVaryingInput)
289
+
288
290
```
0 commit comments