Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation and pixel area calculation error #36

Open
Sakar771 opened this issue Jul 27, 2023 · 0 comments
Open

Validation and pixel area calculation error #36

Sakar771 opened this issue Jul 27, 2023 · 0 comments

Comments

@Sakar771
Copy link

Sakar771 commented Jul 27, 2023

  1. Whenever I try to validate the LandTrendr map with reference from google earth image, I see the map is 2,3 pixels off from the actual change detected. It's happening almost 7/10 in both loss and gain map.

  2. Another problem is, I used,

//For MAG area calculation
var magChange = changeImg.select(['mag']).gte(200).and(changeImg.select(['mag']).lt(800));
var areaPalette = magChange.multiply(areaImage);
var areaPaletteSqM = areaPalette.reduceRegion({
reducer: ee.Reducer.sum(),
geometry: aoi,
scale: 30,
maxPixels: 1e13
}).getNumber('mag');

//For YOD area calculations,
var magChange = changeImg.select(['yod']).gte(1990).and(changeImg.select(['yod']).lt(2020));
var areaPalette = magChange.multiply(areaImage);
var areaPaletteSqM = areaPalette.reduceRegion({
reducer: ee.Reducer.sum(),
geometry: aoi,
scale: 30,
maxPixels: 1e13
}).getNumber('yod');

I used these codes for calculating pixel area in sq.km for both Magnitude and Year of Detection map and found errors.
In 'Loss' map, almost 20% og rmse loss of YOD against MAG map (in pixel area of sq.km)
But in 'gain' map, almost less than 1% rmse loss of YOD against MAG map.

@Sakar771 Sakar771 changed the title Validation issue and pixel area calculation Validation and pixel area calculation error Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant