Revision 02f89282
Added by Benoit Parmentier over 8 years ago
climate/research/oregon/interpolation/global_run_scalingup_mosaicing.R | ||
---|---|---|
339 | 339 |
#debug(generate_ac_assessment_layers_by_tile) |
340 | 340 |
lf_accuracy_testing_raster <- generate_ac_assessment_layers_by_tile(lf,layers_option,df,df_tile_processed,metric_name, |
341 | 341 |
var_pred,list_models,use_autokrige,pred_mod_name, |
342 |
y_var_name,interpolation_method, |
|
342 |
y_var_name,interpolation_method,region_selected,
|
|
343 | 343 |
days_to_process,num_cores,NA_flag_val,file_format, |
344 | 344 |
out_dir,out_suffix) #### create a function to generate accuracy layers by tiles |
345 | 345 |
|
... | ... | |
355 | 355 |
|
356 | 356 |
#undebug(mosaicFiles) |
357 | 357 |
#can also loop through methods!!! |
358 |
browser() |
|
358 |
#browser()
|
|
359 | 359 |
mosaic_obj <- mosaicFiles(unlist(lf_accuracy_testing_raster), |
360 | 360 |
mosaic_method="use_edge_weights", |
361 | 361 |
num_cores=num_cores, |
... | ... | |
481 | 481 |
values_range=values_range) |
482 | 482 |
#Took 11 to 19 minues for one day and 28 tiles in region 4 |
483 | 483 |
if(tmp_files==F){ #if false...delete all files with "_tmp" |
484 |
lf_tmp <- unlist(lf_accuracy_residuals_testing_raster) |
|
484 |
#lf_tmp <- unlist(lf_accuracy_residuals_testing_raster)
|
|
485 | 485 |
##now delete temporary files... |
486 | 486 |
file.remove(lf_tmp) |
487 | 487 |
} |
... | ... | |
507 | 507 |
mosaic_method <- "use_edge_weights" #this is distance from edge |
508 | 508 |
out_suffix_tmp <- paste(interpolation_method,"kriged_residuals","data_day_s",day_to_mosaic[i],out_suffix,sep="_") |
509 | 509 |
#lf_tmp<-list.files(pattern="*kriged_residuals.*.tif",full.names=T) |
510 |
lf_tmp <- lf_accuracy_residuals_training_raster[[i]]
|
|
510 |
lf_tmp <- unlist(lf_accuracy_residuals_training_raster)
|
|
511 | 511 |
#lf_accuracy_residuals_raster[[i]] |
512 | 512 |
#debug(mosaicFiles) |
513 | 513 |
mosaic_obj <- mosaicFiles(lf_tmp, |
Also available in: Unified diff
debugging options to generate residuals maps and mosaics