rnanclares / forest-fires

3 stars 2 forks source link

Getting black figures in 0_prepara_datos.R #1

Open gc759 opened 2 years ago

gc759 commented 2 years ago

Hi Raul,

We met some prblems runinng 0_prepara_datos.R.

When we run 38-43,

ic_drive_files_1 <- ee_imagecollection_to_local(
  ic = collection_fires,
  region = ee_roi,
  scale = 250,
  dsn = file.path("data/incendios_historicos", "FireCCI_")
)

It generates completely black figures, which are also quite small, in our Google drive. The feed back from R is

ic_drive_files_1 <- ee_imagecollection_to_local(
+   ic = collection_fires,
+   region = ee_roi,
+   scale = 250,
+   dsn = file.path("data/incendios_historicos", "FireCCI_")
+ )
────────────────────────────────────────────────────────────────────────────────────── Downloading ImageCollection - via drive ──- region parameters
 sfg      : MULTIPOLYGON (((-101.5703 2 .... 41873, -101.5703 21.41856))) 
 CRS      : GEOGCRS["WGS 84",
    DATUM["World Geodetic System 1984",
        ELLIPSOID["WGS 84",6378137,298.257223563, ..... 
 geodesic : FALSE 
 evenOdd  : TRUE 

File downloaded:f
• _2021_11_09_11_38_54.tif <id: 1cz7L8lIvXG4nufxy9cRR1Nu4AgIJkfRr>
Saved locally as:
• ./.tif

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Failed to open file NA/NA.tif.

I'm just wondering if you have any clue why did this happen?

What's more, we do not seem to have the file "limite_frankenstein_utm.shp" in line 31. Could you add this file please?

rnanclares commented 2 years ago

Hi @gc759 I'm going to change the limite_frankenstein for a different file.

rnanclares commented 2 years ago

Some of the FireCCI rasters can be completely black, because there wasn't any fires in that month.