get_climate_txt: Read STICS input meteorology file

View source: R/get_climate_txt.R

get_climate_txtR Documentation

Read STICS input meteorology file

Description

Read the meteorology input for STICS ("climat.txt")

Usage

get_climate_txt(
  workspace,
  file_name = "climat.txt",
  preserve = TRUE,
  dirpath = lifecycle::deprecated(),
  filename = lifecycle::deprecated()
)

Arguments

workspace

Path of the workspace containing the STICS climate file to read

file_name

The meteorology file name (default to climat.txt).

preserve

Logical, ⁠TRUE`` for keeping the STICS columns related to date calculation (year, month, day, julian), or only the Date column as a ⁠POSIXct⁠otherwise. Default to⁠TRUE'.

dirpath

[Deprecated] dirpath is no longer supported, use workspace instead.

filename

[Deprecated] filename is no longer supported, use file_name instead.

Value

A data.frame of the input meteorological variables used as input for the STICS model.

Note

The time-related variables are summarised into one POSIXct column named date.

Examples

path <- get_examples_path(file_type = "txt")
Meteo <- get_climate_txt(path)


SticsRFiles documentation built on Sept. 12, 2024, 7:41 a.m.