TRANSCRIPTEnglish

Landsat NDVI Trend Analysis Tutorial: Linear Regression + Mann–Kendall Test in Google Earth Engine

1h 39m 21s12,408 words1,893 segmentsEnglish

FULL TRANSCRIPT

2:18

So hello everyone welcome

2:23

welcome to the

2:25

14 days online training program on

2:28

okay can you see my screen is it visible

2:37

can you see my

2:42

Yes.

2:43

>> Okay. Thank you. So let's click

2:44

continue. Yeah.

2:46

So basically this is a course title

2:48

research based training on mastering GIS

2:50

and remote sensing analysis with Google

2:52

Earth Engine. So basically in this

2:55

online training program I will try to

2:57

cover lot of research topic. Okay. as

3:02

well as uh if you want you can also

3:04

publish some scientific paper regarding

3:07

this type of topic then it will be more

3:09

better okay so we can easily complete

3:14

all of those okay so basically we take

3:17

the class only for the one day in a week

3:20

only for the Monday we take the class

3:22

okay for 3 hours okay is uh day we

3:25

provide the 3 hours session and we try

3:28

to cover all of research based topic

3:31

Okay. And every topic we can publish the

3:35

scientific paper.

3:38

Okay. And every Monday we try to join at

3:41

the same time. Always every initial we

3:43

try to join at the same time. And

3:45

further we simply discuss our topic.

3:50

So first of all I try to discuss about

3:51

that uh what types of content we try to

3:55

cover in this syllabus.

3:57

So first of all we discuss about that

3:59

rooley model

4:02

how we can use and then how to compute

4:05

the soil erosion or soil loss mapping

4:10

for a hilly agriculture area using rley

4:13

model. Then we'll discuss about the

4:16

change detection mainly NDVI change

4:18

detection for the forest degradation

4:21

monitoring.

4:23

uh in this case we can detect the forest

4:25

health changes over 20 years or 30 years

4:29

in a national park using landset data

4:32

set. Then we talk about the rainfall

4:34

pattern. Okay, rainfall pattern or

4:38

monthly rainfall pattern, seasonal

4:39

rainfall pattern or annual rainfall

4:41

pattern and analyze the rainfall

4:44

variability in broad prawn region using

4:47

the charts satellite data or any other

4:50

satellite data which is provided with

4:51

the precipitation. you can also use no

4:53

problem as well as discuss about the

4:56

land use land cover classification using

4:58

machine learning. So basically this is

5:01

our topic. Um we can also use the Google

5:04

engine but now we also discuss about the

5:06

some advanc for Python library how we

5:10

can use for the Python to make the

5:15

supervised or unsupervised

5:17

classification further how to make the

5:20

urban extension or urban spiral. So this

5:23

type of thing we discuss about that and

5:26

discuss about the also LST NDVI time

5:29

series analysis for urban heat island

5:33

okay and compare the vegetation health

5:35

and temperature trend for the urban

5:38

versus ruler area we also discussed and

5:41

satellite based aridity index for

5:44

drought assessment we also discuss about

5:46

that map severity for agricultural

5:50

region using modis data set okay and

5:53

also discuss about the LST monitoring

5:56

using landset data for generate the

5:58

seasonal LST map summer season rainy

6:02

season different types of seasonal we

6:04

also discuss about that and linear

6:06

regression and trend analysis for

6:07

climate variable so different types of

6:09

climate variable bioclimatic different

6:12

types of variable we also discuss then

6:14

main candle uh end trend analysis we

6:16

also discuss detect the long-term

6:19

greening and the growing the trend for

6:20

the semi region

6:22

And also discuss about that different

6:24

types of drought index suppose

6:26

vegetation condition index, temperature

6:28

condition index or vegetation health

6:31

index to monitor the drought scenario

6:34

for our study area and deforestation

6:37

dete uh detection using machine

6:39

learning. We also discuss about that

6:41

mainly identify illegal logging areas.

6:44

Um suppose some forest area or some

6:47

place illog areas. We also discuss about

6:50

that. Then slope classification area

6:52

calculation NDVA classification raster

6:55

restriction. Then monitoring the

6:57

bioclimatic variable

6:59

then transpiration. Then soil serenity

7:03

how to monitor we also discuss about

7:04

that. Then landslide substability

7:06

mapping. Okay. Flood mapping sent on one

7:10

side also discuss about that okay NDI

7:12

trend analysis for the c of health

7:14

analysis also discuss land suitability

7:17

mapping livestock suitability mapping

7:19

then future land use land cover

7:21

prediction using CMR model and land and

7:25

buildup okay and flood bricks mapping so

7:27

it's mainly cover lot of topic okay and

7:30

every topic we can easily publish the

7:33

scientific paper if you want or you can

7:35

also combine suppose more two or three

7:38

topic and make a paper easily. So in

7:41

this session uh basically this training

7:42

program I will try to guide you

7:44

methodology section method section how

7:47

we can apply this type of methodology

7:51

and show you the practical analysis

7:53

practical analysis. So further uh you

7:57

can read different types of paper

7:59

regarding your topic and then literature

8:01

review or also others you can do. So for

8:04

that I also guide you. Okay. So how we

8:07

can easily work for that? We also

8:08

discuss about that. No problem.

8:12

So this is the overall summary of our

8:14

total foods course syllabus and every

8:17

concept or every topic we our main focus

8:20

for research research based and in the

8:23

research based session I try to show you

8:25

that methodology section. Okay. Method

8:29

and also result this section I try to

8:32

discuss every topic I try to discuss. So

8:34

further topic mainly introduction then

8:37

literature review or also others data

8:40

method. So different part of the

8:41

research paper you also try to do this

8:43

type of things. Okay. But I just cover

8:46

methodological section how to perform

8:49

this type of analysis how to do this

8:51

type of analysis. So further you can uh

8:54

easily learn the method and this method

8:57

you can easily use it for um your

9:00

research paper. Okay. So this is the

9:03

full course content and um you can get

9:06

the course e certificate after

9:07

submitting your assignment and what is

9:10

the assignment. So our assignment is

9:12

that we try to publish minimum four

9:15

paper or three paper minimum three or

9:17

four paper after that you are able to

9:19

get a certificate from this and you try

9:23

to publish the best journal Q1 journal

9:25

or Q2 journal also no problem. So you

9:27

try to publish it. Okay. After that you

9:29

are able to get a certificate. Okay. So

9:32

it's very important all of those because

9:34

this top it's a research based training

9:36

program. So already one base already

9:39

done. So this is our second base. Okay.

9:42

So one B already tried to publish some

9:44

paper. We already submit some journal.

9:46

So they also send our feedback. We try

9:48

to I hope it will be published some

9:50

paper from the first B also. So this is

9:52

our second base program. Okay. Second B

9:54

is running. So in the second P we try to

9:57

cover all of topic I already discuss

9:59

okay and I hope you can also get the

10:01

idea or anyone any question for the

10:03

course content you can ask me or any

10:05

confusion you can also ask me then I'll

10:07

try to uh recapture again any question

10:11

or any confusion about the course

10:12

content you can ask me.

10:22

Yes, please please please

10:33

>> uh sorry I was late I was kind of busy

10:37

but uh regarding the course uh so and

10:40

the subjects that you have already

10:42

explained uh the topics uh so are you

10:46

going to go with the in the B with us

10:49

with the basic of uh coding or are the

10:53

codes are going to be ready? You're just

10:55

going to explain it for us.

10:57

>> Okay. So basically this session um we

11:00

are start from that advanced level some

11:03

advanced level. Okay. For the basic

11:05

coding we have the another session. It's

11:08

called the 7 days training session. For

11:10

the basic if if you have no knowledge

11:12

about that uh coding then we have the

11:15

another session. It's called the 7 days

11:18

training session. But this one is a

11:19

research based training session.

11:22

>> I see. So uh do we need to sign up to

11:26

that session also or is going to be uh

11:28

the same session but in a different

11:31

time?

11:32

>> So we need to also registration for the

11:34

another

11:35

okay for the another program. So this is

11:37

another program

11:38

>> for that basically if you show that I

11:40

will show you this. This is another

11:41

program. So this is this one. So

11:44

basically this is a Google Earth engine.

11:45

So this new base will be start from that

11:48

17th January. Okay. So it's a totally

11:50

beginners who don't have ABC knowledge

11:52

of uh coding. Okay. So in this program

11:56

we try to discuss about that all of uh

11:59

things from beginners to advanced level.

12:01

Suppose how to run the code, how to

12:04

write the code, everything will be

12:05

completed and as a beginners who don't

12:07

have any knowledge, they can easily

12:09

learn these type of things. But now uh

12:11

this are this is our researchbased

12:13

