R scripts developed in: Ribeiro, A.F.S., Russo, A., Gouveia, C.M., Páscoa, P., Zscheischler, J.: Risk of crop failure due to compound dry and hot extremes estimated with nested copulas, Biogeosciences, 17, 4815-4830, doi.org/10.5194/bg-17-4815-2020, 2020. (please cite the article reference)