sw_depth(p = 1000, lat = 30:40)
## Check values
sw_depth(p = 1000, lat = 30) #9712.65
sw_depth(p = 50, lat = 30) #496.00
sw_depth(p = 50, lat = 60) #494.69
sw_depth(p = 500, lat = 60) #4895.60
Run the code above in your browser using DataLab