training session. So in the research

12:15

training session we simply focus on the

12:18

application

12:20

application of different types of

12:21

project on Google.

12:24

>> Okay. Thank you very much.

12:25

>> Okay. So let's start. Yeah.

12:28

Okay.

12:30

Okay. So let's start our first class and

12:33

every class you can get the regret

12:34

session as well as you can also get that

12:36

uh practice code all of materials. So,

12:40

so today discuss about this topic mainly

12:44

20 yards data how I can get suppose it's

12:48

very important. So this data set you

12:50

need when you perform any types of

12:52

analysis suppose you want to make the

12:54

land use land cover or NDVI or anything

12:58

suppose I need the data uh for 20 years

13:02

data or 30 years data of landset

13:04

imagery. So how we can get this type of

13:07

data then we can easily apply different

13:10

types of analysis no problem. So first

13:12

of all we discuss about that how we can

13:14

easily get the data suppose for 30 years

13:18

or 20 years. Okay we discuss about that.

13:21

So I think here all of you already

13:23

complete the registration with Google

13:24

Earth Engine because it's our u advanced

13:28

training session. So you already know

13:29

about the Google Earth Engine how it

13:30

will work. So first of all we discuss

13:33

about that how to get the data. Suppose

13:35

how to get the 20 years data or 35 years

13:39

data for landset. And if you check

13:42

suppose click on here and click the

13:44

browse data catalog we can find out the

13:47

lenset section

13:49

and if you check the landset datas are

13:51

available from uh you can see different

13:54

time period. So you can see landset 1 to

13:56

5 it's available between this time

13:57

period landset 4 this time period. lands

14:00

at five this time period and also lands

14:02

at 7 this time period then lands at 8

14:05

also this time period so lands at 9 also

14:07

this time period so now how I can

14:11

merge this type of lens set okay and get

14:13

the data suppose I need the data for 20

14:17

years or 30 years so how I can get this

14:21

type of data and when I have this type

14:24

of data then I can easily perform

14:26

different types of analysis I can easily

14:28

perform the historical land use land

14:30

cover. I can easily perform the

14:32

historical uh land surface temperature.

14:35

I can easily perform the analysis

14:37

historical um NDVI different types of

14:40

things I can do. So it's very important.

14:43

So that's why I start from the data

14:45

collection how I can get the data and if

14:48

you have the data so this data further I

14:51

can use the different purpose I can

14:54

easily use for the land use land cover.

14:56

I can easily use for the land surface

14:58

temperature. I can easily use for NDVI

15:00

monitoring or visitation monitoring. So

15:02

different purpose I can easily use this

15:04

type of data. So let's go ahead to

15:06

start.

15:24

So first of all we discuss about that uh

15:27

data collection

15:31

data collection. Okay. How we can easily

15:34

get the data mainly landset

15:38

landset.

15:40

Suppose I need the data from

15:44

uh 1980 to

15:47

20

15:48

25. Okay. Suppose every year's data I

15:52

need. So this is my main target data

15:54

collection. So I take the long-term data

15:56

or historical data. So this type of data

15:59

I need from 1980 to 2025.

16:05

So now how I can set this type of data.

16:09

So it's very important because uh when

16:12

we have this type of data we can easily

16:14

perform the different types of analysis.

16:16

I already know um land land use land

16:19

cover, NDVI, LST, NWI. So different

16:23

types of analysis you can easily do for

16:25

historical data analysis. And if you

16:27

check the different types of paper so

16:31

always they perform the historical data

16:33

analysis. So here I already open lot of

16:35

paper. So you can see change detection

16:37

visitation using remote sensing and GIS.

16:39

So if you check this paper also use the

16:42

data from 1990 to 2010. Okay. So it's

16:46

historical data they take from the NDVI.

16:49

Okay. And if you check every paper. So

16:51

basically today I discuss about this

16:52

topic. So that's why I already open

16:55

different types of paper related this

16:57

type of topic mainly vegetation change

17:00

analysis or vegetation trend analysis.

17:03

Uh these things I try to explain today's

17:05

session. So here I already opened this

17:08

type of relevant paper and I will send

17:10

you all of paper because our main target

17:13

is to publish the scientific paper. So

17:15

this type of relevant paper I also send

17:17

you uh then you try to read later. Okay

17:20

every paper. So today discuss about this

17:23

type of paper method how we can perform

17:26

the analysis.

17:32

So let's go try to data collection.

17:34

Suppose I need the data from landset

17:36

1980 to 2025.

17:39

So first of all I need to create a

17:42

observation year. Observation

17:45

year. Suppose in the observation year I

17:48

need to set a start year and in year. So

17:52

simply take a variable. So I think you

17:54

already know about the variable. Suppose

17:56

I put the variable name is start year

18:01

and I put suppose year 1990

18:04

or 1980 any year you can put then

18:06

suppose I put the end year end year and

18:09

put the year

18:13

suppose 2025.

18:16

So this is my observation year. Okay you

18:18

can also increasing or decreasing this

18:20

time no problem. So this is my stud

18:22

year. This is my end year. So I need the

18:25

data for every year. So just I make a

18:28

list. I just make a sequence sequence

18:31

suppose 1990

18:33

19001 19002 19003 19004 and up to 2025.

18:38

So all of data. So take a variable

18:42

suppose years equal and make a list

18:46

sequence. For that we use e dot list dot

18:50

sequence. So it this this function may

18:54

create a list or sequence. So it start

18:57

from 1990

19:00

and up to 2025.

19:03

Just I copy this variable and paste

19:05

here. So now what happened if you check

19:08

just I print the years and run the code

19:12

it just make a list it list computing

19:15

total 36 years. Total 36 years it

19:19

printed. If you check all of years 1992

19:24

all of years you find out in here. So

19:26

now what is my requirement? My

19:28

requirement is that I need this every

19:30

year satellite image. I need every year

19:35

satellite image from 9925.

19:40

Every year satellite image I need. So

19:43

for that

19:46

for that if you check the satellite

19:48

image this satellite image all of

19:51

satellite image is not the it start from

19:54

you can see 2021 to present so it's

19:57

available 2013 to present it's available

19:59

from 1980 uh 2024 it's available from

20:03

1984 to 2012 so now I need to merge okay

20:08

I need to merge multiple collection

20:10

suppose I need to merge land set four 5

20:13

7 8 and 9. So this four or five image

20:19

collection lands at four lands at five

20:21

lens at 7 L at 4 8 and L at 9. So this

20:26

five image collection for different

20:28

different year I just need to merge I

20:32

need to I need to merge when I take the

20:34

data from 990 to 2025. So now we discuss

20:40

about the how I can merge. I also write

20:43

the comment also because I also send you

20:45

the code link then you also try to read

20:47

this type of comment. It also help you

20:49

for your study.

20:52

So how to merge

20:56

L set 9 L set 8 lens 7 L set five and L

21:04

set four. Okay. So how to merge this

21:07

type of collection. Okay. If you check

21:09

uh it's a different different collection

21:11

lens set at four lens at set five lens

21:13

at 7 lens at 8 lens at 9. So it's a

21:16

different different collection. So now I

21:19

want to merge all of collection

21:20

together. So how I can merge? So it's

21:23

very important because if you check the

21:27

band combination mainly bands or

21:29

spectral bands suppose let me open for

21:32

lancet 9.

21:34

Lancet 9 if you check we find out the

21:36

surface reflectance. So I want to work

21:37

with surface reflectance this data and

21:41

if you check this data the serial of the

21:43

band. So there are total seven spectral

21:46

bands B1 to B7 and B1 is the B1 is the

21:52

blue or coastal aerosol band or alter

21:54

blue. B2 is the blue. B3 is the green.

21:58

B4 is the red. B5 is the near infrared.

22:01

B6 is the short wave infrared one. And

22:03

B7 is the short wave infred 2. Okay.

22:06

This is the sequence of band for lens

22:08

set 9 and we also find out the same

22:11

sequence also for lens set 8 satellite

22:14

data. If you check the lens set 8 again

22:18

that was lens 8. If you check

22:22

this B1 ultra blue then blue green red

22:26

infrared short infrared and short 2. So

22:29

B1 to B7 also same sequence we also find

22:31

out for the lens set 8 and Lancet 9. So

22:35

the the lens set 8 and lancet 9 image

22:37

collection are the similar

22:41

band sequence we find out. Okay. But if

22:44

you check for the lancet 7 it's some

22:47

different. If you check the lens 7

22:50

surface reflectance

22:52

this bands if you check it show the

22:55

result B1 is the blue it's a blue

23:00

but lancet 8 and 9 B1 is postal aerosol

23:05

or ultra blue but for the lens 7 if you

23:09

check the lens 7 image collection this

