ImageFusion icon indicating copy to clipboard operation
ImageFusion copied to clipboard

No output results after running

Open TianyaImpression opened this issue 3 years ago • 4 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

TianyaImpression avatar Nov 25 '22 12:11 TianyaImpression

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)

JohMast avatar Nov 28 '22 12:11 JohMast

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'.

666eternalatake avatar Oct 16 '23 07:10 666eternalatake

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 

JohMast avatar Oct 19 '23 19:10 JohMast

Ok, i will try, thank you for the response

666eternalatake avatar Oct 20 '23 02:10 666eternalatake