Calculate Land Surface Temperature Using Google Earth Engine || Time Series Analysis || MODIS || LST

Поделиться
HTML-код
  • Опубликовано: 6 апр 2023
  • // Import country boundaries feature collection.
    var dataset = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017');
    // Apply filter where country name equals Pakistan.
    var PakistanBorder = dataset.filter(ee.Filter.eq('country_na', 'Pakistan'));
    // Print new "PakistanBorder" object and explorer features and properties.
    // There should only be one feature representing Pakistan.
    print(PakistanBorder);
    // Add pakistan outline to the Map as a layer.
    Map.centerObject(PakistanBorder, 6);
    Map.addLayer(PakistanBorder);
    // Import LST image collection.
    var modis = ee.ImageCollection('MODIS/MOD11A2');
    // Define a date range of interest; here, a start date is defined and the end
    // date is determined by advancing 1 year from the start date.
    var start = ee.Date('2015-01-01');
    var dateRange = ee.DateRange(start, start.advance(1, 'year'));
    // Filter the LST collection to include only images intersecting the desired
    // date range.
    var mod11a2 = modis.filterDate(dateRange);
    // Select only the 1km day LST data band.
    var modLSTday = mod11a2.select('LST_Day_1km');
    // Scale to Kelvin and convert to Celsius, set image acquisition time.
    var modLSTc = modLSTday.map(function(img) {
    return img
    .multiply(0.02)
    .subtract(273.15)
    .copyProperties(img, ['system:time_start']);
    });
    // Chart time series of LST for pakistan in 2015.
    var ts1 = ui.Chart.image.series({
    imageCollection: modLSTc,
    region: PakistanBorder,
    reducer: ee.Reducer.mean(),
    scale: 1000,
    xProperty: 'system:time_start'})
    .setOptions({
    title: 'LST 2015 Time Series',
    vAxis: {title: 'LST Celsius'}});
    print(ts1);
    // Calculate 8-day mean temperature for Pakistan in 2015.
    var clippedLSTc = modLSTc.mean().clip(PakistanBorder);
    // Add clipped image layer to the map.
    Map.addLayer(clippedLSTc, {
    min: 10, max: 45,
    palette: ['blue', 'limegreen', 'yellow', 'darkorange', 'red']},
    'Mean temperature, 2015');

Комментарии • 15

  • @adeoyeadeniji4855
    @adeoyeadeniji4855 5 дней назад +1

    Please can you share the codes?

  • @hanayaas
    @hanayaas 6 месяцев назад

    Hello sir, can I use the time series code for landsat 8/9?

  • @ayushiridara.17
    @ayushiridara.17 2 месяца назад +1

    hello! how about 5 year time series analysis. is it possible in this code? how? tha k you

  • @user-uk6xh6xh4s
    @user-uk6xh6xh4s Год назад +1

    it is very interesting please send me the code or link

  • @cupcakerainbow7804
    @cupcakerainbow7804 Месяц назад +2

    How do i export this to drive?

  • @butthussain5881
    @butthussain5881 Год назад

    Thank you...
    But I have a question that is it only for day or for both day and night i.e. 24hrs...
    If not then plz comment how to make that...
    Thank you

  • @shaikhakindi2695
    @shaikhakindi2695 9 месяцев назад +1

    thank you, please shame me the code

  • @rhythemkaushal9621
    @rhythemkaushal9621 Месяц назад +1

    Hello sir, i want to calculate the mean LST for different years and regarding this i want t contact you, can you please share your email. Thank you