Skip to main content

IDV scripts to teleport bundles

Project description

Build Status

IDV_teleport

Script to relocate the space-time bounding box of one or more existing (‘template’) IDV bundles and then execute runIDV to fetch the data and write ouputs.

Outputs (3): Thumbnail image; Animation; and Zipped .zidv file containing all data and displays. All are called CASE_NAME.xxx with appropriate xxx suffixes.

Arguments are used to specify -bbox in lat-lon space, and one or a list of temporal ranges. Time ranges are specified as a middle time of the desired time sequence (-t) plus a half-width of the sequence (-td). The temporal stride must be set in the template BUNDLE.xidv, and can only be changed in the IDV GUI.

Requirements: Version 5.3u1 from May 2016 or later IDV, and any Python.

Usage:

   idv_teleport.py [-h] -t TIME -b BUNDLE [BUNDLE ...] [-td TIMEDELTA]
                   [-bbox NORTH WEST SOUTH EAST]
                   [-case CASE_NAME [CASE_NAME ...]]
                   [-outdir OUTPUT_DIRECTORY] [-d {True,False}]
                   [-purl PUBLISH_URL]

Optional arguments:

-h, --help               show this help message and exit
-b BUNDLE.xidv [BUNDLE2.xidv ...], --bundle BUNDLE.xidv [BUNDLE2.xidv ...]
                         IDV Bundle template file (local file or remote URL).
			 Can also be .zidv file.
-bbox NORTH WEST SOUTH EAST, --boundingbox NORTH WEST SOUTH EAST
                         Set the bounding box of the bundle with boundaries
                         north, west, south, east
-t TIME, --time TIME  Input central time as YYYY-MM-DD (optionally with hh:mm:ss),
                         or as a text file with times as above, one per line.						 
-td TIMEDELTA, --timedelta TIMEDELTA
                         Time delta as Nseconds, Nhours, Ndays, Nweeks…
                         Output bundle will be centered (TIME +- TIMEDELTA).
                         Default is 0seconds. 
-case CASE_NAME [CASE_NAME2 ...], --case_name CASE_NAME [CASE_NAME ...]
                         Case name to prefix the bundle; by default, the case name
                         will be selected from template bundle file
-outdir OUTPUT_DIRECTORY, --output_directory OUTPUT_DIRECTORY
                         Set the output path to place the output;default is
                         current directory from where the script is run
-pubid PUBLISH_ID, --publish_id PUBLISH_ID
                    Publish bundle and image at a RAMADDA server;argument
                    shoud be ramadda entryid wherethe user from
                    environment variable RAMADDA_USER and password from
                    RAMADDA_PASSWORD has permissionsto write files.
-nohead {True,False}, --headless {True,False}
                    Option to use headless display environment or not to
                    use headless environment `Xvfb` needs to be
                    installed and be present in the PATH. Default is set to True for convinience,
		    When True and Xvfb is not on path it tries to run IDV with default local display.
-d {True,False}, --debug {True,False}
                    Debug option; for each time in timefile, IDV session
                    will remain open and MUST be closed manually

Simplest use case:

 python idv_teleport.py -b templatebundlefile.xidv -t YYYY-MM-DD_hh:mm:ss

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idv_teleport-1.70.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

idv_teleport-1.70-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file idv_teleport-1.70.tar.gz.

File metadata

  • Download URL: idv_teleport-1.70.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for idv_teleport-1.70.tar.gz
Algorithm Hash digest
SHA256 a84c070a87e94ca704504519b0e523cdfa93b1c674e2372895c227a98164f3ef
MD5 1585a9c811bc4b5208c0ac4a04089bb4
BLAKE2b-256 2b728a588bf2ee676c21fd787d61839099d2a0cbc47b2303d7a3d1dc9bd8c678

See more details on using hashes here.

File details

Details for the file idv_teleport-1.70-py3-none-any.whl.

File metadata

  • Download URL: idv_teleport-1.70-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for idv_teleport-1.70-py3-none-any.whl
Algorithm Hash digest
SHA256 db52a6d913e0e9fae9f69808ea55306b7ce9015d4547eef1b68b75208f3eec71
MD5 576abb981690440b6eef207021673c59
BLAKE2b-256 f64083b786b4309aef7070a2086529feb0b81d682525c6b78e029555b3cc38bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page