#!/usr/bin/env python
#
# ======================================================================
#
# <NAME>, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license information.
#
# ======================================================================
#
## @file geocoords/tests/libtests/data/ConvertDataApp.py
## @brief Python application to generate data for coordinate conversion tests.

from pyre.applications.Script import Script

# ConvertDataApp class
class ConvertDataApp(Script):
  """Python application to generate data for coordinate conversion tests."""

  def main(self, *args, **kwds):
    """Run application."""
    data = self.inventory.data
    data.calculate()
    data.dump(self.inventory.dumper)
    return

  def __init__(self):
    """Constructor."""
    Script.__init__(self, 'convertdataapp')
    return

  class Inventory(Script.Inventory):

    ## @class Inventory
    ## Python object for managing ConvertDataApp facilities and properties.
    ##
    ## \b Properties
    ## @li None
    ##
    ## \b Facilities
    ## @li \b data Data generator for coordinate transformation test
    ## @li \b dumper Dump data to file

    import pyre.inventory
    from spatialdata.utils.CppData import CppData
    from ConvertData import ConvertData
    data = pyre.inventory.facility('data', factory=ConvertData)
    dumper = pyre.inventory.facility('dumper', factory=CppData)

# main
if __name__ == '__main__':
  app = ConvertDataApp()
  app.run()

# End of file 

#!/usr/bin/env python
#
# ======================================================================
#
# <NAME>, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license information.
#
# ======================================================================
#
## @file geocoords/tests/libtests/data/ConvertDataApp.py
## @brief Python application to generate data for coordinate conversion tests.

from pyre.applications.Script import Script

# ConvertDataApp class
class ConvertDataApp(Script):
  """Python application to generate data for coordinate conversion tests."""

  def main(self, *args, **kwds):
    """Run application."""
    data = self.inventory.data
    data.calculate()
    data.dump(self.inventory.dumper)
    return

  def __init__(self):
    """Constructor."""
    Script.__init__(self, 'convertdataapp')
    return

  class Inventory(Script.Inventory):

    ## @class Inventory
    ## Python object for managing ConvertDataApp facilities and properties.
    ##
    ## \b Properties
    ## @li None
    ##
    ## \b Facilities
    ## @li \b data Data generator for coordinate transformation test
    ## @li \b dumper Dump data to file

    import pyre.inventory
    from spatialdata.utils.CppData import CppData
    from ConvertData import ConvertData
    data = pyre.inventory.facility('data', factory=ConvertData)
    dumper = pyre.inventory.facility('dumper', factory=CppData)

# main
if __name__ == '__main__':
  app = ConvertDataApp()
  app.run()

# End of file 

#!/usr/bin/env python # # ====================================================================== # # <NAME>, U.S. Geological Survey # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copyright (c) 2010-2017 University of California, Davis # # See COPYING for license information. # # ====================================================================== # ## @file geocoords/tests/libtests/data/ConvertDataApp.py ## @brief Python application to generate data for coordinate conversion tests. # ConvertDataApp class Python application to generate data for coordinate conversion tests. Run application. Constructor. ## @class Inventory ## Python object for managing ConvertDataApp facilities and properties. ## ## \b Properties ## @li None ## ## \b Facilities ## @li \b data Data generator for coordinate transformation test ## @li \b dumper Dump data to file # main # End of file