Match Spatial
MATCH_SPATIAL
See the source code.
This test verifies cursor value and spatial profile consistency with spatially matched images across 4 related image files.
Frontend sends: OPEN_FILE (
OpenFile) for 4 imagesfile = "HD163296_CO_2_1.fits", file_id = 100 file = "HD163296_13CO_2-1.fits", file_id = 101 file = "HD163296_C18O_2-1.fits", file_id = 102 file = "HD163296_CO_2_1.image", file_id = 103
Frontend sends: SET_CURSOR (
SetCursor) at (200.0, 200.0)Frontend sends: SET_SPATIAL_REQUIREMENTS (
SetSpatialRequirements) for x and y coordinatesBackend returns: SPATIAL_PROFILE_DATA (
SpatialProfileData) for all images
Check 1: the spatial profile data should satisfy:
Cursor value for fileId 100 = -0.0023265306372195482
Spatial profile data matches across all 4 images with 4 decimal precision
x coordinate raw profile values at indices [0, 500, 1000, 1500] = [36, 242, 86, 48]
y coordinate raw profile values at indices [0, 500, 1000, 1500] = [84, 163, 231, 66]
Profiles array has end = 432 for both x and y