- +1 −1 R/MODIStsp.R
- +6 −10 inst/Test_files/test01.json
- +8 −8 inst/Test_files/test02.json
- +7 −13 inst/Test_files/test03.json
- +10 −12 inst/Test_files/test04.json
- +24 −24 inst/Test_files/test05.json
- +40 −0 inst/Test_files/test06.json
- +47 −19 tests/testthat/test-modistsp1.R
| @@ -1,42 +1,42 @@ | ||
| { | ||
| "sel_prod": "LAI_8Days_500m (MCD15A2H)", | ||
| "sel_prod": "Albedo_Daily_500m (MCD43A3)", | ||
| "sensor": "Combined", | ||
| "prod_version": "6", | ||
| "start_date": "2016-07-16", | ||
| "end_date": "2016-07-31", | ||
| "start_date": "2017-07-19", | ||
| "end_date": "2017-07-19", | ||
| "bandsel": [ | ||
| 0, 1, 0, 0, 0, 0 | ||
| 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | ||
| ], | ||
| "indexes_bandsel": 0, | ||
| "quality_bandsel": [ | ||
| 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | ||
| ], | ||
| "start_x": 18, | ||
| "end_x": 18, | ||
| "start_y": 0, | ||
| "end_y": 1, | ||
| "quality_bandsel": 0, | ||
| "start_x": 15, | ||
| "end_x": 15, | ||
| "start_y": 7, | ||
| "end_y": 7, | ||
| "user": "", | ||
| "password": "", | ||
| "download_server": "ftp", | ||
| "use_aria": false, | ||
| "download_server": "http", | ||
| "download_range": "full", | ||
| "proj": "User Defined", | ||
| "user_proj4": "+proj=stere +lat_0=90 +lat_ts=71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0", | ||
| "user_proj4": "+proj=lcc +lat_1=15 +lat_2=16.66666666666667 +lat_0=15.83333333333333 +lon_0=-24 +x_0=161587.83 +y_0=128511.202 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0", | ||
| "out_res_sel": "Native", | ||
| "out_res": "native", | ||
| "full_ext": "Resized", | ||
| "resampling": "near", | ||
| "out_format": "ENVI", | ||
| "ts_format": "ENVI Meta Files", | ||
| "rts": "Yes", | ||
| "compress": [ ], | ||
| "out_format": "GTiff", | ||
| "ts_format": "None", | ||
| "rts": "No", | ||
| "compress": { | ||
| "High (DEFLATE)": "DEFLATE" | ||
| }, | ||
| "nodata_change": "No", | ||
| "scale_val": "No", | ||
| "delete_hdf": "No", | ||
| "reprocess": "Yes", | ||
| "bbox": [ 2e+05, -1.45e+06, 7e+05, -8.5e+05 ], | ||
| "reprocess": "No", | ||
| "bbox": [ 0, 0, 3.2e+05, 3e+05 ], | ||
| "out_folder": "$tempdir", | ||
| "out_folder_mod": "$modistest", | ||
| "MODIStspVersion": "1.3.3", | ||
| "custom_indexes": [], | ||
| "use_aria": false, | ||
| "download_range": "seasonal", | ||
| "scale_val": "Yes" | ||
| "MODIStspVersion": "1.3.2", | ||
| "custom_indexes": [] | ||
| } |
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "sel_prod": "LAI_8Days_500m (MCD15A2H)", | ||
| "sensor": "Combined", | ||
| "prod_version": "6", | ||
| "start_date": "2016-07-16", | ||
| "end_date": "2016-07-31", | ||
| "bandsel": [ 0, 1, 0, 0, 0, 0 ], | ||
| "indexes_bandsel": 0, | ||
| "quality_bandsel": [ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | ||
| "start_x": 18, | ||
| "end_x": 18, | ||
| "start_y": 4, | ||
| "end_y": 5, | ||
| "user": "", | ||
| "password": "", | ||
| "use_aria": false, | ||
| "download_server": "ftp", | ||
| "download_range": "seasonal", | ||
| "proj": "Latlon WGS84", | ||
| "user_proj4": "+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0", | ||
| "out_res_sel": "Resampled", | ||
| "out_res": "0.1", | ||
| "full_ext": "Resized", | ||
| "resampling": "near", | ||
| "out_format": "GTiff", | ||
| "ts_format": "GDAL vrt Files", | ||
| "rts": "Yes", | ||
| "compress": { | ||
| "Medium (LZW)": "LZW" | ||
| }, | ||
| "nodata_change": "No", | ||
| "scale_val": "Yes", | ||
| "delete_hdf": "No", | ||
| "reprocess": "Yes", | ||
| "bbox": [ 3.77, 39.8, 4.34, 40.1 ], | ||
| "out_folder": "$tempdir", | ||
| "out_folder_mod": "$tempdir", | ||
| "MODIStspVersion": "1.3.3", | ||
| "custom_indexes": [] | ||
| } |