23:11

band it's a blue then green then red

23:16

then near infrared then short wave

23:18

infrared and short wave infrared 2.

23:21

Okay. So in this time this sequence is

23:24

not similar with lancet

23:27

8 and lancet 9. This is a different

23:30

sequence. Lancet 8 and 9 similar but

23:33

lancet 7 is the different you find out

23:35

the difference because you can see

23:37

lancet 7 one band is short basic.

23:40

Basically lit 7 it is not provide you

23:42

with the coastal aerosol. Okay. So

23:45

that's why SRB1 is the blue band. So B1

23:48

is the blue for Lancet 7. For Lancet 8

23:52

and 9, B2 is the blue. Okay, we can get

23:56

the some difference between the lids 8

23:58

and 9 and Lancet 7. So you can check the

24:02

uh it's a sequence and we find out the

24:04

similar sequence for L set five. If you

24:08

check the lens set five

24:13

set five, if you check lens set five and

24:16

seven are the similar sequence. If you

24:18

check

24:21

so for the lens uh five, it's a lens at

24:24

five image collection. If you check it

24:27

from the B1 many blue then you can see

24:29

B2, B3, B4, B5, B7. So we find out the

24:34

similar sequence for the lancet 5 and

24:37

lancet 7 they are spectral bands are the

24:41

seven. So from here you can get a

24:43

decision. So lancet 9 and lancet 8. So

24:46

these two image collection are the

24:48

similar sequence of bands but lancet 7

24:52

and lancet 5 also similar. Lens set five

24:55

and l seven is similar. Lenset 8 and

24:57

lens 9 is also similar.

25:00

Okay. So if I just make a note about

25:02

that. Suppose we find out that lens set

25:06

8,

25:08

Lancet 9 and Lancet 8 equal similar. We

25:14

find out the similar bands or similar

25:17

spectral band sequence and also find out

25:20

that Lancet 7

25:24

and Lancet 5

25:27

equal to similar

25:29

similar bands sequence. Okay, it's very

25:33

important when you merge. So lens at 9

25:36

and lens at 8, it is a similar bands.

25:38

Lens at seven and lens at five, it's a

25:41

similar bands. But lens at 7 and lens at

25:44

9, it's a different, it's a different

25:47

lens at 5 and lens at 8, it also

25:49

different. So we find out that lens at 9

25:51

and lens at 8 is a similar bands. But

25:54

lenses 7 and five also similar. Okay, we

25:58

find out this type of things from here.

26:00

So first of all I need to create the

26:02

similar bands. So mainly when you merge

26:05

when you merge landset 5 7 8 9 make the

26:09

all of all of uh all of collection all

26:14

of collection

26:17

need similar

26:21

sequence. Okay. So when you merge all

26:24

collection suppose land set 7 8 9 or

26:26

five you need the all collection need

26:29

the similar sequence it's very important

26:31

otherwise it not create the composite we

26:34

need the similar sequence so now how I

26:36

can make the similar sequence so let's

26:39

discuss about that so I hope you also

26:42

get the idea from uh for this lecture uh

26:45

how I say about these things you can

26:47

also get the idea okay or any question

26:50

or any confusion you can always ask me

26:53

the question I try to explain again. If

26:55

you have any confusion or any question

26:57

you can ask me anytime. Okay. So I'll

27:00

try to give the answer inshallah you can

27:02

get the solution. So first of all I take

27:04

a variable

27:06

I put the variable name is.

27:16

So here I find out I simply put the

27:18

variable name. Suppose I put the

27:19

variable name is

27:24

L L5

27:27

bands or I put suppose L5

27:31

bands. You can put any name as a

27:32

variable and make a list and make a list

27:35

all of bands. Suppose I put the list

27:40

SR B1,

27:43

SR

27:45

B2,

27:48

SR

27:51

P3,

27:53

SR,

27:57

SR

27:59

P4,

28:01

then SR

28:05

P5,

28:12

And there is no SRB 6, SRB 7. We write

28:14

SRB 7. Okay. So I simply write SRB 1,

28:18

SRB 2, SRB 3, SRB 4, SRB 5, SRB 7. Just

28:24

make a list for Lancet five band names.

28:27

So I take another variable. How about I

28:29

put the variable name is that

28:32

L5

28:36

names. I just write the name all of band

28:38

name. So I put the name suppose SRB1 is

28:42

the blue band right SRB2 is a green band

28:46

for lenset 5. I put the name then I put

28:49

the name SRB3

28:51

is the red band. SRB 4 is the near

28:55

infrared band. Then SRB 5 is uh S WR1

29:02

and then SRB

29:04

7 is S WR2 short wave infra two. So just

29:09

I make the band and band name band and

29:11

band name for lens set five also keep do

29:14

the same things for lens set 7. So

29:17

Lancet 7

29:20

and Lancet 5 is similar. We already

29:23

check it. So just I copy the same line

29:26

of code

29:28

and then

29:30

paste here. I simply change the name.

29:32

It's a L 7. It's a L set 7. Put the L7

29:36

L7 because band sequence are the similar

29:40

for the L set 5 and L 7 that is no

29:43

problem. So now we write the code for L

29:45

set 8 and 9. So take a variable same

29:48

way. So I put the variable name suppose

29:50

L8

29:52

bands

29:54

and I put the all of Lancet 8 bands

29:56

name.

29:58

So Lancet 8 band names. So I start from

30:02

SRB2. SR BB2. Why I start SRB2? Because

30:09

SRB2

30:10

is blue band for landset A. SRB2 is the

30:15

blue band. So for that I simply put the

30:18

SRB2. I start from SRB2 because SRB2 is

30:22

the blue band. Okay. Then put here

30:27

SR B3.

30:30

Then put here SR B4.

30:39

Then SRB 5.

30:42

SRB5,

30:49

SR

30:51

B6

30:53

and SR

30:55

B 7. Then I also put the band name. So

30:59

take a variable

31:02

L8

31:04

names. So now I simply write the name

31:07

SRB2 is blue band. Okay. SRB 3 is the

31:13

green band. SRB 4 is red band. Then SRB

31:18

5 is near infrared band. SRB 6 is short

31:22

wave infrared one band. SRB 7 is short

31:27

wave infrared two band. Okay. And Lancet

31:30

8 and Lancet 9 is the similar. So that's

31:32

why I simply copy the same line of code

31:38

and paste. And I simply change the name

31:40

it's L set 9 band L set 9 band name. Now

31:45

if you check the last line every band

31:49

last line. So this one also this one

31:54

also this one

31:56

and finally this one is the similar.

32:00

Okay you can see the similar. So it's

32:02

very important because when you make the

32:04

merge all of collection you need the

32:06

similar sequence of band similar

32:08

sequence of band we need when you merge

32:11

land set 5 7 8 9 when you merge you need

32:15

the similar sequence all time okay all

32:17

time we need it and this it's important

32:20

because uh when you just develop this

32:22

code for first time then other time not

32:25

need just we simply change our study we

32:27

can easily get the result okay so first

32:29

time that I simply explain all of those

32:31

line by line But next time when I work I

32:33

simply use the same code. I simply use

32:35

the same code all time. Not need to

32:37

change just I simply change my study

32:39

area and get the result from here. Okay.

32:42

So now if you check we find out that

32:44

this is the similar sequence. We make

32:46

the similar sequence. Let five lands at

32:49

7 L set uh 8 then land set 9 have the

32:55

similar sequence. There is no problem.

32:57

It's a similar sequence.

33:08

So now we simply call the collection our

33:11

landset collection.

33:24

Take a variable suppose L9

33:27

and if you check the image collection

33:31

suppose L9 just call

33:36

just surface reflectance just click.

33:40

So this is the ciphet ID of this image

33:42

collection just I copy

33:46

and then paste here. Okay just I call

33:48

the lenset 9 image collection. So this

33:50

lenset 9 image collection I need to

33:52

filter. So how I can filter? So for that

33:56

I need to import a stud area. Okay. So I

33:59

where I need the image suppose where

34:01

boundary or where I need the image. So

34:04

for that here I already import a shape

34:06

file in my asset tab. So for if you

34:09

simply okay here I already upload a

34:11

shape file. So I want to use it to

34:13

display this image. Just I click on

34:16

here. So it's imported in in here as a

34:19

table. So I simply change and I put the

34:21

name suppose ROI. So I need the image

34:24

suppose 1982 2025 for this study area

34:29

for this boundary I need this image. So

34:32

for that just I apply this uh function

34:35

in here. So it call the dot filter

34:40

filter bounce function. it intersecting

34:43

with my ROI then dot

34:46

filter date function put for the

34:49

specific time period. So now if you

34:52

check this landset 9 image is available

34:54

