[ Launch: satellite ] 5654942 by fasiha[ Launch: satellite ] 5105295 by enjalot[ Launch: satellite ] 4700685 by enjalot
| #!/usr/bin/env python | |
| """ | |
| Compare performance of using host-registered pinned and unpinned host memory, | |
| with more than one block for larger arrays, and with unpinned tried first. | |
| """ | |
| import numpy as np | |
| import pycuda.autoinit |
| // See pages 173 and 175 of Snyder's "Map Projections---A Working Manual" (1987): http://pubs.usgs.gov/pp/1395/report.pdf | |
| function satelliteVerticalR(H, R) { | |
| var P = 1.0 + H/R; | |
| function forward(λ, φ) { | |
| var cosφ = Math.cos(φ), | |
| k = (P - 1) / (P - cosφ * Math.cos(λ)); | |
| return [ | |
| R * k * cosφ * Math.sin(λ), | |
| R * k * Math.sin(φ) |
[ Launch: satellite ] 5654945 by fasiha[ Launch: satellite ] 5654942 by fasiha[ Launch: satellite ] 5105295 by enjalot[ Launch: satellite ] 4700685 by enjalot
[ Launch: satellite, venezuela by Harrison ] 5654960 by fasiha[ Launch: satellite ] 5654945 by fasiha[ Launch: satellite ] 5654942 by fasiha[ Launch: satellite ] 5105295 by enjalot[ Launch: satellite ] 4700685 by enjalot
[ Launch: Maximal coverage satellite projection ] 5807962 by fasiha
[ Launch: BaseMap orthographic ] 5808405 by fasiha[ Launch: simple globe canvas ] 4670598 by ejfox[ Launch: simple globe ] 4669854 by enjalot[ Launch: Tributary inlet ] 4661803 by enjalot
[ Launch: Europe from the East, Harrison ] 6072311 by fasiha[ Launch: satellite, venezuela by Harrison ] 5654960 by fasiha[ Launch: satellite ] 5654945 by fasiha[ Launch: satellite ] 5654942 by fasiha[ Launch: satellite ] 5105295 by enjalot[ Launch: satellite ] 4700685 by enjalot
| -- run from Terminal with: | |
| -- $ osascript enter.scpt N | |
| -- where N is the number of times Chrome will see "Return" | |
| on run arg | |
| log "Going to switch to Chrome and hit Return" | |
| log arg | |
| log "times" | |
| log "Hit Control-C to cancel" |
| clear(); | |
| %% Parameters | |
| % Input file | |
| INFILE = 'ASTGTM2_N43E011_dem.tif'; | |
| % Fractional order of the texture filter, between 0 and 2 | |
| ALPHA = .5; | |
| %% Helper functions | |
| % Makes a vector of zero-centered Fourier frequency indexes |