Tuesday 3 November 2020

Co-registration of GeoTiff images with Full-waveform LiDAR data

In Remote Sensing, combining multiple sensors could be beneficial due to the increased information that could be used to train a classifier. Here, there is a tutorial with some scripts accosiated to help you co-register LiDAR metrics exported from the open source software DASOS [1] with GeoTIFF sattelitte imagery:

Link to open source software DASOS: https://github.com/Art-n-MathS/DASOS 



The “FOREST” project, with project protocol number “OPPORTUNITY/0916/MSCA/0005”, is co–financed by the European Regional Development Fund and the Republic of Cyprus through the Cyprus Research & Innovation Foundation.


Work Cited:
Miltiadou, M., Grant, M. G., Campbell, N. D., Warren, M., Clewley, D., & Hadjimitsis, D. G. (2019, June). Open source software DASOS: Efficient accumulation, analysis, and visualisation of full-waveform lidar. In Seventh International Conference on Remote Sensing and Geoinformation of the Environment (RSCy2019) (Vol. 11174, p. 111741M). International Society for Optics and Photonics.


Monday 19 October 2020

Python script that creates a copy of the same folders structure

Hello, it has been a while since I last posted something. Today, I wrote a very short script but something that could be useful so I thought it worth sharing and keeping into my blog. So have you ever wanted to copy and paste multiple folders without their content! This is what the following python function with automatically do for you:
import os

def creatFolders(i_inDir,i_outDir):
   cdir=os.getcwd()
   os.chdir(i_inDir)
   dirs=[d[0] for d in os.walk(".")]
   os.chdir(cdir+"/"+i_outDir)
   for d in dirs:
      if not os.path.exists(d):
         os.makedirs(d)
   os.chdir(cdir)
The following scripts returns all the files from a direction with a given extension:
import os

def getFiles(i_inDir,i_ext):
    cdir=os.getcwd()
    os.chdir(i_inDir)
    images=[f for f in os.listdir(".")if f.endswith(i_ext)] 
    print (images)
    print ("Images in Dir")
    print (i_inDir)
    os.chdir(cdir)
    return images
This script was developed as part of the "ASTARTE"(EXCELLENCE/0918/0341) project, which is co-financed by the European Regional Development Fund and the Republic of Cyprus through the Research Innovation Foundation. | Powered By Copywriter WordPress Theme.