gen_step_mto: Generate meteo files for STEP model

View source: R/gen_step_mto.R

gen_step_mtoR Documentation

Generate meteo files for STEP model

Description

Formatting csv data in STEP mto format. The function takes dataframe with: names(dataframe)="date" "day" "year" "rain" "RayGlo_MJm" "temp_min" "temp_max" "pvap_2_m_hPa" "Wind_Speed".

Usage

gen_step_mto(workspace, dataframe, isite, year, alt, lat, hautmes)

Arguments

workspace

where you want to save the mto file

dataframe

the name of the dataframe to convert to mto file

isite

the name of the folder in which the mto file will be stored. Usually the name if the site.

year

the two last digits of the year. e.g. for 2012 it is "12"

alt

the altitude of the site

lat

the latitude of the site

hautmes

the height at which the wind speed was measured

Value

a folder in the workspace in which there is a mto file. e.g. for site 01 and year 2012 the file name is S0100112.mto

Examples

## Not run: 
gen_step_mto(workspace = workspace,dataframe=df,isite="Dahra",
year = "12",alt=308,lat=15.4,hautmes=2)

## End(Not run)


MadoShi64/rstep documentation built on July 1, 2024, 4:55 p.m.