File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 55 ensure_artifact_installed (" rqatestdata" , " Artifacts.toml" )
66 testdatapath = joinpath (artifact " rqatestdata" , " RQADeforestationTestData-2.0" )
77
8- testdir = " tmp/testdata"
8+ testdir = " / tmp/testdata"
99 rm (testdir, recursive= true , force= true )
1010 mkpath (testdir)
1111 outdir = " $testdir /out.zarr"
1212 indir = " $testdir /in"
1313 cp (testdatapath, indir)
1414
15- OLD_ARGS = ARGS [:]
16- copy! (ARGS , [
17- " --tile" , " E051N018T3" ,
18- " --continent" , " EU" ,
19- " --start-date" , " 2021-01-01" ,
20- " --end-date" , " 2021-12-31" ,
21- " --in-dir" , indir,
22- " --out-dir" , outdir,
23- ])
24- # test normal execution
25- RQADeforestation. julia_main ()
26- # test short cut implementation using cache files
27- RQADeforestation. julia_main ()
28- copy! (ARGS , OLD_ARGS)
15+ using Zarr
16+ using YAXArrays
17+ using Dates
18+ RQADeforestation. main (;
19+ tiles= [" E051N018T3" ],
20+ continent= " EU" ,
21+ indir= " ../../RQADeforestationTestData" ,
22+ start_date= Date (" 2021-01-01" ),
23+ end_date= Date (" 2021-12-31" ), outdir= outdir
24+ )
25+ a = open_dataset (outdir * " /E051N018T3_rqatrend_VH_D022_thresh_3.0.zarr" ). layer
26+
27+ @test size (a) == (50 , 74 )
28+ @test minimum (a) < 18
29+ @test maximum (a) > 0
2930end
You can’t perform that action at this time.
0 commit comments