I found an issue that the locations of the sampled points from ee.image.sample() do not match the locations of the input points.
Above, the image is extracted MODIS 1km band, and the red points are my sample points uploaded from a CSV file.
From GEE Projection tutorials, "the projection of the input is determined by the output". Since everything displayed on GEE is Mercator, I convert the MODIS as WGS84, which is consistent with my training points. I guess that's the reason why they are perfectly aligned together.
After I run the codes below, the sampled points (black) are so wired.
var m1k_scale = m1k.sample({
region: ast_test,
scale: 1000,
projection: "EPSG:4326", // this line does not matter after check
geometries: true
})
Code is here: https://code.earthengine.google.com/5a179d3ba449736c10232a4911adb6f6
How do I fix the issue?