Displaying 8 results from an estimated 8 matches for "st_read".
Did you mean:
zt_read
2024 Oct 10
1
Anuncio del paquete de R, paisaje, para el análisis del paisaje y la biodiversidad
Estimado
Que bueno, pero no entiendo nada.
Me parece muy bueno y me llama la curiosidad, observo nc = st_read <https://r-spatial.github.io/sf/reference/st_read.html>(system.file <https://rdrr.io/r/base/system.file.html>("shape/nc.shp", package="sf?)) y no tengo ni idea que es el archivo .shp.
¿Podría usted colocar algún ejemplo, por ahí si no es complicado se reproducir en disti...
2024 Oct 10
1
Anuncio del paquete de R, paisaje, para el análisis del paisaje y la biodiversidad
Estimada comunidad de R,
Les hago llegar el anuncio del paquete de R, paisaje, para el análisis del
paisaje y la biodiversidad.
https://github.com/ManuelSpinola/paisaje
El paquete está en desarrollo. Hasta ahora he incorporado estas funciones:
*calculate_it_metrics*: Calculate 5 information theory landscape metrics
*count_points_in_polygons*: Count Points within Polygons
*create_cat_esa_10m*:
2024 Oct 14
2
Error in .local(x, ...) invalid layer names
...por el ejemplo el de Tobler. Esta se puede crear con otro script incluido en el paquete, pero que no he sido capaz de ejecutar porque me da error.
Tras cargar todos los packages necesarios en RStudio, ejecuto el siguiente código:
r <- raster("pendiente_grados_reclas.tif")
locs <- st_read("puntos.geojson")
lcps <- create_FETE_lcps(x = r, locations = locs, cost_distance = FALSE, ncores = 1)
Y me da el siguiente mensaje de error:
"Error in .local(x, ...) invalid layer names"
El código usado es igual al que viene en la ayuda del script y los nombres de las cap...
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