~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to imagery/i.modis.qc/mod13A2a.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* mod13A2 Mandatory QA Flags 1Km bits[0-1]
 
2
 * 00 -> class 0: VI produced, good quality
 
3
 * 01 -> class 1: VI produced, but check other QA
 
4
 * 10 -> class 2: Pixel produced, but most probably cloud
 
5
 * 11 -> class 3: Pixel not produced due to other reasons than clouds
 
6
 */  
 
7
 
 
8
#include <grass/raster.h>
 
9
 
 
10
CELL mod13A2a (CELL pixel) 
 
11
{
 
12
    CELL qctemp;
 
13
    qctemp = pixel & 0x03;
 
14
    
 
15
    return qctemp;
 
16
}
 
17
 
 
18