コード例 #1
0
def main():
    # lazy imports
    import grass.temporal as tgis

    # Get the options
    _input = options["input"]
    output = options["output"]
    compression = options["compression"]
    directory = options["directory"]
    where = options["where"]
    _format = options["format"]
    _type = options["type"]
    kws = {key: options[key]
           for key in ('createopt', 'metaopt', 'nodata') if options[key]}

    if _type and _format in ["pack", "AAIGrid"]:
        grass.warning(_("Type options is not working with pack format, "
                        "it will be skipped"))
        if kws:
            grass.warning(_("Createopt, metaopt and nodata options are not "
                            "working with pack and AAIGrid formats, "
                            "they will be skipped"))
    # Make sure the temporal database exists
    tgis.init()
    # Export the space time raster dataset
    tgis.export_stds(_input, output, compression, directory, where, _format,
                     "strds", _type, **kws)
コード例 #2
0
def main():

    # Get the options
    _input = options["input"]
    output = options["output"]
    compression = options["compression"]
    workdir = options["workdir"]
    where = options["where"]
    _format = options["format"]

    # Make sure the temporal database exists
    tgis.init()
    # Export the space time raster dataset
    tgis.export_stds(_input, output, compression, workdir, where, _format,
                     "stvds")
コード例 #3
0
ファイル: t.rast.export.py プロジェクト: caomw/grass
def main():

    # Get the options
    _input = options["input"]
    output = options["output"]
    compression = options["compression"]
    workdir = options["workdir"]
    where = options["where"]
    _format = options["format"]

    # Make sure the temporal database exists
    tgis.init()
    # Export the space time raster dataset
    tgis.export_stds(
        _input, output, compression, workdir, where, _format, "strds")
コード例 #4
0
ファイル: t.vect.export.py プロジェクト: bigrusterwall/grass
def main():
    # lazy imports
    import grass.temporal as tgis

    # Get the options
    _input = options["input"]
    output = options["output"]
    compression = options["compression"]
    directory = options["directory"]
    where = options["where"]
    _format = options["format"]

    # Make sure the temporal database exists
    tgis.init()
    # Export the space time vector dataset
    tgis.export_stds(_input, output, compression, directory, where, _format,
                     "stvds")
コード例 #5
0
ファイル: t.rast.export.py プロジェクト: rkrug/grass-ci
def main():

    # Get the options
    _input = options["input"]
    output = options["output"]
    compression = options["compression"]
    directory = options["directory"]
    where = options["where"]
    _format = options["format"]
    _type = options["type"]

    if _type and _format in ["pack", "AAIGrid"]:
        grass.warning(_("Type options is not working with pack format, it will be skipped"))
    # Make sure the temporal database exists
    tgis.init()
    # Export the space time raster dataset
    tgis.export_stds(_input, output, compression, directory, where, _format,
                     "strds", _type)