between this time period. So 2021 so

34:57

this time period. So I use this time

34:59

period full time period. Okay it give me

35:01

the all of image between this time

35:02

period. So just I use this same time

35:05

period.

35:07

Okay.

35:11

just we try to paste here. So start date

35:13

it will be start from 2021

35:16

uh 10 31 and put this time 26 uh 1st

35:23

January uh 28. So I put this type of

35:26

time period

35:28

and put the another filter metadata. I

35:32

set the cloud cover

35:35

cloud cover

35:37

less than I set less than

35:42

less than one. Choose a low cloud cover

35:45

less than one. And after that simply

35:49

just I use the similar code all time

35:51

just copy.

35:53

So now I simply call the lancet 8

35:55

collection just paste here. I put the L8

36:00

and [snorts] change the collection. So

36:02

how I can change it? Same way just uh

36:05

open the lens set 8 section eight

36:07

collection. If you check uh this is the

36:10

lens set 8 collection

36:14

just I click on here. So this landset 8

36:18

surface reflectance I just take and copy

36:21

this

36:23

just copy

36:26

and change it.

36:28

So this landset 8 we take and filter

36:31

bound. So simply change the time period

36:34

date is available from 2013

36:38

of it's uh March

36:43

18 months from we can take this result

36:45

and if you check this time period

36:47

it's available from uh 2026 uh January

36:53

3rd January I put the 3rd January no

36:56

problem okay so this landset 8 done so

37:00

then take the another variable for land

37:03

set 7. So now I use the same line of

37:07

code just I copy

37:12

and paste. So now simply call the lancet

37:14

7. So just open the lancet 7 collection

37:17

again.

37:23

If you check the lens set 7 this one.

37:31

So just I call the surface reflectance

37:35

and copy this ciphet ID of lancet 7

37:44

and change it

37:47

and it's available if you check it's

37:49

available from

37:51

uh this time

37:54

just I copy this time period

37:58

and change it

38:01

and also

38:05

with the last time period

38:13

I change it. Okay. So nice. So now L is

38:15

five similar just I copy

38:19

and paste and I put it's a lens set

38:21

five.

38:23

Okay. So now simply call the lenset 5

38:25

collection

38:34

the landset. This is the lens set

38:38

just back

38:42

lens set five. This one

38:48

and then copy the surface reflectance.

38:50

This one just open.

38:53

Then copy the cipet ID of lens set five

39:00

and paste here. Okay. Okay. So, let's

39:02

set five and it's available from if you

39:04

check uh 98416

39:07

just copy the start date

39:10

change here

39:14

and also call the

39:17

2005 Z just take OP

39:23

here.

39:25

Okay. So this is the common things we

39:28

simply apply for the lens set 7, Lancet

39:30

5, Lancet 8 and L set 9. So now this

39:33

type of bands I need to connect with my

39:36

collection. So how I can connect? So for

39:39

connecting just use the select function

39:41

select and call the lens set

39:48

9 bands. Just I copy.

39:52

Okay. Then put the comma sign and call

39:53

the lancet 9 name because we put the

39:56

similar name. So this thing we simply

39:58

copy and paste one by one all of code.

40:01

So now lancet 8 just paste here. So

40:04

simply change it's a lens set 8 bands

40:07

and lancet 8 name. So then simply lset

40:10

7. So L set 7

40:15

bands and L set name. Same L set five.

40:20

Just I connect the band this I already

40:23

created L set five bands and L set uh

40:27

five name okay so it's done

40:32

so you can get this type of things okay

40:35

I hope you also get the idea how it will

40:37

work yeah so now uh I want to merge all

40:41

of collection all of lands set

40:43

collection I simply merge

40:47

so for that take a variable suppose

40:51

full collection. I put this type of name

40:54

full collection and I simply merge all

40:56

of collection. I simply merge L set five

41:01

L set 9 merge with L set 8 merge.

41:07

Okay, merge function simply merge L set

41:10

at 7

41:11

then merge L set five. Okay, so I simply

41:16

merge L at 9 8 7 and five. I want to

41:20

check how many collection I find out.

41:22

How many collection I find out total

41:25

total number of collection after March

41:27

total number of collection I want to

41:28

check it. So for that just use the print

41:31

function

41:33

and call the full collection

41:37

and use the size function. So let's

41:40

computing how many total collection.

41:45

I think some wrong spelling I put the

41:47

lens set. Okay, let me check. Okay, I

41:51

put the name. So, it's a name. I put the

41:52

name. Similar name I put name. So now

41:55

run.

41:56

My god, it show the problem. Lame is so

41:59

I put I think I use the different

42:01

spelling. So L5 I put the names. It's a

42:05

name. I put the name. No problem. So I

42:07

put the similar. So this variable and

42:10

also use the same variable also in here

42:12

otherwise it create some problem. So now

42:15

it's very good. We find out that total

42:17

373

42:18

images. Okay. Total 373

42:23

images in my collection after Mars lands

42:26

at 9 8 7 and five. Total 373 image

42:32

collection. And this 373

42:35

image collection is less than 1% cloud

42:39

cover. Less than 1% cloud cover. You

42:42

find out the total how many image? So

42:44

you can I put the all time less than 1%

42:46

less than 1% less than 1%

42:49

less than 1%. So I take only for less

42:52

than 1% cloud cover and I find out how

42:55

many image we find out that total

42:58

uh 373

43:00

image collection I find out.

43:02

Okay, this is my image collection I find

43:05

out.

43:07

So now this image collection I want to

43:10

convert into annual. Suppose I have

43:13

[clears throat] total 300 373

43:18

images. So this image I need to convert

43:22

into 36

43:25

me.

43:27

Okay the 36 images. So and it will be it

43:30

will be uh annual it's many 36

43:35

annual images.

43:38

Okay. So I have total 373 images. I

43:41

already make the list. Total 36 years.

43:45

Total 36 I already make the list. And

43:49

now I want to create a function. Suppose

43:53

9990. How many image I have? I don't

43:55

know.

43:57

1991 how many image I have I don't know

44:01

how many image I have 992 I don't know

44:04

so now I create a function this function

44:07

filter this function filter how many

44:11

images are available for every year for

44:14

every year how many images are available

44:18

so I create a function this function

44:20

help me compute how many images are

44:23

available for every year I find out

44:26

Total 373 images but 1990

44:32

how many images are available in this

44:34

one year 1991 how many images are

44:37

available in one year I don't know so

44:39

for that I need to filter I need to

44:42

filter this image collection and find

44:44

out that how many images are available

44:46

in this year how many images are

44:49

available in this year how many images

44:50

are available in this year and up to

44:52

2025 how many images are available in

44:55

this

44:57

Okay. So for that um we use a function.

45:01

Suppose I have image collection.

45:04

Now I want to convert the another image

45:06

collection. So I have total 373

45:09

images. So now this 373 images I just

45:12

convert 36 images by annual by annual

45:17

every year

45:19

all of images. Suppose 1990 all of

45:21

images 1992 all of images. So year by

45:24

year I just make the composite or median

45:27

composite all of images.

45:32

So for that we simply take a variable

45:35

suppose I put the variable name is uh

45:37

annual

45:41

collection I put this type of name

45:43

annual collection. So now I have a

45:46

collection this collection I to convert

45:49

another image collection. So then we

45:51

simply use a function. It's called the

45:54

e dot

45:56

image collection

46:00

from

46:02

images.

46:09

So this function is simply apply a dot

46:11

image collection from images

46:15

function. So I have image collection. So

46:17

I want to create the 36 images from this

46:20

image collection. So I want to create

46:23

this 36 image collection from this image

46:26

collection. So this function e.m image

46:28

collection from images. So I want to

46:31

create 36 images by annually

46:34

from 30 373 images. So just we use this

46:38

function e. Collection from images.

46:42

Okay.

46:44

So in this function uh we simply uh

46:47

write our argument. So first of all I

46:51

create a function. I create a function.

46:54

So let's go create a function. So I

46:56

create a function.

46:58

I put the function

47:01

and I put the element name suppose y and

47:05

then put the ki bracket in this kal I

47:08

put my argument. So what is my argument?

47:11

I want to filter. I want to filter this

47:14

collection. I want to filter this images

47:17

mainly this collection total 373 images

47:20

by year by year. So for that take a

47:23

variable suppose annual

47:28

and call the full collection because it

47:31

is stored total 373 images full

47:34

collection and this collection I want to

47:37

filter. How I can filter? Art engine dot

47:41

filter dot calendar

47:44

range.

47:46

Now I put the time here

47:50

year to year mainly one year to another

47:52

year year to year and unit is year. So

47:56

now what happened? So now what happen if

47:58

you check

48:00

I have a full collection total 373

