Git Product home page Git Product logo

casa0005repo's Introduction

Hi there ๐Ÿ‘‹ I'm Andy MacLachlan

๐Ÿ“– About me

  • I'm an Associate Professor in spatial data science and visualisation at the Centre for Advanced Spatial Analysis (CASA), University College London.
  • My expertise lies in remote sensing, although in recent years this has expanded to any project using spatial data and geographical information science.
  • R is my language of choice, but i also use PostGIS and Google Earth Engine

"A jack of all trades is a master of none, but oftentimes better than a master of one"

๐Ÿ—๏ธ What i'm doing

๐Ÿ‘จโ€๐Ÿซ Teach

I supervise doctoral researchers, MSc students and lead two MSc modules:

I run CASA's MSc Urban Spatial Science programme

๐Ÿ”Ž Research

My research revovles around developing data-driven urban development recommendations to enhance future sustainability and optimise resource investment. This has included work on Urban Heat Islands and more recently water accessibility in Tanzania using PostGIS.

If it's not applied, i'm not interested.

๐Ÿ’ฐ Scholarships / other

I apply and maintain a range of scholarship funding for our MSc, including:

I teach at other institutions a few times a year, this has included the MSc Modelling for Global Health and the University of Oxford and a guest workshop at IIT Hyderabad.


Static Badge Static Badge Static Badge

casa0005repo's People

Contributors

andrewmaclachlan avatar labarba avatar shaunhoang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

casa0005repo's Issues

DBSCAN code

Updated from MSc student

I wrote a bit of code for creating convex hulls for the dbscan output, which are a bit more nicely shaped than those in the practical, maybe someone will find it useful ๐Ÿ™‚
convex hulls to wrap around points

chulls <- data.frame() for (cluster in 1:max(BluePlaquesSubPoints$dbcluster)) { cluster_data <- BluePlaquesSubPoints %>% filter(dbcluster == cluster) ch <- chull(cluster_data$coords.x1, cluster_data$coords.x2) chulls <- chulls %>% bind_rows(cluster_data[c(ch), ]) }

Tips on Chap7 data preprocessing

Currently I'm learning this tutorial on my own, and I find that in 7.7.2, it takes a long time to resample such big data. Therefore I suggest we do the clipping in 7.7.3 first, and then resample. This may save some time. Will problem arise in it? Thanks.

My codes:


library(pacman)
p_load(sp,raster,rgeos,rgdal,rasterVis,raster,fs,sf,tidyverse)

# read data
manchester_boundary <- st_read("data/manchester_boundary_download/Manchester_boundary.shp")
listlandsat <- dir("data/LC08_L1TP_203023_20190513_20190521_01_T1",
    pattern = "[B123456790].TIF",full.names = T) %>% stack()
#check they have the same Coordinate Reference System (CRS)
crs(manchester_boundary)
crs(listlandsat)

# get only Manchester
lsatmask <- listlandsat %>%
  # now crop our temp data to the extent
  crop(.,manchester_boundary)%>%
  mask(.,  manchester_boundary)

# handle 8th band
b8list = dir("data/LC08_L1TP_203023_20190513_20190521_01_T1",
    pattern = "[B8].TIF",full.names = T) %>% 
  raster()

## ngb is a nearest neighbour sampling method
b8correct <- b8list%>%
  # now crop our temp data to the extent
  crop(.,manchester_boundary)%>%
  mask(.,  manchester_boundary)%>%
  resample(., lsatmask$LC08_L1TP_203023_20190513_20190521_01_T1_B1, 
           method = "ngb") 

lsatmask <- lsatmask %>%
  addLayer(., b8correct)

raster::compareRaster(listlandsat$LC08_L1TP_203023_20190513_20190521_01_T1_B1,
                      listlandsat$LC08_L1TP_203023_20190513_20190521_01_T1_B8)




# add mask to the filenames within the raster stack

names(lsatmask) <- names(lsatmask)%>%
  str_c(., 
        "mask", 
        sep="_")



Thank you for your contribution. I've learned a lot from this course.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.