Linear and Nonlinear Anderson Localization in a Curved Potential