get_reflectance: get_reflectance

View source: R/get_reflectance.R

get_reflectanceR Documentation

get_reflectance

Description

This is a function to get the reflectance for a specific output simulated by SCOPE.

Usage

get_reflectance(
  SCOPE_dir = "D:/SCOPE-master/",
  Simulation_Name,
  output_file = "reflectance.csv"
)

Arguments

SCOPE_dir

the diretory patch of SCOPE

Simulation_Name

simulation name stating the directory name generated by the run_SCOPE function.

output_file

default "reflectance.csv" output

Value

The result is a data.frame with all the predicted output per simulation name and date.

Examples

Examples of uses of the get_reflectance function
###############
library(tidyverse)

reflectance <- get_reflectance(SCOPE_dir = "D:/SCOPE-master/",
                                          Simulation_Name = "pixel_1169")

ggplot() +
geom_line(aes(y = reflectance[[1]]$X9, x = reflectance[[1]]$nm), colour="green") +
geom_line(aes(y = reflectance[[1]]$X35, x = reflectance[[1]]$nm), colour="darkgreen")


AlbyDR/rSCOPE documentation built on Dec. 19, 2024, 7:29 p.m.