scworland / restore-2018

scripts for predicting streamflow characteristics in ungaged basins for RESTORE
4 stars 2 forks source link

INSPECTION (NAs): all_huc12_covariates.feather #23

Open ghost opened 6 years ago

ghost commented 6 years ago

There are some NAs that need further description and documentation. The NA test on the comid handles the missing latitude and longitude values as well.

COV <- COVo <- read_feather("all_huc12_covariates.feather")
length(COVo$comid)
[1] 59070

length(COV$comid[is.na(COV$comid)])
[1] 1458

COV <- COV[! is.na(COV$comid),]
length(COV$comid[is.na(COV$acc_basin_area)])
[1] 330
There are a number of fields having this same count of 330.

COV <- COV[! is.na(COV$acc_basin_area), ]
length(COV$comid[is.na(COV$area_sqkm)])
[1] 210

This count is the same for the strm_dens field too.

After these NAs are removed, the COV appears fully rectangular with no further missing values.

ghost commented 6 years ago

I am incorrect. After the above removals, there still are a few NAs remains for which I will issue a separate Issue because of the nature of the missing information.