powered by
Convert character aspects (of snow profile locations) to numeric values. For example, Aspect "N" (north) becomes 0 degrees azimuth.
char2numAspect(charAspect)
Float value of numeric aspect location, North = 0 degree, S = 180 degree
Character string of aspect location, i.e., one of
c("N", "NE", "NNE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW")
fherla
char2numAspect("W") char2numAspect("WNW") char2numAspect(c("N", NA, "NA", "NE"))
Run the code above in your browser using DataLab