<div dir="ltr">Hello all<div><br></div><div>Now that m.nviz.image is working (thanks devs!), I'm trying to simulate aerial (UAV) images.</div><div><br></div><div>Is this possible?</div><div><br></div><div>Playing around with the parameters, I can't seem to get a nadir-looking image. If I set the height of the 'camera' to something like 500 meters (it's a coastal area, elevations are all below 40m), the resulting image looks like a nadir observation, but as the height becomes smaller, say 120 meters, the surface is tilted (much like in Google Earth) and the observation is an oblique view of the surface.</div><div><br></div><div>I tried setting the 'focus' parameter to the central coordinate of the region, but the result is the same. </div><div><br></div><div>One issue that might be causing some confusion in my head is that some parameters expect 'model coordinates' (0-1), while others expect map units...</div><div><br></div><div>Another point is the 'perspective' param. What does it mean? Should I use the field of view of my real camera here? </div><div><br></div><div>This is the region:</div><div><br></div><div>projection: 1 (UTM)<br></div><div><div>zone: -22</div><div>datum: wgs84</div><div>ellipsoid: wgs84</div><div>north: 6900503</div><div>south: 6900383</div><div>west: 732294</div><div>east: 732474</div><div>nsres: 0.5</div><div>ewres: 0.5</div><div>rows: 240</div><div>cols: 360</div><div>cells: 86400</div></div><div><br></div><div><br></div><div>center point:</div><div><div>732384.0, 6900443.0</div></div><div><br></div><div>I want the view to be on the center of the image, so position=0.5,0.5 (right?)</div><div><br></div><div>set focus to center point (in map units, from SW corner - corner of what? the raster? the region?)</div><div><br></div><div>focus=90.0,60.0,11.72</div><div><br></div><div>This is the full command (in python)</div><div><br></div><div><div>>>> grass.run_command('m.nviz.image', elevation_map=elev, color_map=shade, mode='fine', resolution_fine='1', \</div><div>... style='surface', position='0.50,0.50', height='120', focus=foc, perspective=cam_fov, size=img_size, \</div><div>... format='ppm', output='test', overwrite=True, verbose=True)</div></div><div><br></div><div><br></div><div>For testing, this are links to the 'elev' and 'shade' rasters:</div><div><br></div><div><a href="https://www.dropbox.com/s/ou0ft6srs9w7e6t/elev.tif?dl=0">https://www.dropbox.com/s/ou0ft6srs9w7e6t/elev.tif?dl=0</a><br></div><div><a href="https://www.dropbox.com/s/urcf4m60rvtsi4f/shade.tif?dl=0">https://www.dropbox.com/s/urcf4m60rvtsi4f/shade.tif?dl=0</a><br></div><div><br></div><div><br></div><div>thanks</div><div><br></div><div>Carlos</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Prof. Carlos Henrique Grohmann<br>Institute of Energy and Environment - Univ. of São Paulo, Brazil<div>- Digital Terrain Analysis | GIS | Remote Sensing - </div><div><br></div><div><a href="http://carlosgrohmann.com/" target="_blank">http://carlosgrohmann.com</a></div><div><a href="http://orcid.org/0000-0001-5073-5572" style="font-size:13px;color:rgb(17,85,204)" target="_blank">http://orcid.org/0000-0001-5073-5572</a><br><div>________________<br>Can’t stop the signal.</div></div></div></div>
</div></div>