Here are six pixels of a Landsat-like scene, with the digital numbers of their red and near-infrared bands. You will turn them into reflectances and a vegetation index, and count the dense plant cover.
The idea. Rescale each count with , divide by for the Sun's elevation, and then take the NDVI of the two reflectances.
Your tasks.
reflectance, return the reflectance of one digital number for the given Sun elevation.ndvi, return the NDVI of a pixel from its red and near-infrared digital numbers.count_dense, return how many pixels have an NDVI of or more.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…