Incomplete Code in `met2CF.R`
Sweetdevil144 opened this issue · comments
Bug Description
The active file met2CF.R
is incomplete. Some variables are not defined and the function dbfile.input.insert
is not completed.
The code file was last changed 10 years ago.
To Reproduce
Steps to reproduce the behavior:
- Open the file
modules/data.atmosphere/inst/scripts/met2CF.R
- Scroll down to lines 54
- Observe the incomplete code
Expected behavior
The file met2CF.R
should contain complete R code. It is observed that the end code block is missing as follow :
# insert into db as input
dbfile.input.insert <- function(filename, siteid, startdate, enddate, mimetype, formatname, con, hostname=PEcAn.remote::fqdn()) {
Screenshots
![Screenshot 2024-05-07 at 4 19 24 PM](https://private-user-images.githubusercontent.com/117591942/328493885-244f1458-438a-41a8-ae22-a334d769b8b8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MjYyNzUsIm5iZiI6MTcyMTQyNTk3NSwicGF0aCI6Ii8xMTc1OTE5NDIvMzI4NDkzODg1LTI0NGYxNDU4LTQzOGEtNDFhOC1hZTIyLWEzMzRkNzY5YjhiOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQyMTUyNTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYWY2MzY3NDkxNTRiMTQ2MTNhZGU4NDYxYzNjZTNiN2EwZTg0M2FiZjNhY2ZhYzU0YTRmNjVjMjEyNjYwYTYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jdsNAlPl8IaQkDQ0gPtbYLgWUe9UAcLIsswK4uqUezY)
If applicable, add screenshots to help explain your problem.
Machine (please complete the following information):
- Server: NaN
- OS: MacOS
- Version:
Additional context
The incomplete code may be causing issues with the execution of the program. The missing variables and incomplete function need to be defined and completed respectively.
This script isn't used and can be deleted. Has been superseded by met2CF.csv.R and met2CF.nc.R