You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cat("\nData were all properly downloaded under the folder(s) ", paste(as.character(unique(dirname(df_to_dl$destfile))), collapse=" and "))
211
-
cat("\nActual data size is",actualFileSize,"Mb\n")
210
+
cli::cli_alert_success(paste0("\nData were all properly downloaded under the folder(s) ", paste(as.character(unique(dirname(df_to_dl$destfile))), collapse=" and ")))
211
+
cat("\nActual size of downloaded data is",actualFileSize,"Mb\n")
212
212
cli::cli_alert_info("\nTo import the data in R, use the function modisfast::mf_import_data() rather than terra::rast() or stars::read_stars(). More info at help(mf_import_data)\n")
Since most `modisfast` functions depend on EarthData credentials, automated tests are disabled. However, after installation, users can manually test the package's functionality by running these lines of code :
215
+
216
+
```{r, eval = F, echo=T,message=F}
217
+
# replace "username" and "password" with your own EOSDIS (Earthdata) credentials
Technically, `modisfast` is a programmatic interface (R wrapper) to several NASA [OPeNDAP](https://www.opendap.org/) servers. OPeNDAP is the acronym for *Open-source Project for a Network Data Access Protocol* and designates both the software, the access protocol, and the corporation that develops them. The OPeNDAP is designed to simplify access to structured and high-volume data, such as satellite products, over the Web. It is a collaborative effort involving multiple institutions and companies, with open-source code, free software, and adherence to the [Open Geospatial Consortium](https://www.ogc.org/) (OGC) standards. It is widely used by NASA, which partly finances it.
@@ -231,19 +243,6 @@ The indices within the `[]` refer to values encoding for the spatial and tempora
231
243
232
244
These OPeNDAP URLs are not trivial to build. `modisfast` converts the spatial, temporal and dimensional filters (R objects) provided by the user through the function `mf_get_url()` into the appropriate OPeNDAP URL(s). Subsequently, the function `mf_download_data()` allows for downloading the data using the [`httr`](https://cran.r-project.org/package=httr) and `parallel` packages.
233
245
234
-
## Manual testing of the functionality
235
-
236
-
Since most `modisfast` functions depend on EarthData credentials, automated tests are disabled. However, after installation, users can manually test the package's functionality by running these lines of code :
237
-
238
-
```{r, eval = F, echo=T,message=F}
239
-
# replace "username" and "password" with your own EOSDIS (Earthdata) credentials
240
-
earthdata_un <- "username"
241
-
earthdata_pw <- "password"
242
-
243
-
devtools::test("modisfast")
244
-
```
245
-
246
-
247
246
## Comparison with similar R packages
248
247
249
248
There are other R packages available for accessing MODIS data. Below is a comparison of modisfast with other packages available for downloading chunks of MODIS or VIIRS data :
0 commit comments