source: subversion/applications/rendering/genericHeatmapRender/heatmappr_GridDemo.py @ 16229

Last change on this file since 16229 was 16229, checked in by stevefaeembra, 10 years ago

added grid and T@H heatmap code and demos

File size: 1.6 KB
Line 
1#!/usr/bin/env python
2# -*- coding: UTF8 -*-
3
4from locationFinder_regularGrid import locationFinder_regularGrid as locator
5from heatmapPNGgenerator import heatmapPNGgenerator as PNGrenderer
6from KMLGenerator import KMLGenerator
7
8'''
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License along
20    with this program; if not, write to the Free Software Foundation, Inc.,
21    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22'''
23
24if __name__ == '__main__':
25   
26    # example using the locationFinder_regularGrid
27   
28    # coordinate finder
29    finder = locator()
30     
31    # set to contain all possible points
32    finder.bounds=(0.0,0.0,4096.0,4096.0)
33   
34    # find the X,Y,Z points
35   
36    finder.query("none",steps=4096.0)   
37    print finder.getBounds()
38   
39    PNGfile=r'c:\testxyz.png'
40
41    heatmap=PNGrenderer(finder, 
42                        opacity=1.0, 
43                        bands=100, 
44                        save=False,
45                        target= PNGfile,
46                        display=True,
47                        logarithmic=True)
48    heatmap.render()
49   
50    print "Done!"
Note: See TracBrowser for help on using the repository browser.