Skip to content

Commit e1c1609

Browse files
committed
Address CRAN reviewer indications
1 parent 21b2fee commit e1c1609

29 files changed

+398
-192
lines changed

DESCRIPTION

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: MODIStsp
2-
Title: A Tool for Automating Download and Preprocessing of MODIS Land Products
2+
Title: Find, Download and Process MODIS Land Products
33
Data
44
Type: Package
55
Version: 2.0.5
@@ -17,22 +17,28 @@ Authors@R: c(person("Lorenzo", "Busetto",
1717
person("Jeff", "Hanson",
1818
role = "rev",
1919
comment = "Jeff Hanson reviewed the package for rOpenSci, see
20-
https://github.com/ropensci/software-review/issues/184"))
20+
https://github.com/ropensci/software-review/issues/184"),
21+
person("Babak", "Naimi",
22+
role = "ctb",
23+
comment = "Babak Naimi wrote the function ModisDownload(),
24+
on which some MODIStsp internal functions are based"))
2125
Description: Allows automating the creation of time series of rasters derived
22-
from MODIS Satellite Land Products data. It performs several typical
23-
preprocessing steps such as download, mosaicking, reprojection and resize
24-
of data acquired on a specified time period. All processing parameters
26+
from MODIS satellite land products data. It performs several typical
27+
preprocessing steps such as download, mosaicking, reprojecting and resizing
28+
data acquired on a specified time period. All processing parameters
2529
can be set using a user-friendly GUI. Users can select which layers of
2630
the original MODIS HDF files they want to process, which additional
27-
Quality Indicators should be extracted from aggregated MODIS Quality
28-
Assurance layers and, in the case of Surface Reflectance products
29-
, which Spectral Indexes should be computed from the original reflectance
31+
quality indicators should be extracted from aggregated MODIS quality
32+
assurance layers and, in the case of surface reflectance products,
33+
which spectral indexes should be computed from the original reflectance
3034
bands. For each output layer, outputs are saved as single-band raster
3135
files corresponding to each available acquisition date. Virtual files
3236
allowing access to the entire time series as a single file are also created.
3337
Command-line execution exploiting a previously saved processing options
34-
file is also possible, allowing to automatically update time series
38+
file is also possible, allowing users to automatically update time series
3539
related to a MODIS product whenever a new image is available.
40+
For additional documentation refer to the following article:
41+
Busetto and Ranghetti (2016) <doi:10.1016/j.cageo.2016.08.020>.
3642
License: GPL-3
3743
Depends:
3844
R (>= 3.5.0)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- Edit documentation related to the change of maintainer
66
(see https://docs.ropensci.org/MODIStsp/articles/lorenzo).
77

8+
- Add the argument `parallel` to function `MODIStsp()` and `MODSIStsp_process()`
9+
to allow running the processing in single core modality.
10+
811
### Minor changes
912

1013
- Fix Travis tests

R/get_mod_dirs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' environment or not. If not, processing messages are sent to a log file
1717
#' instead than to the console/GTK progress windows.
1818
#' @param out_folder_mod `character` output folder for MODIS HDF storage
19-
#' @return `character arraay` listing all available folders (a.k.a. dates) for
19+
#' @return `character array` listing all available folders (a.k.a. dates) for
2020
#' the requested MODIS product on lpdaac http archive, for the years
2121
#' included in the time range selected for processing.
2222
#' @author Original code by Babak Naimi (\code{.getModisList}, in

README.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ For more information, documentation and examples of use, __see also the `{MODISt
6363

6464
## Important News
6565

66-
- 09/02/2020 - `{MODIStsp}` 2.0.0 is out. Provides a new GUI interface based on Shiny, getting rid
66+
- 10/12/2020 - `{MODIStsp}` was resubmitted to CRAN after the maintainer's death.
67+
Now `{MODIStsp}` is dedicated to Lorenzo Busetto (https://docs.ropensci.org/MODIStsp/articles/lorenzo).
68+
69+
- 01/09/2020 - `{MODIStsp}` 2.0.0 is out. Provides a new GUI interface based on Shiny, getting rid
6770
of the archived dependencies on gWidgets/gWidgetsRGtk2. Also provides much easier usage from
6871
the CLI, by allowing to set all processing arguments also from the CLI. __Note:__ due to the
6972
introduced changes, options files created with previous versions of `{MODIStsp}` will no

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ For more information, documentation and examples of use, **see also the
5757

5858
## Important News
5959

60-
- 09/02/2020 - `{MODIStsp}` 2.0.0 is out. Provides a new GUI interface
60+
- 10/12/2020 - `{MODIStsp}` was resubmitted to CRAN after the
61+
maintainer’s death. Now `{MODIStsp}` is dedicated to Lorenzo Busetto
62+
(<https://docs.ropensci.org/MODIStsp/articles/lorenzo>).
63+
64+
- 01/09/2020 - `{MODIStsp}` 2.0.0 is out. Provides a new GUI interface
6165
based on Shiny, getting rid of the archived dependencies on
6266
gWidgets/gWidgetsRGtk2. Also provides much easier usage from the
6367
CLI, by allowing to set all processing arguments also from the CLI.

cran-comments.md

Lines changed: 88 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,97 @@ In this submission I fixed a possible tentative of writing in the user library
4242

4343
```
4444
Possibly mis-spelled words in DESCRIPTION:
45-
HDF (26:24)
46-
MODIS (2:60, 22:10, 26:18, 27:60, 35:18)
47-
Reflectance (28:50)
48-
mosaicking (23:43)
49-
rasters (21:63)
50-
reflectance (29:67)
51-
reprojection (23:55)
45+
Busetto (40:5)
46+
HDF (29:24)
47+
MODIS (2:35, 25:10, 29:18, 30:60, 38:18)
48+
Ranghetti (40:17)
49+
mosaicking (26:43)
50+
rasters (24:63)
51+
reflectance (31:50, 32:65)
52+
reprojecting (26:55)
53+
resizing (26:72)
5254
```
5355
All these words are correctly spelled.
5456

57+
## CRAN resubmission review
58+
59+
Please find below the answers to the CRAN reviewer.
60+
61+
> Please reduce the length of the title to less than 65 characters.
62+
63+
The title was changed from "A Tool for Automating Download and Preprocessing of
64+
MODIS Land Products Data" to "Find, Download and Process MODIS Land Products".
65+
66+
67+
> Please only capitalize sentence beginnings and names in the description text.
68+
> e.g. Quality Indicators --> quality indicators
69+
> Spectral Indexes --> spectral indexes
70+
> Surface Reflectance --> surface reflectance
71+
72+
All capitalized letters were changed (unless sentence beginnings).
73+
74+
75+
> Please change:
76+
> products ,
77+
> -->
78+
> products,
79+
80+
Done.
81+
82+
83+
> Please provide a link to the used webservices to the description field
84+
> of your DESCRIPTION file in the form
85+
> <http:...> or <https:...>
86+
> with angle brackets for auto-linking and no space after 'http:' and
87+
> 'https:'.
88+
89+
No webservices were used (the MODIStsp Shiny GUI is launched from local PC).
90+
I added a reference to the paper which describes MODIStsp:
91+
Busetto and Ranghetti (2016) <doi:10.1016/j.cageo.2016.08.020>
92+
93+
94+
> You have examples for unexported functions.
95+
> Please either omit these examples or export these functions.
96+
> Used ::: in documentation:
97+
> man/split_nodata_values.Rd:
98+
> MODIStsp:::split_nodata_values(c("255", "250,254:255"))
99+
> man/split_nodata_values.Rd:
100+
> MODIStsp:::split_nodata_values(c("255", "250,254:255"),
101+
> take_all = FALSE)
102+
> man/split_nodata_values.Rd:
103+
> MODIStsp:::create_nodata_rcl(c("255", "250,254:255"), c("255",
104+
> "255"))
105+
106+
Examples of unexported functions were removed.
107+
108+
109+
> Some code lines in examples are commented out in MODIStsp.Rd.
110+
>
111+
> Please never do that. Ideally find toy examples that can be regularly
112+
> executed and checked. Lengthy examples (> 5 sec), can be wrapped in
113+
> \donttest.
114+
115+
Examples were changed following these indications.
116+
All lenghy examples were wrapped in \donttest{}.
117+
\dontrun{} is no more used.
118+
119+
120+
> Please ensure that you do not use more than 2 cores in your examples,
121+
> vignettes, etc.
122+
123+
Argument `parallel` was added to functions `MODIStsp()`, MODIStsp_process()`
124+
and `MODIStsp_process_bands()` (the only functions exploiting multicore
125+
computation): if `parallel = FALSE`, single core is used.
126+
All examples and vignettes were edited setting `parallel = FALSE` everywhere.
127+
128+
129+
> Please always add all authors, contributors and copyright holders in the
130+
> Authors@R field with the appropriate roles.
131+
> e.g.: Babak Naimi
132+
133+
Babak Naimi's contribution was added to the DESCRIPTION.
134+
135+
55136
MODIStsp 2.0.5
56137
================
57138

docs/articles/MODIStsp.html

Lines changed: 34 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)