File:Parinacota--S019W069.png

From Wikipedia, the free encyclopedia

Parinacota--S019W069.png(800 × 600 pixels, file size: 127 KB, MIME type: image/png)

Summary[edit]

File information
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

Nimur (talk) (Uploads)

Permission
(Reusing this file)

See below.




Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following licenses:
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/TimeThumbnailDimensionsUserComment
current14:41, 4 May 2017Thumbnail for version as of 14:41, 4 May 2017800 × 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...
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata