JohMast / ImageFusion

A package for the fusion of Remote Sensing imagery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No output results after running

TianyaImpression opened this issue · comments

I tried to use GIMMS NDVI and MODIS NDVI for image fusion, but there was no output, the output warning is shown in the figure. Thank you!

code:
imagefusion_task( filenames_high = dir_highs, dates_high = 229:480, #2001-2021 monthly modis ndvi filenames_low = dir_lowrs, dates_low = 1:408, #1982-2015 monthly gimms ndvi dates_pred = 1:408, out_dir = "G/R/gimmsMonthMaxPredicted/", method = 'starfm', singlepair_mode = 'mixed' )

image

I tried to reproduce your situation using the example data. Does this produce any outputs for you?
It should create two images (70 and 85) in your temp directory.

imagefusion_task(filenames_high = landsat[2:4], dates_high = c(77,93,100), filenames_low = modis, method="starfm", dates_low = 68:93, singlepair_mode = "mixed", output_overview=T, dates_pred = c(65,70,85,95), out_dir = out_dir)

Hi, thank you very much for your work on this package, but i am facing a problem in my work, can you help me with resolving it please? It says 'Resolutions of High images are not identical'.

Hi, thank you very much for your work on this package, but i am facing a problem in my work, can you help me with resolving it please? It says 'Resolutions of High images are not identical'.

Hi! I assume you are trying to run an imagefusion_task, correct?
The function assumes that the input images have the exact same resolution. Could you check if that is the case, for example using:

filenames_high <-  # your filenames

high_resolutions <- lapply(filenames_high, function(x){
    raster::res(stack(x))
  }); 

high_resolutions 

Ok, i will try, thank you for the response