Project

General

Profile

« Previous | Next » 

Revision 76bbce5a

Added by Benoit Parmentier almost 9 years ago

slight changes to mosaicing script to account for added parameters and testing

View differences:

climate/research/oregon/interpolation/global_run_scalingup_mosaicing_function.R
4 4
#Different options to explore mosaicing are tested. This script only contains functions.
5 5
#AUTHOR: Benoit Parmentier 
6 6
#CREATED ON: 04/14/2015  
7
#MODIFIED ON: 12/02/2015            
7
#MODIFIED ON: 12/04/2015            
8 8
#Version: 1
9 9
#PROJECT: Environmental Layers project     
10 10
#COMMENTS: first commit of function script to test mosaicing using 1500x4500km and other tiles
......
448 448
  return(raster_name)
449 449
}
450 450

  
451
mosaicFiles <- function(lf_mosaic,mosaic_method="unweighted",num_cores=1,r_mask_raster_name=NULL,python_bin=NULL,mosaic_python="/nobackupp6/aguzman4/climateLayers/sharedCode/gdal_merge_sum.py",algorithm="R",match_extent=TRUE,df_points=NULL,NA_flag_val=-9999,file_format=".tif",out_suffix=NULL,out_dir=NULL){
451
mosaicFiles <- function(lf_mosaic,mosaic_method="unweighted",num_cores=1,r_mask_raster_name=NULL,python_bin=NULL,mosaic_python="/nobackupp6/aguzman4/climateLayers/sharedCode/gdal_merge_sum_noDataTest.py",algorithm="R",match_extent=TRUE,df_points=NULL,NA_flag_val=-9999,file_format=".tif",out_suffix=NULL,out_dir=NULL){
452 452
  #This functions mosaics tiles/files give a list of files. 
453 453
  #There are four options to mosaic:   use_sine_weights,use_edge,use_linear_weights, unweighted
454 454
  #Sine weights fits sine fuctions across rows and column producing elliptical/spherical patterns from center

Also available in: Unified diff