GithubHelp home page GithubHelp logo

leontavares / globalbedo_prior Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jgomezdans/globalbedo_prior

0.0 1.0 0.0 30 KB

Code to produce the GlobAlbedo prior from MODIS data

License: GNU General Public License v2.0

Python 100.00%

globalbedo_prior's Introduction

globalbedo_prior

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.

globalbedo_prior's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.