48:03

images. So in this full collection it

48:07

just filter how it filter year by year

48:10

suppose 9990

48:12

1992 all of year by year it's just

48:15

filter and every filter image suppose uh

48:21

990 I have suppose three image it create

48:25

the composite so I put the median median

48:28

composite it create the median composite

48:30

as well as also clip with my shape file

48:33

which is R O I okay

48:38

so now what I return from this function

48:41

so I want to return

48:44

this function I want to return

48:48

annual [snorts]

48:52

annual it's set with

48:57

here I put the element name is y so now

49:00

it's very complex as a beginners if you

49:02

have no knowledge about the coding so

49:03

That's why we have the another session

49:05

how to learn all of part of the code.

49:07

Okay. So I hear all of uh some student

49:09

already uh doing my previous course for

49:12

7 days. So I hope they also get this

49:14

type of code easily. So in this code

49:16

what I write in here if you check I

49:19

create a function. Okay I create a

49:21

function. So in this function

49:25

I want to filter the image year by year.

49:28

Okay. And I already make a list all of

49:32

years. I already make a list all of

49:33

years. So if you check previous first

49:36

time I already write the list of the

49:37

years. So just I copy this collection of

49:41

year because you can see this variable

49:43

is stored total 25 or 36 images 36

49:47

years. So just I call the years and this

49:50

years I connect with my function just I

49:54

simply connect and how I can connect

49:56

using the map function. I connect start

49:59

the bracket and also close the bracket.

50:03

So now what happened? So now this years

50:07

it stored all of year 1990

50:11

1991 all of year is stored in this.

50:14

Okay. So now from this collection one by

50:18

one year just come one by one year just

50:20

input in my function and filter. Okay.

50:25

and filter. Suppose the first time it

50:28

just come 1991 or 9990. So this one this

50:32

year suppose 1990 this year just come in

50:36

my function and filter 9990. Suppose it

50:40

find out total

50:42

three image. Okay. In this year suppose

50:44

three image I have. So this three image

50:46

just create the median composite. Same

50:49

1991 this year from this from this list

50:53

just come in function and create the

50:55

median and up to all of year 2020 all of

50:59

year one by one just [clears throat]

51:01

come in this tool or just come in this

51:03

function and create the median

51:05

composite.

51:08

So now if I check suppose just a print

51:11

this annual collection. So now let's

51:13

check how many image I find out. Just

51:16

check it. Just use the size function and

51:18

run the code. So now it's computing how

51:20

many image I find out 36. It created the

51:23

total 36 images because this years total

51:28

36 years. I already created the list of

51:31

total 36 years. So now this full

51:33

collection basically this number of

51:35

image collection it filter into total 36

51:39

years annually annually filter and all

51:42

of this year create the median

51:44

composite.

51:46

If you check all of image information

51:48

just

51:50

run the code it create the image

51:52

collection

51:55

36 element 36 images.

51:58

Then if you check

52:01

if you check we find out that okay total

52:04

six bands every image we find out there

52:06

are six bands. So just click on here. If

52:08

you check it show the image 9990.

52:12

Okay first image 9990. Then if you check

52:16

suppose second image 1992

52:19

and all of image if you check last image

52:22

225 and all of image have the total six

52:26

band. Six band blue green red short we

52:30

can easily get it there is no problem

52:33

okay we can get that all of image total

52:35

36 years image now I have

52:41

so I want to display this type of image

52:43

in my map let's try to show you that how

52:46

we can display

52:49

for that uh just if you want just map

52:52

dot add layer and call the annual

52:56

collection ction

53:00

and just run the code then see what

53:02

happened. There is no problem. It's just

53:04

loading but not focus on my given study

53:07

area. So further simply apply map dot

53:11

center

53:13

object object is

53:16

uh ROI zoom level I put the 10. So I

53:18

directly focus on my given study area.

53:21

Okay, which I put

53:24

and let's see what happened.

53:31

Or if you want just click on here.

53:33

And if you check

53:43

you can see it show the all of bands but

53:45

I want to display the image every year

53:48

year by year. Suppose I need to display

53:51

the image uh 1991 1992 this type of

53:55

things. So for that simply apply the two

53:58

bands function. So now run the code.

54:02

So now total 36 bands it's added. If you

54:04

check we find out. So just I open

54:10

and click on here. If you check it start

54:12

from the zero and if you check

54:17

35 or 36 three bands I want to create

54:20

suppose you can see zero mainly 90.

54:23

Okay. First serial if you check the

54:24

serial number of the list zero zero only

54:27

9990. And if you check 35 is the 2025.

54:32

Suppose I want to set the band

54:34

combination for 2025.

54:36

So how I can set just I select the 35.

54:39

If you check the 35 where is it? 35 35

54:43

30 35 35 red

54:47

then I put the 35

54:51

uh red then green

54:54

and 35

54:56

35 35 blue RGB natural color 35 blue I

55:05

keep the stressing keep the 98% level

55:07

but you can see it show the digital

55:09

number okay after some time discuss

55:11

about that how we can easily convert

55:12

into reflectance value. It show the

55:14

digital number. You can see it show the

55:16

8,000 13,220.

55:19

It's a digital number. But this digital

55:21

number we can convert in reflectance

55:25

value. Okay. Uh every bands have the

55:28

reflectance value. So we can also

55:29

convert. So I'll show you that after

55:31

some time just a minute. So just apply.

55:38

So then if you check uh the result you

55:41

find out this type of imagery and this

55:43

image for 2025 because you can see I put

55:47

the 35 35 35 red 35 green 35 blue. So

55:52

you can easily get the 2025 images.

55:56

It's just for visualization. It's not

55:58

the proper way to add the image. So I'll

56:01

show you the proper way also. No

56:02

problem. Suppose I want to display the

56:04

image for uh image for 9990. Okay. So

56:10

for the 9990 if you check it's a zero

56:12

serial zero zero zero. I simply set the

56:15

zero.

56:17

Suppose zero

56:20

uh red

56:23

then zero

56:27

uh [snorts] green

56:30

and zero

56:34

blue. Okay, just use it and it's going

56:36

to give 98%. So it still show the

56:39

digital number. So after some time I

56:40

will show you that how we can confirm

56:42

reflectance value. Just I apply.

56:48

So now you can get this type of imagery

56:50

for 990.

56:53

Okay.

56:55

Okay. So this is the one way to

56:57

visualize the image. But we face a

56:59

problem. Uh it show the digital number.

57:03

Okay. But if you check if you check the

57:05

satellite images basically it show the

57:08

reflectance value this type of a unit

57:10

0.45 45 0.52 0.63 63 0.77

57:16

but for the digital number it show this

57:18

type of min and max value. So now how I

57:20

can convert digital number it's called

57:22

the DN value. So this DN value I can how

57:26

I can convert into reflectance value.

57:30

So for that they already give you a

57:32

scale. So this is the scale. This is the

57:35

scale and this is the offset value. This

57:39

is the scale value and this is the

57:41

offset value. So this scale value and

57:44

offset I want to use when I convert TN

57:48

to RV mean reflectance value. This scale

57:52

value and this offset I need to apply

57:54

otherwise it gets some problem. So how I

57:57

can do it? So let's go ahead and

57:58

discuss.

58:04

So this thing we need to add in the

58:06

first part. So I put the it's a how to

58:10

convert.

58:22

So how to convert DN value?

58:26

How to

58:28

convert DN value to

58:32

reflectance

58:34

value?

58:36

So for that we need to use a uh we need

58:39

to create a function. Okay we need to

58:41

create a function. So this function

58:44

mainly convert dn to reflectance value.

58:48

Okay so let's go try to discuss about

58:51

that how we can easily convert.

59:06

So for that create a function suppose I

59:09

put the function variable name is that

59:11

apply

59:15

scale factor you can put any name I put

59:17

the name apply scale factor 12

59:22

I create a function

59:25

yeah I put the element name suppose

59:28

emails and what is my argument my

59:31

argument is two argument I

59:34

If you check it's very important because

59:38

um uh we can also if you check I'll show

59:41

you that just a minute. So if you check

59:44

SRB 1 to SRB 7 all of the similar okay

59:49

escal the similar similar similar okay

59:53

there is no problem similar similar also

59:55

offset also similar okay and it's

59:58

similar let's set 5 7 8 9 all of

60:00

collection are the same lens at 5 lens 7

60:04

lens at 8 lens at 9 all image collection

60:07

are the similar scale and similar offset

60:11

for optical ical bands. So it's called

60:13

the optical bands. Okay, it's called the

60:14

optical bands. But another bands it's

60:17

called the

60:20

thermal band. Okay, thermal band. What

60:22

is the thermal band? So thermal band

60:24

basically this one it's called the

