##(1) calculate cosmic dose rate (one absorber)
calc_CosmicDoseRate(depth = 2.78, density = 1.7,
latitude = 38.06451, longitude = 1.49646,
altitude = 364, error = 10)
##(2a) calculate cosmic dose rate (two absorber)
calc_CosmicDoseRate(depth = c(5.0, 2.78), density = c(2.65, 1.7),
latitude = 38.06451, longitude = 1.49646,
altitude = 364, error = 10)
##(2b) calculate cosmic dose rate (two absorber) and
##correct for geomagnetic field changes
calc_CosmicDoseRate(depth = c(5.0, 2.78), density = c(2.65, 1.7),
latitude = 12.04332, longitude = 4.43243,
altitude = 364, corr.fieldChanges = TRUE,
est.age = 67, error = 15)
##(3) calculate cosmic dose rate and export results to .csv file
#calculate cosmic dose rate and save to variable
results<- calc_CosmicDoseRate(depth = 2.78, density = 1.7,
latitude = 38.06451, longitude = 1.49646,
altitude = 364, error = 10)
# the results can be accessed by
get_RLum(results, "summary")
#export results to .csv file - uncomment for usage
#write.csv(results, file = "c:/users/public/results.csv")
##(4) calculate cosmic dose rate for 6 samples from the same profile
## and save to .csv file
#calculate cosmic dose rate and save to variable
results<- calc_CosmicDoseRate(depth = c(0.1, 0.5 , 2.1, 2.7, 4.2, 6.3),
density = 1.7, latitude = 38.06451,
longitude = 1.49646, altitude = 364,
error = 10)
#export results to .csv file - uncomment for usage
#write.csv(results, file = "c:/users/public/results_profile.csv")
Run the code above in your browser using DataLab