Skip to contents

This function allows you to download the latest version of forest fire data available from the Satellite Monitoring Unit of the National Forestry and Wildlife Service of Peru. For more information, please visit the following website: https://sniffs.serfor.gob.pe/monitoreo/sami/index.html

Usage

get_hotspots_data(dsn = NULL, show_progress = TRUE, quiet = FALSE)

Arguments

dsn

Character. Output filename with the spatial format. If missing, a temporary file is created.

show_progress

Logical. Suppress bar progress.

quiet

Logical. Suppress info message.

Value

An sf object.

Examples

# \donttest{
library(geoidep)
library(sf)
hot_spots <- get_hotspots_data(show_progress = FALSE)
#> Reading layer `file1a612d45fac' from data source 
#>   `/tmp/RtmphIwINx/file1a612d45fac.geojson' using driver `GeoJSON'
#> Simple feature collection with 10000 features and 29 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -79.79939 ymin: -17.4957 xmax: -68.79596 ymax: -6.73682
#> Geodetic CRS:  WGS 84
head(hot_spots)
#> Simple feature collection with 6 features and 29 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -70.0444 ymin: -17.4957 xmax: -69.11849 ymax: -16.30604
#> Geodetic CRS:  WGS 84
#>   OBJECTID                                          FUENTE DOCREG     FECREG
#> 1  9144325 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 2  9144326 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 3  9144327 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 4  9144328 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 5  9144329 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 6  9144330 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#>                                                                                        OBSERV
#> 1 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#> 2 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#> 3 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#> 4 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#> 5 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#> 6 Información generada por la Unidad Funcional de Monitoreo Satelital de la DGIOFFS de SERFOR
#>   ZONUTM ORIGEN NOMDEP   NOMPRO  NOMDIS CAPITAL      FECHA     HORA CATEG
#> 1     19      2  TACNA   TARATA  TARATA  TARATA 2024-09-25 12:52:00    30
#> 2     19      2   PUNO CHUCUITO  POMATA  POMATA 2024-09-24 12:17:00     5
#> 3     19      2   PUNO CHUCUITO  POMATA  POMATA 2024-09-24 12:17:00     5
#> 4     19      2   PUNO CHUCUITO  POMATA  POMATA 2024-09-24 13:36:00     5
#> 5     19      2   PUNO  YUNGUYO YUNGUYO YUNGUYO 2024-09-24 13:36:00     5
#> 6     19      2   PUNO  YUNGUYO YUNGUYO YUNGUYO 2024-09-24 13:36:00     5
#>                            NOMCATEG   LATITUD  LONGITUD   COORES  COORNO
#> 1                                   -17.49570 -70.04440 389122.0 8065303
#> 2 Reserva Paisajística Cerro Khapia -16.34484 -69.17542 481264.0 8192912
#> 3 Reserva Paisajística Cerro Khapia -16.34416 -69.16840 482013.8 8192988
#> 4 Reserva Paisajística Cerro Khapia -16.34345 -69.16854 481998.7 8193066
#> 5 Reserva Paisajística Cerro Khapia -16.30779 -69.11849 487342.2 8197014
#> 6 Reserva Paisajística Cerro Khapia -16.30604 -69.12296 486864.5 8197208
#>   created_user        created_date last_edited_user    last_edited_date
#> 1       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#> 2       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#> 3       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#> 4       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#> 5       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#> 6       USUFMS 2024-09-26 03:21:06           USUFMS 2024-09-26 03:21:06
#>               TIPCOB SENSAT PELIGRO CATDEP CATPRO CATDIS
#> 1 Cobertura Agrícola    N21       0     23   2304 230401
#> 2 Cobertura Forestal    N20       0     21   2104 210406
#> 3 Cobertura Forestal    N20       0     21   2104 210406
#> 4 Cobertura Forestal      N       0     21   2104 210406
#> 5 Cobertura Forestal      N       0     21   2113 211301
#> 6 Cobertura Agrícola      N       0     21   2113 211301
#>                      geometry
#> 1   POINT (-70.0444 -17.4957)
#> 2 POINT (-69.17542 -16.34484)
#> 3  POINT (-69.1684 -16.34416)
#> 4 POINT (-69.16854 -16.34345)
#> 5 POINT (-69.11849 -16.30779)
#> 6 POINT (-69.12296 -16.30604)
# }