Skip to main content

A Python implementation of the GlobAlbedo prior calculations.

Project description

Code to produce the GlobAlbedo prior from MODIS data, using the MCD43A1 and MCD43A2 MODIS products.

The Python package can be installed using pip or easy_install (it’s available from the cheese shop. Once installed with e.g. pip install globalbedo_prior --user --upgrade, a script called alvedro_prior should appear in your path (this depends on pip/easy_intall doing their work properly). This script can be used to produce a daily prior of BRDF kernel parameters derived from the MODIS products.

The generation of the prior is very simple, and is performed in two stages:

Stage 1

For each pixel, the entire timeseries of 8-daily observations are averaged using a weight derived from the QA flags. This results in a mostly complete 8-daily kernel product, stored as GeoTIFF files. Note that in some regions with cloud problems, there can be empty pixels as no observations are available for the period of interest within the MODIS record. Note that we calculate both the mean and standar deviation of the kernel parameters.

Stage 2

For each day of year and pixel, a simple Laplacian filter in time is used to interpolate temporally. The filter is quite peaky, and its weight decays to 0.5 8 days after the day of interest.

Usage

The usage using the alvedro_prior script is very simple: just stash the MCD43A1 and MCD43A2 files somewhere (no need for fancy directories or anything, although that helps you!), and select a tile. Then decide whether the output will be saved to, and execute a command like this:

nohup alvedro_prior --tile h17v04 --datadir <my_data_directory_root> --outdir <my_output_directory> &

The previous command will search for the MCD43A1/2 files below <my_data_directory_root> that relate to tile h17v04 and save the Stage 1 and Stage 2 priors in <my_output_directory>.

The data

Stage 1 priors are written for each 8 day period in the year, for the three kernels and have two bands: the mean and the “weight” (or inverse of the variance). Stage 2 priors are given per kernel, and have 366 bands, each of them with the prior mean for that particular day. The uncertainty associated with the Stage 2 prior has not been calculated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

globalbedo_prior-1.0.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

globalbedo_prior-1.0.2.linux-x86_64.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file globalbedo_prior-1.0.2.tar.gz.

File metadata

File hashes

Hashes for globalbedo_prior-1.0.2.tar.gz
Algorithm Hash digest
SHA256 067e4395a58b437e11a2ccb89f095a258e5d67b3a39ce2bda82b96480743e060
MD5 b9668aed0e36d9e828dc5553d0396967
BLAKE2b-256 8cdc93b527cc0ffa5e1841b38a9d436f9fccb0c7d7eea1a858ce7c22a74761c5

See more details on using hashes here.

File details

Details for the file globalbedo_prior-1.0.2.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for globalbedo_prior-1.0.2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 7bcd89ae7839372cf0034f1b2c32838df63b6c2a8cc5253dfd542ee2650527fd
MD5 a72196bd6ea54268aab6decca44e02e9
BLAKE2b-256 b4e93f41d82a48aa9b53ed5aeccc396e156b4b8a33a9c842da13b81713d895c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page