DSSAT / DSSAT/Florida_Crop_BMP_Datasets

QA/QC tool fails is there is no data in dataframes expected to contain geocoordinates

Open Beginner friendly
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TeX
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We need to trap cases where site, field, soi or weather sheets have no data. Currently, this error appears when the script attempts to rename variables for a given df containing coordinates:
Error in `$<-.data.frame`(`*tmp*`, Source, value = "S1. Soil Meta") :
replacement has 1 row, data has 0

In this specific case, the problem was with the soil metadata:
S1Soils <- S1__Soil_Metadata[ , c("Soil ID", "Latitude", "Longitude")]
S1Soils$Source <- "S1. Soil Meta"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the QA/QC tool and the S1Soils construction shown in the issue, then trace how site, field, soi, and weather sheets are handled when empty. Reproduce an empty data frame and confirm the tool traps the case without the replacement-row error for each sheet type.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.