Skip to content

Commit

Permalink
test: X, Y
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Oct 29, 2024
1 parent b2184d7 commit a82f82c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/test-latlon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ using IceFloeTracker: getlatlon

@testset "getlatlon" begin
imgpth = "test_inputs/latlon/latlon_test_image-2020-06-21T00_00_00Z.tif"

# vec needed to convert to vector instead of nx1 matrix
expected_X = vec(readdlm("test_inputs/latlon/X.csv", ',', Float64))
expected_Y = vec(readdlm("test_inputs/latlon/Y.csv", ',', Float64))

expected_lat = readdlm("test_inputs/latlon/latitude.csv", ',', Float64)
expected_lon = readdlm("test_inputs/latlon/longitude.csv", ',', Float64)

latlon = getlatlon(imgpth)
@test expected_X == latlon["X"]
@test expected_Y == latlon["Y"]
@test expected_lat == latlon["latitude"]
@test expected_lon == latlon["longitude"]
end

0 comments on commit a82f82c

Please sign in to comment.