Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Balinus authored Sep 13, 2024
1 parent d2c5375 commit 6e425e8
Showing 1 changed file with 2 additions and 40 deletions.
42 changes: 2 additions & 40 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using Climat
using ClimateTools
using Test
using NetCDF
using YAXArrays
using DimensionalData
# using StableRNGs
using Statistics
using Dates

@testset "Climat.jl" begin
@testset "ClimateTools.jl" begin
# Write your tests here.

obsfile = joinpath(dirname(@__FILE__), "data", "obs.nc")
Expand Down Expand Up @@ -50,40 +49,3 @@ using Dates
# Plots.density!(qq[:,3,3].data, linewidth=2.5,label="QQ")

end

# # Generation of random data
# datevec = DateTime(1981,1,1):Dates.Day(1):DateTime(2010,12,31)
# datevec2 = DateTime(2011,1,1):Dates.Day(1):DateTime(2040,12,31)

# lon = [-75.0, -72.5, -70.0, -67.5]
# lat = [35.0, 37.5, 40.0, 42.5]

# mu_obs = 0.0;sigma_obs = 5.0
# mu_ref = 3.15;sigma_ref = 7.4
# mu_fut = 3.5;sigma_fut = 8.0

# obsdata = rand(Normal(mu_obs, sigma_obs), length(datevec), 4, 4)
# refdata = rand(Normal(mu_ref, sigma_ref), length(datevec), 4, 4)
# futdata = rand(Normal(mu_fut, sigma_fut), length(datevec2), 4, 4)


# axlist = (
# Dim{:Ti}(datevec),
# Dim{:lon}(lon),
# Dim{:lat}(lat),
# )

# axlist2 = (
# Dim{:Ti}(datevec2),
# Dim{:lon}(lon),
# Dim{:lat}(lat),
# )

# properties_obs = Dict("mu" => mu_obs, "sigma" => sigma_obs)
# obs = YAXArray(axlist, obsdata, properties_obs)

# properties_ref = Dict("mu" => mu_ref, "sigma" => sigma_ref)
# ref = YAXArray(axlist, refdata, properties_ref)

# properties_fut = Dict("mu" => mu_fut, "sigma" => sigma_fut)
# fut = YAXArray(axlist2, futdata, properties_fut)

0 comments on commit 6e425e8

Please sign in to comment.