parameters: ()
return_statement: return fit.getMapId({
        'min': '0',
        'max': '0.18,20,-0.18',
        'bands': 'scale,offset,scale',
    })
docstring: Returns the MapID for the night-time lights trend map.
docstring_summary: Returns the MapID for the night-time lights trend map.
docstring_tokens: Returns the MapID for the night - time lights trend map .
function: def GetTrendyMapId():
    """Returns the MapID for the night-time lights trend map."""
    collection = ee.ImageCollection(IMAGE_COLLECTION_ID)
  
    # Add a band containing image date as years since 1991.
    def CreateTimeBand(img):
      year = ee.Date(img.get('system:time_start')).get('year').subtract(1991)
      return ee.Image(year).byte().addBands(img)
    collection = collection.select('stable_lights').map(CreateTimeBand)
  
    # Fit a linear trend to the nighttime lights collection.
    fit = collection.reduce(ee.Reducer.linearFit())
    return fit.getMapId({
        'min': '0',
        'max': '0.18,20,-0.18',
        'bands': 'scale,offset,scale',
    })
function_tokens: def GetTrendyMapId ( ) : collection = ee . ImageCollection ( IMAGE_COLLECTION_ID ) # Add a band containing image date as years since 1991. def CreateTimeBand ( img ) : year = ee . Date ( img . get ( 'system:time_start' ) ) . get ( 'year' ) . subtract ( 1991 ) return ee . Image ( year ) . byte ( ) . addBands ( img ) collection = collection . select ( 'stable_lights' ) . map ( CreateTimeBand ) # Fit a linear trend to the nighttime lights collection. fit = collection . reduce ( ee . Reducer . linearFit ( ) ) return fit . getMapId ( { 'min' : '0' , 'max' : '0.18,20,-0.18' , 'bands' : 'scale,offset,scale' , } )