Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Dec 23, 2024
1 parent c90b7f9 commit 08b377f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/DataWrangling/JRA55/JRA55.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module JRA55

export JRA55_field_time_series, JRA55_prescribed_atmosphere
export JRA55_field_time_series, JRA55PrescribedAtmosphere

using Oceananigans
using Oceananigans.Units
Expand Down Expand Up @@ -30,6 +30,6 @@ using Downloads: download

include("JRA55_metadata.jl")
include("JRA55_field_time_series.jl")
include("JRA55_prescribed_atmosphere.jl")
include("JRA55PrescribedAtmosphere.jl")

end # module
22 changes: 11 additions & 11 deletions src/DataWrangling/JRA55/JRA55_prescribed_atmosphere.jl
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@

const AA = Oceananigans.Architectures.AbstractArchitecture

JRA55_prescribed_atmosphere(time_indices=Colon(); kw...) =
JRA55_prescribed_atmosphere(CPU(), time_indices; kw...)
JRA55PrescribedAtmosphere(time_indices=Colon(); kw...) =
JRA55PrescribedAtmosphere(CPU(), time_indices; kw...)

JRA55_prescribed_atmosphere(arch::Distributed, time_indices=Colon(); kw...) =
JRA55_prescribed_atmosphere(child_architecture(arch), time_indices; kw...)
JRA55PrescribedAtmosphere(arch::Distributed, time_indices=Colon(); kw...) =
JRA55PrescribedAtmosphere(child_architecture(arch), time_indices; kw...)

# TODO: allow the user to pass dates
"""
JRA55_prescribed_atmosphere(architecture::AA, time_indices=Colon();
backend = nothing,
time_indexing = Cyclical(),
reference_height = 10, # meters
include_rivers_and_icebergs = false,
other_kw...)
JRA55PrescribedAtmosphere(architecture::AA, time_indices=Colon();
backend = nothing,
time_indexing = Cyclical(),
reference_height = 10, # meters
include_rivers_and_icebergs = false,
other_kw...)
Return a `PrescribedAtmosphere` representing JRA55 reanalysis data.
"""
function JRA55_prescribed_atmosphere(architecture::AA, time_indices=Colon();
function JRA55PrescribedAtmosphere(architecture::AA, time_indices=Colon();
backend = nothing,
time_indexing = Cyclical(),
reference_height = 10, # meters
Expand Down

0 comments on commit 08b377f

Please sign in to comment.