Skip to content

Commit f4f0dc0

Browse files
committed
add test for new polygons code (off until v0.4.1 release)
1 parent 47cb112 commit f4f0dc0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/runtests.jl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Test, Documenter, Suppressor, MeshArrays, CairoMakie
22
import DataDeps, JLD2, Shapefile, GeoJSON, Proj, GeometryOps
3-
3+
#import MITgcm
4+
45
MeshArrays.Dataset("GRID_LL360")
56
MeshArrays.Dataset("GRID_LLC90")
67
MeshArrays.Dataset("GRID_LLC270")
@@ -349,12 +350,22 @@ end
349350
plot_examples(:baseproj,proj,lon0,pol=pol_shp)
350351
end
351352

352-
@testset "polygon operattions" begin
353+
if false
354+
#@testset "polygon operations" begin
353355
name,rule=MeshArrays.within_pol(pol_json; ID=11)
354356
rule_vec = (x,y) -> rule.(x,y)
355357

356358
np=10000; lo=-180 .+360*rand(np); la=-90 .+180*rand(np);
357359
sum(rule_vec(lo,la))
360+
361+
path_MITgcm=MITgcm.getdata("mitgcmsmallverif")
362+
path_grid=joinpath(path_MITgcm,"MITgcm","verification","tutorial_held_suarez_cs","input")
363+
pols,pols3D=MeshArrays.Polygons.polygons_demo(path_grid)
364+
Depth=GridLoadVar("Depth",GridSpec(ID=:CS32))
365+
366+
MeshArrays.plot_examples(:polygons_plot,pols,color=Depth)
367+
MeshArrays.plot_examples(:polygons_plot_dev1,pols,pols3D,sphere_view=true)
368+
MeshArrays.plot_examples(:polygons_plot_dev1,pols,pols3D,sphere_view=false)
358369
end
359370

360371
@testset "doctests" begin

0 commit comments

Comments
 (0)