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_forest_fire_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)
#> Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
fire_forest <- get_forest_fire_data(show_progress = FALSE)
#> Reading layer `file1a613a20a983' from data source 
#>   `/tmp/RtmphIwINx/file1a613a20a983.geojson' using driver `GeoJSON'
#> Simple feature collection with 3455 features and 34 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -79.13259 ymin: -14.43376 xmax: -68.98307 ymax: -3.47667
#> Geodetic CRS:  WGS 84
head(fire_forest)
#> Simple feature collection with 6 features and 34 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -77.68121 ymin: -8.50344 xmax: -74.50126 ymax: -7.80636
#> Geodetic CRS:  WGS 84
#>   OBJECTID                                          FUENTE DOCREG     FECREG
#> 1   208276 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 2   208927 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 3   209268 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 4   209269 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 5   209270 Servicio Nacional Forestal y de Fauna Silvestre        2024-09-25
#> 6   209271 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
#> 1     18      2 UCAYALI CORONEL PORTILLO  MANANTAY SAN FERNANDO 2024-09-25
#> 2     18      2  LORETO          UCAYALI CONTAMANA    CONTAMANA 2024-09-25
#> 3     18      2  ANCASH           SIHUAS CHINGALPO    CHINGALPO 2024-09-25
#> 4     18      2  ANCASH           SIHUAS CHINGALPO    CHINGALPO 2024-09-25
#> 5     18      2 UCAYALI       PADRE ABAD  CURIMANA     CURIMANA 2024-09-25
#> 6     18      2 UCAYALI       PADRE ABAD  CURIMANA     CURIMANA 2024-09-25
#>       HORA CATEG               NOMCATEG  LATITUD  LONGITUD   COORES  COORNO
#> 1 13:41:00    30                        -8.50344 -74.50126 554891.9 9060010
#> 2 16:00:00    24 SAN LUIS DE CHARASMANA -7.80636 -75.35967 460346.0 9137092
#> 3 12:54:00    30                        -8.33020 -77.68121 204671.5 9078196
#> 4 12:54:00    30                        -8.32955 -77.67597 205248.6 9078272
#> 5 13:41:00    30                        -8.33308 -75.08912 490187.2 9078878
#> 6 12:54:00    30                        -8.32980 -75.08677 490445.9 9079241
#>           CODREP created_user        created_date last_edited_user
#> 1 PIF_02508_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#> 2 PIF_04178_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#> 3 PIF_04246_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#> 4 PIF_04246_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#> 5 PIF_04247_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#> 6 PIF_04247_2024   JMONTALBAN 2024-09-26 00:28:09       JMONTALBAN
#>      last_edited_date ESTADO             TIPCOB PELIGRO REFESTADO CONF CODRVIF
#> 1 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#> 2 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#> 3 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#> 4 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#> 5 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#> 6 2024-09-26 00:28:09      1 Cobertura Forestal       0         0    0       0
#>           SENSAT CATDEP CATPRO CATDIS                   geometry
#> 1            N20     25   2501 250107 POINT (-74.50126 -8.50344)
#> 2 GOES (16 y 17)     16   1606 160601 POINT (-75.35967 -7.80636)
#> 3            N21     02   0219 021905  POINT (-77.68121 -8.3302)
#> 4            N21     02   0219 021905 POINT (-77.67597 -8.32955)
#> 5            N20     25   2503 250303 POINT (-75.08912 -8.33308)
#> 6            N21     25   2503 250303  POINT (-75.08677 -8.3298)
# }