60:26

thermal band. And you can see the

60:28

surface temperature it's called the

60:30

thermal band. So this band we need to

60:32

you can see it's another you can see

60:34

it's a this is the scale. This is the

60:36

offset. Okay. So thermal band is a

60:39

different scale different offset but

60:42

optical band if you check similar scale

60:45

and similar offset okay for the lenset 7

60:48

and lancet 8 lancet 5 all are the

60:51

similar for optical band so it's called

60:54

the optical bands and it's called the

60:55

thermal band so if you check the thermal

60:57

band are different not only for that

61:00

thermal band name is also different so

61:02

HTP6 this is the name for lancet 5 and

61:06

if you check for the lens set 8 it's the

61:08

another name Lancet 8 if you check

61:13

suppose Lancet 8

61:16

just check the thermal band so it's

61:17

another name

61:21

this band name is uh if you check STB10

61:24

so it's the thermal band okay but SKL

61:29

and offset is the similar it's not

61:31

problem it it's similar for lens set 5

61:34

lens set 7 lens set 8 lens set 9 it's

61:37

similar

61:37

But Lancet 8 and 9 this band name is STB

61:41

10. STB 10 uh thermal band for Lancet 8

61:45

and Lancet 9. Okay. And STB 6, Lancet 7

61:50

and Lancet 5. These two collection

61:54

thermal band is

61:56

STB6.

61:57

If you check STB6 this one it's create

62:02

some problem but we need to apply the

62:03

same similar band. So let's go ahead try

62:05

to show you that how we can use it. So I

62:07

hope you also get the idea what I say.

62:09

So in this case I simply show you that

62:12

uh lens set 8 and lens 7 lens at 9.

62:17

Okay. So this

62:20

optical

62:21

bands

62:23

optical bands

62:27

scale

62:28

and

62:30

offset

62:33

similar.

62:34

Okay. Not only for that we can also

62:37

write here some lens set 8 l set 7 also

62:40

landset five also similar. So we face a

62:44

one problem in here. This problem is

62:47

lens set

62:49

lens set

62:51

lens set 8

62:54

and lens at 9.

62:57

Here

62:59

the

63:03

bands

63:06

it name is

63:09

ST B10.

63:12

Okay.

63:15

Then L seven and L set five. This

63:20

thermal band name is

63:23

this thermal

63:28

bands

63:29

name is

63:33

ST

63:35

B6. Okay. So this difference we find out

63:39

but this scale about this scale

63:44

scale

63:45

and offset

63:49

offset similar

63:51

similar with

63:55

landset

63:57

landset

64:00

five

64:02

lens 7 thermal okay thermal thermal band

64:07

thermal band thermal bands okay so you

64:11

also get the idea what I say so laid 8

64:14

975 optical bands mainly SK and offset

64:16

similar lens at 8 9 thermal bands called

64:19

the STB 10 and L 75 thermal band is the

64:22

STB6 but STB 10 and STB 6 are the

64:26

similar are the similar

64:29

scale and offset value

64:32

okay similar value okay So now we create

64:37

a function. Okay. So we create a

64:39

function.

64:48

I put the things take a variable. So I

64:50

put the variable name is

64:55

optical optical bands

64:59

12. I call my element and select

65:04

select the all optical band. I just make

65:08

a list,

65:18

blue,

65:21

green,

65:23

red,

65:26

infrared.

65:29

S WIR 1

65:33

and S WIR 2. Okay. So these are optical

65:36

bands and what is my requirement? I want

65:39

to multiply I want to multiply with my

65:42

scale value and offset. So just I

65:43

multiply

65:46

this scale value. I already have this is

65:48

the scale value.

65:50

Just I copy

65:53

just I copy

65:55

paste here and add with offset value.

65:58

What is the offset value? This is the

66:00

offset value.

66:02

Just take copy

66:04

and paste here. So now optical is done.

66:07

So now another one thermal.

66:10

So take another variable.

66:13

Suppose I put the variable name is

66:24

thermal

66:26

bands.

66:28

and I call the element name image

66:31

and select the

66:33

band name. So in this case if you check

66:36

we already have the list all of bands.

66:39

Okay all of bands we already have the

66:41

list. So now I just use a common name.

66:44

Suppose this name is similar all time.

66:48

Okay. So for that I simply set a common

66:51

name. Common name I put suppose uh all

66:55

of band similar common name I put the

66:58

name any name you can put I put the name

67:00

suppose BT for brightness temperature

67:03

okay for the similar name I just put

67:07

so I put the name this band name is BT

67:11

brightness temperature but lit five and

67:15

seven it's come from

67:21

ST T B6

67:24

also for lens 7

67:28

ST

67:29

B6

67:31

then lens at 8 and 9 it's come from STB

67:33

10 because it's a different name okay ST

67:37

B 10 same

67:41

ST

67:44

P 10 okay so I can see now so STB6 okay

67:49

this is the name of lenset file Right?

67:51

But I put the name BT. So now you can

67:53

see similar. We find out the similar

67:55

sequence all of bands. Similar sequence.

67:58

Okay. BT. So now what can I do? I simply

68:01

put here uh BT BT because I put the name

68:06

is the BT in here. All of bands BT and

68:10

BT and these things I want to multiply

68:15

with the scale. So just put here the

68:17

multiply

68:18

the scale value scale value. If you

68:21

check the beta scale value is that this

68:23

decal value [snorts] just copy

68:27

and paste and add with offset value

68:31

offset value. This one is offset value

68:33

just copy

68:36

paste.

68:38

Okay. So it created function.

68:41

So now from this function what I return.

68:44

Okay. So what I return from this

68:46

function? I want to return

68:49

this function image

68:56

add bands

68:58

of optical bands just I call this

69:00

variable.

69:04

Okay. And put that null

69:08

proof. Same like as for add bands for

69:11

thermal band. put the add bands

69:14

of thermal bands

69:19

and put the null

69:22

and true. So now this is the function.

69:25

Okay, this function I need to connect

69:27

with my collection. I already have the

69:30

collection. If you check I already have

69:31

the collection all of image collection.

69:33

I simply connect using the map function.

69:36

Just connect also connect

69:40

lancet 8 then also connect lens 7 just

69:44

connect this function me just call the

69:47

function variable name and connect help

69:49

of map function

69:52

okay

69:53

okay there is no problem so now let's

69:55

try again and run the code to check the

69:57

value again what's happened

70:03

so now we try again to visualize the one

70:05

image and check the value

70:08

just click on here

70:11

suppose I put that uh red

70:15

green and blue still I give 98% so now

70:19

you can get that proper reflectance

70:21

value okay 0.05 05 something you can see

70:24

not very high value the reproed or scale

70:27

value just I apply

70:31

we can get that this is the image for

70:33

990 okay you can see you can get the

70:36

image 9090

70:38

so now we can also get the value just

70:41

click on here and then check then you

70:43

can get the all of reflectance value for

70:46

this specific coordinate we find out

70:47

that total six bands or seven bands we

70:51

find

70:52

display. So you can see find out that

70:56

okay so now okay it's not find out it

70:59

show that all of bands 252 bands okay

71:02

total 36

71:04

uh image okay 36 image total this type

71:08

of bands okay so now I want to display

71:11

okay suppose I want to display the image

71:14

uh 990 okay and also 2025

71:19

or any any years from the list any years

71:22

I can easily display the image. So how I

71:24

can display? So let's go to discuss

71:26

about that. So

71:29

for that take a variable. Suppose I put

71:31

the variable name is

71:34

what the name I put. You can put any

71:35

name. I put the name suppose uh image

71:39

90.

71:41

So all of image if you check in this

71:43

variable is stored. All of image total

71:45

36 image in this variable is stored.

71:48

Just a call and paste here. And I want

71:51

to filter the first year image. So I put

71:56

art engine dot filter dot equal. What's

72:00

equal? What? I put the year and set the

72:02

year 9990. So now what happened? So now

72:08

I make the mistake. So it's a annual

72:10

collection. Just copy and paste here

72:12

annual collection. So now from this

72:14

annual collection I just filter

72:17

year equal to 199. It means that image

72:22

of 9990

72:24

basically this image I simply choose and

72:27

store it in this store it in this

72:30

variable.

72:32

Okay.

72:34

And I want to use all of image and

72:36

create the composite. I use the mosaic

72:38

composite because I already create the

72:41

median composite. I put the mosaic. So

72:43

now I to display just a map dot add

72:45

layer and call the image

72:49

990 and paste here. So then it's not

72:53

need just I comment or remove you can

72:55

also remove that is no problem. So now I

72:57

just add the layer only for the image

72:59

9990. Okay just run the code. So now

73:02

it's the added one layer adding the

73:04

