File:Parinacota--S019W069.png
Appearance
Parinacota--S019W069.png (800 × 600 pixels, file size: 127 KB, MIME type: image/png)
Summary
[edit]Description |
This is a plot produced from Shuttle RADAR Topography data for the vicinity of the Parinacota volcano. |
---|---|
Source |
I am the original author of the program that produced this image. The data source was Height Map File S19W069.hgt from the United States Geological Survey SRTM database. The program that produced this image is written in Python with the matplotlib toolkit: #!/usr/bin/env python
try:
import numpy
import matplotlib.pyplot
import pylab
import sys
except ImportError as err:
print("ERROR : required python libraries are not properly installed")
print(err)
quit()
input_file = sys.argv[1]
print("Opening File: " + input_file)
datatype = numpy.dtype('>i2') #16-bit big-endian data
e1=1201 # Height
e2=1201 # Width
size=e1*e2*datatype.itemsize
shape=(e1, e2)
#data = np.zeros(shape)
data = numpy.fromfile(input_file, datatype, size)
data = data.reshape(shape)
fig1 = pylab.figure(1)
imgplot = matplotlib.pyplot.imshow(data)
imgplot.set_cmap('gray')
imgplot.set_clim(3500,6600)
imgplot.set_interpolation('nearest') # 'bilinear' , 'bicubic', 'nearest'
matplotlib.pyplot.colorbar()
matplotlib.pyplot.show()
pylab.savefig('output.png')
|
Date | |
Author | |
Permission (Reusing this file) |
See below.
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
| This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 License. |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:41, 4 May 2017 | 800 × 600 (127 KB) | Nimur (talk | contribs) | This is a plot produced from Shuttle RADAR Topography data for the vicinity of the Parinacota volcano. I am the original author of the program that produced this image. The data source was Height Map File S19W069.hgt from [https://dds.cr.usgs.gov/srtm... |
You cannot overwrite this file.
File usage
The following page uses this file: