{ "info": { "author": "Scott Staniewicz", "author_email": "scott.stanie@utexas.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering" ], "description": "[![Build Status](https://travis-ci.org/scottstanie/sardem.svg?branch=master)](https://travis-ci.org/scottstanie/sardem)\n[![Coverage Status](https://coveralls.io/repos/github/scottstanie/sardem/badge.svg?branch=master)](https://coveralls.io/github/scottstanie/sardem?branch=master)\n\n# DEM creator\n\nTool for making Digital Elevation Maps (DEMs) in Roipac data format (16-bit integers, little endian) for use in Interferometric SAR (InSAR) processing\n\n`createdem` creates a cropped (and possibly upsampled) digital elevation map:\n\n```bash\nusage: createdem left_lon top_lat dlon dlat\n [-h] [--rate RATE=1] [--output OUTPUT=elevation.dem]\n [--data-source {NASA,AWS}]\n```\n\n## Setup and installation\n\n```bash\npip install sardem\n```\nThis creates the command line executable `createdem`\n\nAlternatively, you can clone to build/install:\n\n```bash\ngit clone https://github.com/scottstanie/sardem\ncd sardem\nmake\n```\nwhich will run `pip install --upgrade .` and create the command line script.\n\n\nIf you use `virtualenv`\n```bash\n# Optional for using virtualenv\nvirtualenv ~/envs/sardem && source ~/envs/sardem/bin/activate # Or wherever you store your virtual envs\n# Or if you have virtualenv wrapper: mkvirtualenv sardem\npip install sardem\n```\n\n\n## Command Line Interface\n\nThe full options for the command line tool in `sardem/cli.py` can be found using\n\n```\n$ createdem --help\nusage: createdem left_lon top_lat dlon dlat\n [-h] [--rate RATE=1] [--output OUTPUT=elevation.dem]\n [--data-source {NASA,AWS}]\n\n\nStiches SRTM .hgt files to make (upsampled) DEM\n\n Pick a lat/lon bounding box for a DEM, and it will download\n the necessary SRTM1 tiles, stitch together, then upsample.\n\n Usage Examples:\n createdem -156.0 20.2 1 2 --rate 2 # Makes a box 1 degree wide, 2 deg high\n createdem -156.0 20.2 0.5 0.5 -r 10 --data-source NASA -o my_elevation.dem\n\n Default out is elevation.dem for the final upsampled DEM.\n Also creates elevation.dem.rsc with start lat/lon, stride, and other info.\n\npositional arguments:\n left_lon Left (western) most longitude of DEM box (degrees, west=negative)\n top_lat Top (northern) most latitude of DEM box (degrees)\n dlon Width of DEM box (degrees)\n dlat Height of DEM box (degrees)\n\noptional arguments:\n -h, --help show this help message and exit\n --rate RATE, -r RATE Rate at which to upsample DEM (default=1, no upsampling)\n --output OUTPUT, -o OUTPUT\n Name of output dem file (default=elevation.dem)\n --data-source {NASA,AWS}, -d {NASA,AWS}\n Source of SRTM data (default NASA). See README for more.\n\n```\n\nThe code used for bilinear interpolation in the upsampling routine is in `cython/upsample.c`, and is wrapped in [cython](http://docs.cython.org/en/latest/) to allow easier installation and ability to call the function from Python.\nThe installation is handled through `pip install`, or by running `make build`.\n\nFunctions for working with digital elevation maps (DEMs) are mostly contained in the `Downloader` and `Stitcher` classes within `sardem/dem.py`.\n\n\n### NASA SRTM Data access\n\nThe default datasource is NASA's SRTM version 3 global 1 degree data.\nSee https://lpdaac.usgs.gov/dataset_discovery/measures/measures_products_table/srtmgl3s_v003 .\nThe data is valid outside of artic regions (-60 to 60 degrees latitude), and is zeros over open ocean.\n\nThis data requires a username and password from here:\nhttps://urs.earthdata.nasa.gov/users/new\n\nYou will be prompted for a username and password when running with NASA data.\nIt will save into your ~/.netrc file for future use, which means you will not have to enter a username and password any subsequent times.\nThe entry will look like this:\n\n```\nmachine urs.earthdata.nasa.gov\n login USERNAME\n password PASSWORD\n```\n\nIf you want to avoid this entirely, you can [use Mapzen's data hosted on AWS](https://registry.opendata.aws/terrain-tiles/) by specifying\n```bash\nsardem 156.0 20.0 .5 0.5 --data-source AWS\n```\n\n`--data-source NASA` is the default.\n\nMapzen combines SRTM data with other sources, so the .hgt files will be slightly different (but often not noticeable)\n\nWarning: Mapzen notes that they are discontinuing some services, which is why NASA is the default.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scottstanie/sardem", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sardem", "package_url": "https://pypi.org/project/sardem/", "platform": "", "project_url": "https://pypi.org/project/sardem/", "project_urls": { "Homepage": "https://github.com/scottstanie/sardem" }, "release_url": "https://pypi.org/project/sardem/0.4.4/", "requires_dist": null, "requires_python": "", "summary": "Create upsampled DEMs for InSAR processing", "version": "0.4.4" }, "last_serial": 5520880, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b5aa6da1745a3e0db0e38f0ed6d3f612", "sha256": "13a437549655dc2d8a24aff7ac0e772b5e4f292e20501b82acabdb16ce87ad2b" }, "downloads": -1, "filename": "sardem-0.1.tar.gz", "has_sig": false, "md5_digest": "b5aa6da1745a3e0db0e38f0ed6d3f612", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38204, "upload_time": "2018-08-22T20:49:36", "url": "https://files.pythonhosted.org/packages/dd/a9/7aefe5857e698724d5789584b1e9465e80041fee541a7e0583d1dab1a0ed/sardem-0.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "bbe83ea7b8a4a5ca42388dffbd187835", "sha256": "e6e62c5ee2f8f14c5a3a5ccbd2f71efe40f1a2d1222e93033437a3e6134d8b33" }, "downloads": -1, "filename": "sardem-0.1.2.tar.gz", "has_sig": false, "md5_digest": "bbe83ea7b8a4a5ca42388dffbd187835", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38559, "upload_time": "2018-08-23T20:43:11", "url": "https://files.pythonhosted.org/packages/89/ae/2bd504ed7d5bc2442c1947fdabd3ec5b2183afbb8776d0788fd0ace8dab1/sardem-0.1.2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a030613d510e5dd5a273ae396faa0546", "sha256": "a110f941aeeeb54b22255388e2ebfafaa36aa2229ffefdfa3918c1c6d3f0ea1d" }, "downloads": -1, "filename": "sardem-0.2.tar.gz", "has_sig": false, "md5_digest": "a030613d510e5dd5a273ae396faa0546", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38133, "upload_time": "2018-08-24T17:17:39", "url": "https://files.pythonhosted.org/packages/4b/68/c5d6442995c498f72e7285ddf0aaf597f40c57ba0d0d890921ae79f3d1a8/sardem-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "99e3d37a864c91753354d0fb9efa35bc", "sha256": "d670fa81c3be65fa79bbb15f9279f39ffe5f646e866305e0dbab98289344eb04" }, "downloads": -1, "filename": "sardem-0.2.1.tar.gz", "has_sig": false, "md5_digest": "99e3d37a864c91753354d0fb9efa35bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38133, "upload_time": "2018-08-24T17:30:49", "url": "https://files.pythonhosted.org/packages/f7/9b/359ff55ed16b13083052361d0ccbcf66828c7ec7766ca974488775cf5093/sardem-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "01494844e692fc69ab7f6c7a722c49df", "sha256": "c5ec2f22c9f1fb98376535f4a9c566e4c52b4e43138f6673c9425834827400bc" }, "downloads": -1, "filename": "sardem-0.2.2.tar.gz", "has_sig": false, "md5_digest": "01494844e692fc69ab7f6c7a722c49df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38567, "upload_time": "2018-08-24T19:08:17", "url": "https://files.pythonhosted.org/packages/5a/16/6e929282f3047762101bc607687c5114903397c2b655631331d104810554/sardem-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "8fb4a229b808bdf15a841537867c3ceb", "sha256": "25a03f4c71fcb851c3e9ac8af05dab63123bde377261177535b7c9b7256b1493" }, "downloads": -1, "filename": "sardem-0.2.3.tar.gz", "has_sig": false, "md5_digest": "8fb4a229b808bdf15a841537867c3ceb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37311, "upload_time": "2018-09-07T01:21:42", "url": "https://files.pythonhosted.org/packages/57/99/a99b51414e6f0ab90b1ae978e2610089937afd4a00e3da53408388d924c9/sardem-0.2.3.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "b0e221c825c82d38d94851e9f8645ce7", "sha256": "f454be61d11420fe7641048949da1bc22efea6e8fc28a2828ca26d695b578fad" }, "downloads": -1, "filename": "sardem-0.2.5.tar.gz", "has_sig": false, "md5_digest": "b0e221c825c82d38d94851e9f8645ce7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37374, "upload_time": "2018-12-16T20:26:33", "url": "https://files.pythonhosted.org/packages/dd/c2/9a9d7394d6ac616a422dba532da69fcc58e26ae8e9259f6d36c94aec6298/sardem-0.2.5.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "e37f63d971e25edd02ca265505cd5042", "sha256": "d24cf2b16f3a27937f986ba69b8bed11932bad606681ec7d06c394363c55f49b" }, "downloads": -1, "filename": "sardem-0.3.0.tar.gz", "has_sig": false, "md5_digest": "e37f63d971e25edd02ca265505cd5042", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38620, "upload_time": "2019-03-18T20:16:06", "url": "https://files.pythonhosted.org/packages/8f/54/d3b3b44c1ca3e56250b2c7c6af76f1e66a448fc666b96f78b57f1dfa9cb0/sardem-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "c925e40ac650072bf4a52f44263c8e22", "sha256": "1516598a598446b5b19d15f22c37dc645f4ac94b5fb170f50887b07c417ca8ac" }, "downloads": -1, "filename": "sardem-0.4.0.tar.gz", "has_sig": false, "md5_digest": "c925e40ac650072bf4a52f44263c8e22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37964, "upload_time": "2019-04-17T17:52:28", "url": "https://files.pythonhosted.org/packages/88/9c/111286f7f212903118479a98391d56c3ab9147f8bb114a6f430c304f3301/sardem-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "ed7fc0419d8ecf6f913e8ce366dce734", "sha256": "9d297f510838935a48a2f03779550b95797a8eb8d8b2c9dab72d8ff76e45f9e9" }, "downloads": -1, "filename": "sardem-0.4.1.tar.gz", "has_sig": false, "md5_digest": "ed7fc0419d8ecf6f913e8ce366dce734", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37970, "upload_time": "2019-04-19T17:25:53", "url": "https://files.pythonhosted.org/packages/13/11/3a8aacd984cb8dbdbae32580b7ee72fc1b579e10858c290c914324c1c9e1/sardem-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "df6429905c0d611fdc886c82b9f36f13", "sha256": "a87793857c3acede00304a30433c16417dca5494f5e58a5bbee27d2e3ae89ca0" }, "downloads": -1, "filename": "sardem-0.4.2.tar.gz", "has_sig": false, "md5_digest": "df6429905c0d611fdc886c82b9f36f13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37987, "upload_time": "2019-06-14T19:53:46", "url": "https://files.pythonhosted.org/packages/af/a4/4d6fcc9bb26af53ff8b2d9cef3750b4477f3f5a369adbdb43a0d3a5f90f9/sardem-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "e015f3c17d2d2b1bb6adcc161ce5314b", "sha256": "aefece27a1ddb9d1b8e7b0de0d37386501badf6d344f3833acf9067c4e6f3229" }, "downloads": -1, "filename": "sardem-0.4.3.tar.gz", "has_sig": false, "md5_digest": "e015f3c17d2d2b1bb6adcc161ce5314b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38182, "upload_time": "2019-07-12T00:24:02", "url": "https://files.pythonhosted.org/packages/66/e9/b2a41ae56b659150e5f8b87d59357b9be6b123d1dde6ef62d369f286e716/sardem-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "e0124be0d13ef3df57e096490a9f1c73", "sha256": "aba16d3f255f920c481a3b4d328ad212220734b4aae1eb3db27bab47ee5d9302" }, "downloads": -1, "filename": "sardem-0.4.4.tar.gz", "has_sig": false, "md5_digest": "e0124be0d13ef3df57e096490a9f1c73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38224, "upload_time": "2019-07-12T00:26:43", "url": "https://files.pythonhosted.org/packages/b7/1b/3e2139590d24fe026b54c4ee2bcf455c67bb7ca5d27d93e9f0ec29a3730e/sardem-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e0124be0d13ef3df57e096490a9f1c73", "sha256": "aba16d3f255f920c481a3b4d328ad212220734b4aae1eb3db27bab47ee5d9302" }, "downloads": -1, "filename": "sardem-0.4.4.tar.gz", "has_sig": false, "md5_digest": "e0124be0d13ef3df57e096490a9f1c73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38224, "upload_time": "2019-07-12T00:26:43", "url": "https://files.pythonhosted.org/packages/b7/1b/3e2139590d24fe026b54c4ee2bcf455c67bb7ca5d27d93e9f0ec29a3730e/sardem-0.4.4.tar.gz" } ] }