image of 9990

73:07

look like that. Okay so now I want to

73:09

add the band combination. Okay, band

73:11

combination very easy. Just click on

73:13

here. So now you can see it just show

73:16

the only one image. Okay, only one image

73:18

total seven bands or eight eight bands I

73:21

find out it's called the channel. So I

73:24

put the first channel it was uh which

73:26

one I put the red and green and put the

73:30

blue band RGB color I set and stress 98%

73:34

I keep to get the visualization just

73:38

apply.

73:39

So now you can see it loaded the image

73:42

1990 and when I click the import if you

73:44

see when I click the import a new line

73:46

of code added in my code editor just I

73:49

click it added just I copy

73:55

and further

73:58

just I paste after the object and if you

74:01

check it show the layer one but I want

74:03

to display the name so I put the name

74:05

suppose image uh 9990 just from the

74:10

port. So now we can get this is this is

74:12

the image

74:15

we can get this type of imagery.

74:19

So now I display suppose image 2025.

74:22

What can I do? Similar just copy the

74:24

same line of code and then paste. I

74:27

change the variable name uh image 2025

74:32

and I put the year equal to 2025 and I

74:36

want to display similar way map dot add

74:38

layer and image

74:42

2025

74:44

and run the code. So now it's added

74:46

another layer image 2025.

74:52

First time it show this type of color.

74:53

Okay. Then we simply set click on here

74:57

and I add the color suppose uh natural

74:59

color um I put suppose red

75:03

green and blue the stressing I keep has

75:07

a 98%.

75:10

and then further apply

75:15

and then import and further copy the

75:20

variable name you can this variable I

75:22

just copy and put the variable name

75:25

after the layer name you can see just I

75:27

put this name in here and put the layer

75:29

name I put the it's image 2025 so now

75:33

run the code so now I can add the two

75:35

image

75:38

who in one email you find out

75:42

from here.

75:50

So this is the way you find out this is

75:52

the image 2025

75:55

and this is the image for 1990.

76:05

So now you can easily do different types

76:08

of work for annually. Suppose you can

76:11

compute the vegetation, you can compute

76:13

the land use land cover, you can compute

76:16

the LST, you can compute the different

76:18

types of things. Not only for that you

76:20

can add the more image similar way.

76:21

Suppose I want to add the image for uh

76:24

1990 then 2000 just I copy

76:28

or 2010 just I put suppose image

76:32

image uh image

76:35

suppose 2010

76:37

and I set year equal to 2010 and for

76:41

that similar way just add the layer so

76:44

map dot add layer of image 2010 just I

76:49

copy Okay.

76:51

And now so now it's added the another

76:54

layer for image 2010.

77:01

So similar way just add the color band

77:04

combination. Click on here

77:06

and add suppose red green and uh blue

77:12

stressing keep as a 98%.

77:15

and further apply.

77:21

So then import this collection. Okay. So

77:24

now using this way we can easily add any

77:27

year of images and it's mainly anyone

77:31

media composite image.

77:35

It's image

77:38

20.

77:41

Okay. So now anyone need question you

77:44

can ask me the question about this code

77:45

or any confusion you can also ask me

77:47

about that please

77:59

and it's very useful because lot of time

78:02

we are use the same code for our

78:04

different types of research work or

78:06

project work for the LST historical LST

78:10

or historical NDVI Historical land use

78:13

can cover a lot of time we use the same

78:15

concept

78:17

for uh creating the different types of

78:20

work. Okay. Same concept we use.

78:25

>> Okay. Anyone question you can ask me.

78:31

>> Yes please.

78:34

[clears throat]

78:35

>> Hello dear dctor.

78:37

>> Yeah please.

78:39

Victor uh my project is soil erosion.

78:42

Can I use this code for NDVI for C

78:45

factor?

78:46

>> Yes. Yes. Yes. Yes. So we also discuss

78:49

about the soil erosion also. Okay. You

78:51

can also use it for that. No problem.

78:53

You can also use it. No problem.

78:55

>> Okay. For MDVI result for the soil

78:57

erosion. You can also use this type of

78:59

code. Okay. So we use this same code for

79:03

the different uh concept. Okay. Use the

79:05

same code for the different concept. So

79:07

inshallah I will try to explore all of

79:09

those in our total 14 days session. I

79:12

hope you can easily get the idea and you

79:14

also try to practice. So now in this

79:16

case I also set an assignment or

79:18

homework you also try to do. So for your

79:20

city

79:22

any any study area or for your city for

79:25

your city

79:28

make a

79:30

make a

79:33

make a suppose uh 30 years

79:37

in collection

79:41

and display

79:45

display the layer

79:48

display the layer 2090

79:54

then 2000

79:58

2010

79:59

2015 and 2025 try to display okay so for

80:04

your any city also try Because uh this

80:07

type of assignment you also do then you

80:09

can get the certificate and how how can

80:11

you submit the FM? I also try to show

80:13

you that also uh because it also help

80:15

you to uh more better study for when you

80:18

just practice and and not need to

80:20

memorize all of those. So you try to uh

80:23

understand all of code. Okay. And then

80:25

try to uh write your code your own hand.

80:28

Okay. Not copy and paste for the first

80:29

time. Okay. So when you become a

80:31

developer then copy and paste no

80:32

problem. But first time when you work

80:34

then try to write the code your hand not

80:37

copy and paste. Okay.

80:40

So you also try to for your city make a

80:42

30 years image collection. Okay. Uh and

80:45

also display this type of uh year layer.

80:50

Okay. Similar way you also try. Okay.

80:52

This similar way you also try. So then

80:54

you can easily display this type of

80:56

layer also in here.

80:59

So now we find out this type of imagery.

81:02

So basically now how I can compute the

81:05

NDVI suppose for NDVI NDVI basically

81:08

normalized difference vegetation index.

81:11

So NDVI so how I can make the NDVI

81:16

suppose annual NDVI or annual vegetation

81:19

map how I can create.

81:22

So for the NDVI when you create

81:25

we need to create a function we need to

81:28

create a function.

81:31

So how I can create a function okay for

81:34

NDVI? So let's get to create a function

81:37

for NDVI. So always you can see when I

81:40

write the function I add the top part.

81:43

So it's it's it's basic things because

81:45

this function further also connect with

81:47

our another collection. So you can see

81:50

this my function this function is simply

81:52

connect with my collection this

81:54

collection. Okay. So that's why this

81:56

function I simply write above the

81:58

collection. Okay. If I write the

82:00

function uh below the collection then it

82:03

will be not work. Suppose I write the

82:04

function in here below and then I

82:07

connect with my collection then it will

82:09

be not work. So always we try to write

82:12

our function above the collection. So

82:14

this is my collection. Let's say 9 87.

82:16

So I I always try to add the function

82:19

above the collection. I write the

82:21

function in here. So just I write the

82:24

function. Suppose I want to compute N

82:27

DVI. Okay.

82:32

How to compute NDVI

82:36

NDVI? How we can say compute

82:39

NVI? So for that how I can compute the

82:42

NDVI.

82:51

Okay. So for the NDVI uh take a variable

82:55

add band for add bands and create a

82:59

function. I put the function element

83:01

name suppose image and put my curly

83:04

bracket. In this curly bracket I put my

83:06

argument. So what is my argument for

83:08

this? I simply right in here.

83:23

So now what is my argument? So my

83:26

argument is I want to compute N DVI

83:30

using this element.

83:32

So take a variable suppose NDVI.

83:36

I call the element name element name and

83:40

apply normalize difference function

83:43

normalize

83:45

difference function between two bands

83:49

basically near infrared band and you can

83:52

checkh I put the name is N okay just use

83:56

the same name otherwise create some

83:58

problem so put the same name N

84:01

and red okay so I put the NDVI and put

84:06

the image it's my element name normalize

84:08

difference and I rename it I put the

84:10

rename function rename function I put

84:12

the name is NDVI

84:15

so now what I return so I want to return

84:19

this image add a bands add a bands

84:24

with this variable just like copy and

84:26

paste here so now it's one kind of

84:28

function okay this function I need to

84:32

connect with my collection so if you

84:35

check this is my collection. I already

84:37

have the collection. For connecting the

84:39

collection, use the map function always

84:41

the function and also connecting just

84:44

use add the function

84:46

and also use the connecting put here

84:48

this function.

84:51

Okay. As well as also connecting use

84:53

here this function and paste here.

84:57

Okay. So now what's the benefit I find

84:59

out from here? So now every year it

85:03

create the new band of NDVI.

85:07

If I check it just run the code. So then

85:09

if you check it from here suppose just

85:12

check it

85:14

uh total 36 image collection and I find

85:17

out that every years suppose you can say

85:21

