You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_numberType <- function(values){
numberType=NA
if (is.numeric(values)){
if (any(values%%1!=0,na.rm = T)){numberType='real'}
else{
if (any(values<0,na.rm = T)){numberType='integer'}
else{
if (any(values==0,na.rm = T)){numberType='whole'}
else{
numberType='natural'
}
}
}
}
return(numberType)
}
Small but possibly helpful especially when having to go through multiple netCDF files with multiple variables. (although as written would overwrite any variables in the netCDF file named 'eml_numberType')
The text was updated successfully, but these errors were encountered:
Seems to me to be a possibly useful idea to automate the generation of eml defined
numberType
from netCDF files by addingbetween lines 41 and 42 in https://github.com/NCEAS/arcticdatautils/blob/master/R/attributes.R
Where:
Small but possibly helpful especially when having to go through multiple netCDF files with multiple variables. (although as written would overwrite any variables in the netCDF file named 'eml_numberType')
The text was updated successfully, but these errors were encountered: