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

ntl_mean #54

Open
Abdulazizbek opened this issue Feb 9, 2024 · 3 comments
Open

ntl_mean #54

Abdulazizbek opened this issue Feb 9, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@Abdulazizbek
Copy link

data = bm_extract(roi = gdf, 
                      product_id = "VNP46A2",
                      date_range = pd.date_range("2021-10-02", "2021-11-01", freq="D"), 
                      bearer = bearer,
                     )

When download data, it provides ntl_mean value.
I have found some additional information what does it mean: ntl_mean, but I'm not sure.
My question is: what is the exact interpretation of ntl_mean:
Thank you beforehand,

@g4brielvs g4brielvs self-assigned this Feb 12, 2024
@g4brielvs g4brielvs added the question Further information is requested label Feb 12, 2024
@g4brielvs
Copy link
Contributor

g4brielvs commented Feb 12, 2024

@Abdulazizbek Thanks! BlackMarblePy's bm_extract returns zonal statistics. Zonal statistics summarize raster data by aggregating (e.g., adding up) the values of the raster cells that fall within each zone defined by the vector geometries. By default (see documentation), the average is be returned. You may select other valid functions, e.g., sum or median.

@Abdulazizbek
Copy link
Author

Abdulazizbek commented Feb 13, 2024

Thank you for detailed explanation.
Is it possible to interpret ntl_mean value from bm_extract (unit of the lights measured in nighttime lights?) like this version:
(Giga) Watts luminosity for NxN km

@g4brielvs g4brielvs reopened this Jul 29, 2024
@g4brielvs
Copy link
Contributor

g4brielvs commented Jul 29, 2024

Thank you for detailed explanation. Is it possible to interpret ntl_mean value from bm_extract (unit of the lights measured in nighttime lights?) like this version: (Giga) Watts luminosity for NxN km

@Abdulazizbek The returned values are zonal statistics, in other words, the average value of all the cells within the zone. The data values represent the intensity of nighttime lights; thus, the zonal statistics would represent average light intensity within each zone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants