|
1 | 1 | using Test, Documenter, Suppressor, MeshArrays, CairoMakie |
2 | 2 | import DataDeps, JLD2, Shapefile, GeoJSON, Proj, GeometryOps |
3 | | - |
| 3 | +#import MITgcm |
| 4 | + |
4 | 5 | MeshArrays.Dataset("GRID_LL360") |
5 | 6 | MeshArrays.Dataset("GRID_LLC90") |
6 | 7 | MeshArrays.Dataset("GRID_LLC270") |
@@ -349,12 +350,22 @@ end |
349 | 350 | plot_examples(:baseproj,proj,lon0,pol=pol_shp) |
350 | 351 | end |
351 | 352 |
|
352 | | -@testset "polygon operattions" begin |
| 353 | +if false |
| 354 | +#@testset "polygon operations" begin |
353 | 355 | name,rule=MeshArrays.within_pol(pol_json; ID=11) |
354 | 356 | rule_vec = (x,y) -> rule.(x,y) |
355 | 357 |
|
356 | 358 | np=10000; lo=-180 .+360*rand(np); la=-90 .+180*rand(np); |
357 | 359 | 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) |
358 | 369 | end |
359 | 370 |
|
360 | 371 | @testset "doctests" begin |
|
0 commit comments