search for: st_read

Displaying 5 results from an estimated 5 matches for "st_read".

Did you mean: zt_read
2024 May 17
0
[External] Re: Removing polygons from shapefile of Scotland and Islands
...need them. > > > > The map I have I got from > > > https://borders.ukdataservice.ac.uk/easy_download_data.html?data=infuse_ctry_2011 > > > > then I put the uk shapefile onto my laptop with no problems (I have sf > > running) > > > > > the_uk<-st_read(dsn="C:/Users/nickm/Desktop/Shapefiles/infuse_ctry_2011.shp") > > > > scotland<-the_uk[2,] > > > > plot(scotland$geometry) > > > > This gives me a nice map of Scotland plus islands but obviously there > are > > lots of separate polygons and...
2003 Aug 20
1
(Fwd) Lost data on FreeBSD tape (fwd)
...a fifo device */ #define ST_PROG (1<<4) /* is a program device */ #define ST_LABEL (1<<5) /* label found */ #define ST_MALLOC (1<<6) /* dev packet malloc'ed in init_dev() */ #define ST_APPEND (1<<7) /* ready for Bacula append */ #define ST_READ (1<<8) /* ready for Bacula read */ #define ST_EOT (1<<9) /* at end of tape */ #define ST_WEOT (1<<10) /* Got EOT on write */ #define ST_EOF (1<<11) /* Read EOF i.e. zero bytes */ #define ST_NEXTVOL (1<<12) /* Start writing on next vo...
2024 Apr 09
1
Question regarding reservoir volume and water level
...t; library(raster) >> library(terra) >> library(exactextractr) >> library(dplyr) >> library(sf) >> # Calculate volume for polygon >> # Read the DEM raster file >> r <- rast("E:/...DEM.tif") >> # Read the polygon shapefile >> p <- st_read("E:/...Dam.shp") >> >> r <- crop(r, extent(p)) >> r <- mask(r, p) >> >> # Extract the cells in each polygon and calculate the area of each cell >> x <- exact_extract(r, p, coverage_area = TRUE) >> # Extract polygon values as a dataframe &...
2024 Apr 10
1
Question regarding reservoir volume and water level
...a) > >> library(exactextractr) > >> library(dplyr) > >> library(sf) > >> # Calculate volume for polygon > >> # Read the DEM raster file > >> r <- rast("E:/...DEM.tif") > >> # Read the polygon shapefile > >> p <- st_read("E:/...Dam.shp") > >> > >> r <- crop(r, extent(p)) > >> r <- mask(r, p) > >> > >> # Extract the cells in each polygon and calculate the area of each cell > >> x <- exact_extract(r, p, coverage_area = TRUE) > >> # Extr...
2024 Apr 07
1
Question regarding reservoir volume and water level
John, Your reaction was what my original reaction was until I realized I had to find out what a DEM file was and that contains enough of the kind of depth-dimension data you describe albeit what may be a very irregular cross section to calculate for areas and thence volumes. If I read it correctly, this can be a very real-world problem worthy of a solution, such as in places like California