-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
88 lines (56 loc) · 2.89 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
This project is about the creation of a GUI interface for the georeferencing of LSA-SAF and GEOLAND-2 BioPar HDF5 files.
Currently the project is working with LSA-SAF files. It is being tested on Ubuntu Linux and Windows XP.
There are 3 main files:
- h5georef.py - A module with the core functionality to georeference the HDF5 files.
- georef_hdf5.py - A script for command line usage.
- HDF5Georeferencer.py - A Graphical User Interface made with PyQt4.
------------
Dependencies
------------
This project uses:
- python
- gdal utility programs (gdal_translate and gdalwarp)
- proj's cs2cs
- The pytables python library
- The graphical user interface is built with PyQt4
------------
Installation
------------
Installation on Ubuntu
----------------------
(I believe these instructions should work on another debian-based distributions as well and also no debian-based, with some adjustments):
1 - Install dependencies. Open up a terminal and type:
sudo apt-get install python-tables python-qt4 proj-bin gdal-bin
2 - Download this repository. Press the 'Download this repository as ZIP file' button on github's project page. Extract the files.
Installation on Windows:
-----------------------
1 - Download and install the FWTools package from:
http://fwtools.maptools.org/
2 - Download and install the python(x,y) distribution from
http://code.google.com/p/pythonxy/
- When installing python(x,y) make sure you have AT LEAST the following packages selected:
- PyQT
- numexpr
- pytables
3 - Download this repository. Press the 'Download this repository as ZIP file' button on github's project page. Extract the files.
-----------------
Using the project
-----------------
Linux
-----
1 - Navigate to the directory where you downloaded the code and double click on the HDF5Georeferencer.py file.
Choose to execute it if asked.
2 - A graphical window will appear and the rest is (hopefully) self-explanatory.
Windows
-------
1 - Start an FWTools shell (accessible from windows start menu).
2 - Navigate to the directory where you downloaded the code. For example:
cd "C:\Documents and Settings\ricardo\dev\LSASAF-georeferencer"
3 - Execute the HDF5Georeferencer.py file with the python executable installed by python(x,y)
C:\Python27\python.exe HDF5Georeferencer.py
4 - A graphical window will appear and the rest is (hopefully) self-explanatory.
TIP: press the <tab> key to get autocompletion from the command line, so you don't have to hardtype all the paths.
Using the tool through the command line and in scripts.
-------------------------------------------------------
The georef_hdf5.py script can be called from the command-line in order to use this tool in scripts. See the help for more details. It is available by running:
georef_hdf5.py -h