BACKGROUND
Fraction of Absorbed Photosynthetically Active Radiation (FAPAR) is a biophysical measurement corresponding to the percentage of sunlight that is absorbed green vegetation. The data is measured by the MODIS sensors on NASA’s Terra and Aqua satellites. The image resolution is 500m it is a composite of data collected by both satellites over an 8 day period.
IMPLEMENTATION
Draw a polygon on the map over land, select a date and click Load imagery and the data will become visible on the map. You can chose a random location to draw the polygon by clicking the Pick a random location button. The maximum permitted area of the polygon is set to 1 million km2 and selecting a larger polygon will return an error.
Data are obtained from NASA via the Level-1 and Atmosphere Archive & Distribution System (LAADS) Distributed Active Archive Center (DAAC) via an API call to retrieve available imagery as .hdf
files e.g. https://ladsweb.modaps.eosdis.nasa.gov/api/v2/content/archives?products=MCD15A2H&temporalRanges=2023-06-20®ions=[BBOX]W10%20N55%20E5%20S50 and these are downloaded and the Fpar_500m
layer is extracted, merged and cropped to the selected area by {terra}
functions.
Areas that are permanent water, urban areas are returned as missing values and other reasons also result in missing values. Information on the missing values present in the selected area are logged in the logger.
If you are running shinyscholar locally, a NASA bearer token is required to download the data. Register for free here and then follow these instructions to obtain one. You can then enter it in the box or create environmental variables called 'NASA_username' and 'NASA_password' to enable the app to fetch a token automatically.
REFERENCES
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.