years 990 it create the new band of

85:25

NDVI. Okay. every image, every image

85:30

create the new band of NDVI.

85:34

Okay. So now I want to display the NDVI

85:37

map. Suppose I want to display the NDVI

85:40

map for uh 2025.

85:45

Okay? Because if you check 2025, so this

85:48

is the image of 2025.

85:51

2025 and this image already have the

85:55

band of NDVI.

85:57

So now I can easily display the NDVI

85:59

map. Okay. So let's go to figure that

86:01

how I can display. So for that take a

86:04

variable ND vi 2025. I put this type of

86:10

name.

86:30

Okay. So, let's call it and I call the

86:32

image 2025. You can see I already have

86:35

the image 2025. Okay. This one I already

86:39

have because you can see I already

86:40

filtered the image 2025. Okay. Just I

86:43

call the image 2025. Okay. Just I call.

86:47

So from this image I just select only

86:50

one band of NDVI. Okay. So now I want to

86:54

add the layer. So my added layer of NDVI

86:58

2025

87:00

and run the board. You can check there

87:01

is no problem. It's added the new layer

87:04

of NDVI map 2025.

87:18

So let's create the NBMF look like that

87:20

without color.

87:22

So now we try to add the color.

87:25

So let's go. So for the color click on

87:29

here

87:31

and I customize just ST 98%.

87:35

And I the color suppose I can put any

87:37

color. I put the color suppose uh for

87:39

that low vegetation show this type of

87:41

color.

87:43

So greater than NDVI pixel it show this

87:47

type of color.

87:49

So greater than it shows this type of

87:52

color. So I put the three color

87:53

combination can also put the more color

87:55

no problem just I apply. So now this

87:57

type of green color indicating about the

87:59

vegetation area. So you can see this

88:00

type of green color indicating about the

88:01

vegetation area. Just import okay just

88:05

import. So then new line of code will be

88:07

added in my map. If you check it just

88:10

added the new map just I copy and paste

88:13

after the object name

88:15

and I put the name. It's a NDVI 2025. So

88:20

I want to add the NDVI map for uh 9990.

88:24

So how I can add? Same way take a

88:26

variable NDVI

88:28

1990. I already have the image 1990.

88:32

Just I copy and paste here. So from here

88:36

I select select only for the one vent.

88:39

This is NDVI and further just I copy.

88:47

and paste and now call ND 91 2000 I just

88:51

put and paste here and further I put the

88:54

name suppose NDVI

88:56

say 1990 and I [snorts] add the color

88:59

later so for that I simply put the empty

89:02

and run the code so now I add the color

89:04

later to get the better visualization

89:17

Okay. So then it added this type of NDV

89:20

map. So I want to add the color. Click

89:22

on here again.

89:24

Okay. Just Okay. It also better we try

89:26

to use the same color. Suppose this

89:28

color I want to also apply in this map.

89:30

So how I can apply? Suppose this color

89:33

this color I to apply this map. So for

89:34

that click on the setting button and

89:36

click on the pen sign and copy the color

89:40

port just like copy and further

89:44

just click on here and open the setting

89:46

button

89:48

and then further uh click on the plated

89:51

click on the pen sign and paste. Okay.

89:55

and also stressing I keep the similar 98

90:00

and further apply and also import

90:05

and further just copy the variable name

90:09

this one

90:11

and it's connect with your

90:14

one and now run the code so now it show

90:20

the result to NDVI map if you check the

90:23

two time period

90:49

So you can see this is the NDVI this

90:50

type of place is the vegetation green

90:52

colors the vegetation and this is the

90:54

result for 2025 you can see

90:59

a lot of resident decrease between this

91:01

time period.

91:04

So let's discuss this type of things one

91:06

by one. How to calculate the change

91:07

detection? How to calculate the NDVI

91:10

trend. So all of things I try to

91:12

explain.

91:14

So you can see this is scenario. So this

91:15

is the map 1990 of NDVI and this is the

91:19

map 2025.

91:25

Okay. So now you also try to uh I put

91:28

the another assignment you also try. So

91:30

compute NDVI

91:33

compute the NDVI

91:36

for,000

91:41

and 2025

91:44

for your city

91:47

then add the layer this type of layer

91:49

for 20 and 2025 for your own city. Okay.

91:53

So this is another homework. [laughter]

91:56

So I always put the aw. So aw means the

92:00

homework. You can also uh a means home

92:02

you also try. Okay. When you practice

92:04

you also try to practice this type of

92:06

homework. Okay. So this is the way. So

92:10

now you can easily add all of years any

92:12

years any years you can easily add from

92:14

the NDVI. Not only for the NDVI suppose

92:17

I need the NDWI. What is the NWI? NWI is

92:22

that normalized difference water index.

92:24

Okay. mainly uh surface water we can

92:27

easily get the idea from the NDWI. So

92:30

how I can get the NWI similar way just

92:34

make a band in here. So I already

92:36

created a function if you check. So I

92:38

just create the band take a variable

92:42

NDWI

92:44

call the image

92:46

normalized

92:50

difference between two band

92:54

green band

92:56

and

92:58

band. So this is a formula about the NWI

93:01

and I rename it

93:03

as a

93:06

NDWI and also add bands put here the add

93:12

bands of NDWI.

93:15

So now what happened? So now all of

93:17

image connecting a new band of NDWI. So

93:20

if you check the image collection

93:26

all of years all of years image

93:27

collection added the new band suppose

93:29

this is the image for 1995 and if you

93:32

check it added the new band of NDWI so

93:36

now I can easily make the NWI map okay

93:39

and we can get the water body map so let

93:41

me show you the one example for water

93:43

body map suppose I want to create the

93:46

NWI map for same same here okay just I

93:49

copy the same line of code because it

93:53

okay just I put the same line of code

93:56

and paste here. So I put suppose it's a

93:59

you can put any name I put the name

94:00

suppose NDWI

94:03

and also put the NDWI.

94:06

I simply choose the band name NDWI.

94:10

Choose the band name NDWI

94:13

and I put that say ND

94:16

NDWI

94:18

2025

94:20

and ND WI 19990 and call this NI 2025

94:27

and NWI

94:29

9990.

94:31

So I add the color letter I put the

94:33

empty also put the empty. So now run the

94:36

code.

94:38

So now we simply get the another layer

94:40

of NWA

94:42

1990 and 2025.

94:50

So now we can easily get the water body

94:52

map from here from this tool layer. So

94:55

not only for that any index any index

94:58

you can compute this way for any years.

95:01

So let's try to add the more other index

95:03

because remote sensing have the lot of

95:04

index. So let's go try to add the color

95:08

map.

95:10

So I want to add the color for 990. Just

95:13

a click

95:16

and sting I keep as a 98% I keep

95:25

and further add the color. Suppose where

95:29

there is no water I would display as a

95:32

this type of color.

95:36

Okay. And g then I to display this type

95:40

of color.

95:44

So get than I to display this type of

95:45

green color.

95:48

And where is the positive value? It's a

95:51

water. I want to suppose this type of

95:53

blue color for water body and display

95:55

the water body. And I copy.

96:01

We copy it later. Just I apply

96:10

or if you want you can also change the

96:11

stressing levels. I put the stress

96:12

levels of three sigma. So stressing

96:14

level it show the different types of

96:16

value. Okay. For displaying your map.

96:20

I think this stressing level is more

96:22

better because we can easily extract the

96:23

water body as a blue color. Okay. Just I

96:27

keep it import.

96:30

further uh just I

96:34

call it

96:35

just copy the variable name

96:39

and paste after the object name for

96:42

9990.

96:45

So now add the similar color for that

96:47

2025 of NWI. Same way just click on the

96:51

pen sign

96:53

and copy

96:57

and then uh 2025 this layer I want to

97:01

add just click

97:04

I put the station with three sigma again

97:06

I put the same

97:08

and then just

97:11

sign

97:13

and apply okay and also apply

97:19

and also import.

97:22

So this thing I want to add

97:25

after the object name just I copy the

97:28

variable name and paste

97:31

after in here just I remove the empty

97:34

and then paste. Okay. So this is the way

97:36

to adding the color. So now run the

97:38

code. So now it's added the another two

97:40

map of 10 DWI

98:06

we can get it this type of

98:22

This is the map 9990 you can see lot of

98:25

water body we find out and 2025 very

98:28

less water body you can see

98:31

so this are 1990 water body map this are

98:35

2025 Okay.

98:52

Okay. Any question please

98:58

or any confusion you can ask me please.

99:09

Okay, I hope there is no problem. So

99:11

just we make a break for 10 minutes. So

99:13

after 10 minutes we'll meet again. Okay,

99:15

just make a break. Short break for 10

99:17

minutes.

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.