Ncar Command Language Tutorial: https://bit.ly/2Xnarp3
NCL - addfile function (Ncar Command Language): • NCL - addfile function (Ncar Command Langu...
Install NCL (NCar Command Language) in Windows: • Install NCL (NCar Command Language) in Win...
Do While || #Loop_in_NCL || Ncar Command Language
===
"do loops" in #NCL are the same as those in Fortran except that the optional stride must always be positive. The components of the loop include the familiar identifier (do n...), a scalar start expression (do n=0...), a scalar end expression (do n = 0, nfiles-1), and, optionally, a stride do n=0, nfiles-1,4). Note: there is a space between the "end" and the "do" in NCL: (end do)! Second note: remember that array indexing in NCL(#Ncar_Command_Language) begins with a 0 instead of a 1.
Conservations:
I'm Sohrab from AgriMetSoft. Today I want to show Loops in NCL.
One of the useful loops in NCL is "do-while".
OK. Let's start it, for a "do-while", firstly, you should define a variable. I define an integer variable with the name of "i".
You should write "do" then put a space and write "while". Now In front of "while" you should write a logical expression, like this. The loop will work up to the logical expression is false. If it's true the loop will work. You can simply try it.
After this line, you can write any code up to "end do".
You should change the value of the "i" variable before "end do"
All right! That's finished.
Thank you for watching this video. Please like this video and subscribe to the channel. Have a great time. See you in the next video, Bye
Tags:
loop in ncl,ncl,ncar command language (ncl),ncar command language loop,ncar command language tutorial,ncar command language,ncar command language examples,ncar command language functions,ncar command language addfile,ncl tutorial,ncl in cygwin,install ncl in windows,ncl in windows,ncl tutorial for beginners,ncl loop,while loop in ncl,loops in ncar command language,do while loop in ncl,do while in ncl,install ncl in cygwin,ncl codes,ncl examples,ncl for
Информация по комментариям в разработке