-
Notifications
You must be signed in to change notification settings - Fork 31
/
plot_temp_compare.Rd
37 lines (30 loc) · 1.13 KB
/
plot_temp_compare.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_temp_compare.R
\name{plot_temp_compare}
\alias{plot_temp_compare}
\title{Plot matching heatmaps for modeled and observed temp}
\usage{
plot_temp_compare(nc_file, field_file, fig_path = FALSE, resample = TRUE,
col_lim, ...)
}
\arguments{
\item{nc_file}{Netcdf model output file}
\item{field_file}{CSV or TSV field data file (see \link{resample_to_field} for format)}
\item{fig_path}{F if plot to screen, string path if save plot as .png}
\item{resample}{sample the model output to the same time points as the observations?}
\item{col_lim}{range for heatmap (in units of the variable)}
\item{\dots}{additional arguments passed to \code{\link{resample_to_field}}}
}
\examples{
sim_folder <- run_example_sim(verbose = FALSE)
nc_file <- file.path(sim_folder, 'output.nc')
nml_file <- file.path(sim_folder, 'glm2.nml')
field_file <- file.path(sim_folder, 'field_data.tsv')
plot_temp_compare(nc_file, field_file) ##makes a plot!
}
\author{
Luke Winslow
}
\seealso{
Internally uses \code{\link{plot_var_compare}}, \code{\link{get_temp}} and \code{\link{resample_to_field}}
}