Changeset 1225
- Timestamp:
- 08/18/08 14:52:38 (3 months ago)
- Files:
-
- trunk/rsformats/scikits/rsformats/examples/aster/ASTER_example.py (modified) (1 diff)
- trunk/rsformats/scikits/rsformats/examples/aster/README_aster.txt (modified) (2 diffs)
- trunk/rsformats/scikits/rsformats/examples/aster/aster_module.py (modified) (1 diff)
- trunk/rsformats/scikits/rsformats/examples/odl_parsing/ODL_example.py (modified) (1 diff)
- trunk/rsformats/scikits/rsformats/examples/odl_parsing/README_odl.txt (modified) (1 diff)
- trunk/rsformats/scikits/setup.py (deleted)
- trunk/rsformats/setup.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rsformats/scikits/rsformats/examples/aster/ASTER_example.py
r1224 r1225 8 8 9 9 # make functions available 10 #from aster.api import *11 #from api import *12 10 from aster_module import * 13 from pyhdf.odl_parser import parse_odl 14 #from pyhdf import odl_parser 11 from scikits.rsformats import parse_odl 15 12 16 13 #print "ODL parsing: ", parse_odl trunk/rsformats/scikits/rsformats/examples/aster/README_aster.txt
r1224 r1225 3 3 ******** 4 4 5 This example presents a case-in-point of the need for pyhdf even when HDF4 6 format has been superceded by HDF5. ASTER (Advanced Spaceborne Thermal Emission 7 and Reflection Radiometer) is an imaging instrument flying on the satellite 8 Terra, which was launched in December 1999 as part of NASA's Earth Observing 9 System (EOS). ASTER has gathered invaluable data about the Earth's surface, 10 including temperature, elevation and reflectance. However, as it was launched 11 before the rise of HDF5, all of its data files are stored in HDF4. 5 This example presents a case-in-point of the need for pyhdf even when 6 HDF4 format has been superceded by HDF5. ASTER (Advanced Spaceborne 7 Thermal Emission and Reflection Radiometer) is an imaging instrument 8 flying on the satellite Terra, which was launched in December 1999 as 9 part of NASA's Earth Observing System (EOS). ASTER has gathered 10 invaluable data about the Earth's surface, including temperature, 11 elevation and reflectance. However, as it was launched before the 12 rise of HDF5, all of its data files are stored in HDF4. 12 13 13 14 This example uses pyhdf to process the data files, and several domain-specific … … 27 28 http://asterweb.jpl.nasa.gov/data_products.asp 28 29 29 Note that this example depends on PyProj:30 Note that this example also depends on PyProj: 30 31 31 32 http://code.google.com/p/pyproj/ trunk/rsformats/scikits/rsformats/examples/aster/aster_module.py
r1224 r1225 4 4 from pyhdf.SD import SD, SDC 5 5 from projection_module import UTMProjection 6 from pyhdf.odl_parser import parse_odl 7 # hack import pyhdf.odl_parser as odl_parser 6 from scikits.rsformats import parse_odl 8 7 9 8 trunk/rsformats/scikits/rsformats/examples/odl_parsing/ODL_example.py
r1224 r1225 15 15 16 16 # import necessary modules 17 from pyhdf.odl_parserimport parse_odl17 from scikits.rsformats import parse_odl 18 18 19 19 trunk/rsformats/scikits/rsformats/examples/odl_parsing/README_odl.txt
r1224 r1225 1 This example demonstrates the use of the ODL (Object Description Language) parser module in pyhdf. The sample file provided comes from the ASTER satellite instrument (see the aster example's README for more information). It returns a dictionary-of-dictionaries, where the keys are either group names or object names. The value of an object name is a dictionary containing its attributes. The value of a group name is a dictionary containing its objects or subgroups. 1 This example demonstrates the use of the ODL (Object Description 2 Language) parser module in scikits.rsformats. The sample file 3 provided comes from the ASTER satellite instrument (see the aster 4 example's README for more information). It returns a 5 dictionary-of-dictionaries, where the keys are either group names or 6 object names. The value of an object name is a dictionary containing 7 its attributes. The value of a group name is a dictionary containing 8 its objects or subgroups. 2 9 3 Note that the parser in pyhdf is not perfect; while it supports all commonly-used aspects of the ODL language, more esoteric aspects (such as arbitrary bases) are not supported. Also, a BEGIN_GROUP can be closed by an END_OBJECT, and vice versa. 10 Note that the parser in scikits.rsformats is not perfect; while it 11 supports all commonly-used aspects of the ODL language, more esoteric 12 aspects (such as arbitrary bases) are not supported. Also, a 13 BEGIN_GROUP can be closed by an END_OBJECT, and vice versa. 4 14 5 15 TODO: update parser to support full specifications of ODL language.
