Changeset 1225

Show
Ignore:
Timestamp:
08/18/08 14:52:38 (3 months ago)
Author:
oliphant
Message:

Move setup.py file and fix examples to use scikits.rsformats package.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rsformats/scikits/rsformats/examples/aster/ASTER_example.py

    r1224 r1225  
    88 
    99# make functions available 
    10 #from aster.api import * 
    11 #from api import * 
    1210from aster_module import * 
    13 from pyhdf.odl_parser import parse_odl 
    14 #from pyhdf import odl_parser 
     11from scikits.rsformats import parse_odl 
    1512 
    1613#print "ODL parsing: ", parse_odl 
  • trunk/rsformats/scikits/rsformats/examples/aster/README_aster.txt

    r1224 r1225  
    33******** 
    44 
    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. 
     5This example presents a case-in-point of the need for pyhdf even when 
     6HDF4 format has been superceded by HDF5.  ASTER (Advanced Spaceborne 
     7Thermal Emission and Reflection Radiometer) is an imaging instrument 
     8flying on the satellite Terra, which was launched in December 1999 as 
     9part of NASA's Earth Observing System (EOS).  ASTER has gathered 
     10invaluable data about the Earth's surface, including temperature, 
     11elevation and reflectance.  However, as it was launched before the 
     12rise of HDF5, all of its data files are stored in HDF4. 
    1213 
    1314This example uses pyhdf to process the data files, and several domain-specific 
     
    2728  http://asterweb.jpl.nasa.gov/data_products.asp 
    2829 
    29 Note that this example depends on PyProj: 
     30Note that this example also depends on PyProj: 
    3031 
    3132  http://code.google.com/p/pyproj/ 
  • trunk/rsformats/scikits/rsformats/examples/aster/aster_module.py

    r1224 r1225  
    44from pyhdf.SD import SD, SDC 
    55from projection_module import UTMProjection 
    6 from pyhdf.odl_parser import parse_odl 
    7 # hack import pyhdf.odl_parser as odl_parser 
     6from scikits.rsformats import parse_odl 
    87 
    98 
  • trunk/rsformats/scikits/rsformats/examples/odl_parsing/ODL_example.py

    r1224 r1225  
    1515 
    1616# import necessary modules 
    17 from pyhdf.odl_parser import parse_odl 
     17from scikits.rsformats import parse_odl 
    1818 
    1919 
  • 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. 
     1This example demonstrates the use of the ODL (Object Description 
     2Language) parser module in scikits.rsformats.  The sample file 
     3provided comes from the ASTER satellite instrument (see the aster 
     4example's README for more information).  It returns a 
     5dictionary-of-dictionaries, where the keys are either group names or 
     6object names.  The value of an object name is a dictionary containing 
     7its attributes.  The value of a group name is a dictionary containing 
     8its objects or subgroups. 
    29 
    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. 
     10Note that the parser in scikits.rsformats is not perfect; while it 
     11supports all commonly-used aspects of the ODL language, more esoteric 
     12aspects (such as arbitrary bases) are not supported.  Also, a 
     13BEGIN_GROUP can be closed by an END_OBJECT, and vice versa. 
    414 
    515TODO: update parser to support full specifications of ODL language.