UCANR-IGIS / uasimg

The uasimg R package provides utilities for managing drone imagery, including creating data catalogs and utilities for single-image analysis.
https://ucanr-igis.github.io/uasimg/
GNU General Public License v3.0
16 stars 10 forks source link

Nothing to do! At least one of `ctr`, `fp`, or `mcp` must be TRUE. #5

Closed sbonaime closed 2 years ago

sbonaime commented 2 years ago

Hi, With image from phantom4 RTK, I started uas_info() without problem

> hast_ft1_info <- uas_info("/Volumes/data/images/2022_06_mayotte/100_0097/")
12.36
/Volumes/data/images/2022_06_mayotte/100_0097/
 - Using cached data
 - Metadata file not found
All done
> uas_report(hast_ft1_info)
Creating /Volumes/data/images/2022_06_mayotte/100_0097/map

processing file: uas_report.Rmd
  |....                                                                                                                |   4%
   inline R code fragments

  |.........                                                                                                           |   7%
label: unnamed-chunk-1 (with options) 
List of 2
 $ echo  : logi FALSE
 $ engine: chr "js"

  |.............                                                                                                       |  11%
  ordinary text without R code

  |.................                                                                                                   |  15%
label: unnamed-chunk-2 (with options) 
List of 2
 $ echo  : logi FALSE
 $ engine: chr "css"

  |.....................                                                                                               |  19%
  ordinary text without R code

  |..........................                                                                                          |  22%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |..............................                                                                                      |  26%
  ordinary text without R code

  |..................................                                                                                  |  30%
label: data_uris_insert (with options) 
List of 2
 $ results: chr "asis"
 $ echo   : logi FALSE

  |.......................................                                                                             |  33%
  ordinary text without R code

  |...........................................                                                                         |  37%
label: show_flight_info (with options) 
List of 2
 $ results: chr "asis"
 $ echo   : logi FALSE

  |...............................................                                                                     |  41%
  ordinary text without R code

  |....................................................                                                                |  44%
label: leaflet_ctr (with options) 
List of 2
 $ echo   : logi FALSE
 $ message: logi FALSE

  |........................................................                                                            |  48%
  ordinary text without R code

  |............................................................                                                        |  52%
label: fp_tab (with options) 
List of 3
 $ echo   : logi FALSE
 $ results: chr "asis"
 $ eval   : logi FALSE

  |................................................................                                                    |  56%
  ordinary text without R code

  |.....................................................................                                               |  59%
label: leaflet_fp (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: logi FALSE
 $ results: chr "asis"

  |.........................................................................                                           |  63%
  ordinary text without R code

  |.............................................................................                                       |  67%
label: kml_links (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "asis"

  |..................................................................................                                  |  70%
  ordinary text without R code

  |......................................................................................                              |  74%
label: nothingtodo (with options) 
List of 1
 $ echo: logi FALSE

  |..........................................................................................                          |  78%
  ordinary text without R code

  |...............................................................................................                     |  81%
label: unnamed-chunk-3 (with options) 
List of 1
 $ echo: logi FALSE

  |...................................................................................................                 |  85%
  ordinary text without R code

  |.......................................................................................................             |  89%
label: unnamed-chunk-4 (with options) 
List of 1
 $ echo: logi FALSE

  |...........................................................................................................         |  93%
  ordinary text without R code

  |................................................................................................................    |  96%
label: unnamed-chunk-5 (with options) 
List of 1
 $ echo: logi FALSE

  |....................................................................................................................| 100%
  ordinary text without R code

output file: uas_report.knit.md

/Applications/RStudio.app/Contents/MacOS/quarto/bin/pandoc +RTS -K512m -RTS uas_report.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output /Volumes/data/images/2022_06_mayotte/100_0097/map/2022-06-16_08-15-29_126JPEGs_rpt.html --lua-filter /usr/local/Cellar/r/4.2.0/lib/R/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /usr/local/Cellar/r/4.2.0/lib/R/library/rmarkdown/rmarkdown/lua/latex-div.lua --self-contained --variable bs3=TRUE --standalone --section-divs --template /usr/local/Cellar/r/4.2.0/lib/R/library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable theme=bootstrap --css uas_report.css --mathjax --variable 'mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /var/folders/2r/yvxrr_094bbd0qr779j7m2dw0000gp/T//RtmpSBGsd0/rmarkdown-str1708327fde34f.html 

Output created: /Volumes/data/images/2022_06_mayotte/100_0097/map/2022-06-16_08-15-29_126JPEGs_rpt.html
Done.
> hast_ft1_info
flight: /Volumes/data/images/2022_06_mayotte/100_0097/ 
name_long: NA 
name_short: 2022-06-16_08-15-29_126JPEGs 
camera: DJI Phantom 4 RTK 
images: 126 
area: 18.7 acres
size: 959 MB
date flown: 2022-06-16 
description: NA 
proj: NA 
loc: NA 
pilot: NA 
contact: NA 
uav: NA 
data_url: NA 
tags: NA 
notes: NA 

But I have a problem with uas_exp_shp and uas_worldfile

uas_exp_shp(hast_ft1_info)
Erreur dans uas_exp_shp(hast_ft1_info) : 
  Nothing to do! At least one of `ctr`, `fp`, or `mcp` must be TRUE.

uas_worldfile(hast_ft1_info)
Done.
Message d'avis :
Dans uas_worldfile(hast_ft1_info) :
  Can not generate world file(s). /Volumes/data/images/2022_06_mayotte/100_0097/ does not have footprints.

Maybe I missed something ? thanks

sbonaime commented 2 years ago

found the problem > uas_exp_shp(hast_ft1_info,fp=TRUE, ctr=TRUE, mcp=TRUE)