def EvalScripts(name):
    """ Provides SentinelHub eval scripts for the following sensors/algorithms:
    Sentinel_2_NDVI, Landsat_8_NDVI
    
    Parameters
    -----------
    name : string
        name of sensor and algorithm

    Returns
    -----------
    evalscript : string
        string containing SentinelHub eval script
    
    """
    
    if name == 'Sentinel_2_NDVI':
        evalscript = """
        //VERSION=3
        function setup() {
          return {
            input: ["B04", "B08", "CLM", "SNW"],
            output: {bands: 3, sampleType: "FLOAT32"}
          }
        }

        function evaluatePixel(sample) {
          return [[(sample.B08-sample.B04)/(sample.B08+sample.B04)], sample.CLM, sample.SNW];
        }
        """
        return evalscript
        
    elif name == 'Landsat_8_NDVI':
        evalscript = """
        //VERSION=3
        function setup() {
          return {
            input: ["B03", "B04", "B05", "B06", "BQA"],
            output: {bands: 3, sampleType: "FLOAT32"}
          }
        }

        function evaluatePixel(sample) {
          return [[(sample.B05-sample.B04)/(sample.B05+sample.B04)], [decodeLs8Qa(sample.BQA).cloud],
              [(sample.B03-sample.B06)/(sample.B03+sample.B06)]];
        }
        """
        return evalscript
    
    else:
        print("No eval script found")