R/print.R

setMethod ('print' , signature(x = "Satellite"), 
           function(x)
           {
             cat(paste("Summary of the Satellite Object\n\n", sep = ""))
             print(getSatMeta(x)[1:11]) 
             cat(paste("\n Layers are projected in:\n",
                       getSatProjection(x, getSatBCDE(x, 1)), 
                       sep = ""))
             if (length(unique(as.character(lapply(
               seq(countSatDataLayers(x)), 
               function(i) getSatProjection(x, 
                                            getSatBCDE(x, i)))))) > 1) {
               cat("\n\nWarning: Not all layers have same projection")
             }
           }
)

Try the satellite package in your browser

Any scripts or data that you put into this service are public.

satellite documentation built on Oct. 12, 2021, 5:07 p.m.