Dynamic and Buoyancy Pressure A rising thermal plus… Unix basics.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

Working with Files How to create, view, copy, rename and print files.
Lab6 CPCS361 I.Mona Alshehri. Working with Files and Directories Creating files Create a file with the cat command type the command cat > name_of_file.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Introduction to Unix, DTDM, GrADS
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Understanding the Basics of Computational Informatics Summer School, Hungary, Szeged Methos L. Müller.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Systems Programming Concepts
Learning basic Unix command IT 325 operating system.
"Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence.” Anonymous.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
Brief introduction to UNIX A. Emerson CINECA, High Performance Systems.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
The UNIX development environment CS 400/600 – Data Structures.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Linux Operations and Administration
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Created by Harry H. Cheng,  2009 McGraw-Hill, Inc. All rights reserved. C for Engineers and Scientists: An Interpretive Approach Chapter 2: Getting Started.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Introduction to Programming Using C An Introduction to Operating Systems.
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
Introduction to Unix for FreeSurfer Users
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Getting started with CentOS Linux
Prepared by: Eng. Maryam Adel Abdel-Hady
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Intro to UNIX System and Homework 1
Introduction to Linux Week 0 - Thursday.
Operating Systems and Using Linux
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Dynamic and Buoyancy Pressure A rising thermal plus… Unix basics

Some Unix basics (basis of Linux and Mac OS X) The command prompt is $ (do not type it) Unix commands presented in Courier font $ ls [lists your “visible” files] $ ls -a [lists all files, including invisible] $ ls -al [lists all files, includes size & other info] $ pwd [print working directory - shows your location]

Some Unix basics (continued) $ mkdir TEST [makes a directory called “TEST”] $ cd TEST [changes directory to “TEST”] $ cd.. [moves UP in directory hierarchy] $ cd TeST [command should FAIL… Unix is usually CASE SENSITIVE – though it isn’t on Mac]

Some Unix basics (continued) $ touch crap.txt [makes an empty file] $ nedit crap.txtOR $ kwrite crap.txt [invoked Notepad-like text editor on Synoptic Lab machines] [add some text, save file and exit] $ ls -al crap.txt [see it’s there] $ cp crap.txt crap.txt.backup [make a copy with cp] $ rm crap.txt [the remove command. Asks for confirmation. Don’t type ‘y’] $ \rm crap.txt [remove without confirmation. Think before hitting ENTER!]

Some Unix basics (continued) $ mkdir BACKUP [makes a new directory] $ cp crap.txt.backup BACKUP/. [type exactly as written - there is NO space before the period] [the period means “keep the same name”] $ ls -al BACKUP/ [see a copy is in the new location] $ mkdir BACKUP/more_backup [a new subdirectory in a directory] $ cd BACKUP/more_backup [move to new subdirectory] $ cd $ pwd [cd by itself always takes you to your home directory]

Some Unix basics (continued) $ cp /home/fovell/part*. [asterisk is wild card character] [copies all files matching text pattern to your directory] $ ls part* [lists files matching pattern] $ cat part1 part2 > both_parts [concatenates files] [greater-than sign is output redirect] $ more both_parts [more lists contents, one screen at a time] [hit space bar for next screenfull, type “q” to quit]

Your Unix PATH $ cp /home/fovell/execute_me. $ execute_me - if you receive execute_me: command not found your PATH needs changing - The PATH is an environment variable that tells Unix where to find stuff, and the order in which to look $./execute_me - this forces Unix to look in the current directory for the program to run

Fortran compiler Try this command $ which ifort If you get this… we definitely need to alter your Unix environment $ ifort: Command not found

Preparation for new users [“old” users may have a.cshrc file instead] $ cd $ mv.tcshrc.tcshrc_old [mv is move command] [.tcshrc or.cshrc is a script file of commands, paths, etc., executed for every new terminal window] $ cat.tcshrc_old /home/fovell/addon.csh >.tcshrc [type exactly as shown] [greater-than sign is output redirect] $ source.tcshrc [changes to script file in present window do not take effect until “sourced”] $ which ifort [now you should see: /opt/intel/Compiler/11.1/046/bin/intel64/ifort ] $ which gradsnc [see /home/fovell/grads-1.9b4/bin/gradsnc ]

DTDM on our Synoptic Lab Linux computers Synoptic Lab computers open during business hours ONLY and printing is difficult $ cp /home/fovell/DTDM_package_linux.tar. [note space and period!] $ tar –xvf DTM_package_linux.tar $ cd DTDM $ make [makes the dtdm executable file]

Using DTDM - 2 $ dtdm < input_thermal.txt [runs model, makes output] [less-than sign provides contents of txt file to the dtdm executable] $ gradsnc -l [starts up GrADS; ga-> is GrADS prompt] ga-> open thermal.anelastic ga-> query file

Using DTDM - 3 File 1 : DTDM demo simulation Descriptor: thermal.anelastic.ctl Binary: thermal.anelastic.dat Type = Gridded Xsize = 99 Ysize = 1 Zsize = 82 Tsize = 11 Number of Variables = 17 u 82 0 horizontal velocity up 82 0 pert horizontal velocity w 82 0 vertical velocity th 82 0 potential temperature thp 82 0 pert potential temperature pi 82 0 ndim pressure pip 82 0 pert ndim pressure ppmb 82 0 pert pressure in millibars pbyc 82 0 buoyancy pressure in millibars pdyn 82 0 dynamic pressure in millibars ptot 82 0 total pressure in millibars dudtd 82 0 U acceleration - dynamic dudtb 82 0 U acceleration - buoyancy dudtt 82 0 U acceleration - total dwdtd 82 0 W acceleration - dynamic dwdtb 82 0 W acceleration - buoyancy dwdtt 82 0 W acceleration - total running dtdm model created two new GrADS files: thermal.anelastic.ctl thermal.anelastic.dat contents of thermal.anelastic.ctl shown at left

ga-> set t 6 ga-> start.gs ga-> d thp

ga-> d ppmb

ga-> c ga-> set ccolor 1 ga-> d pbyc

ga-> c ga-> set ccolor 1 ga-> d pdyn

ga-> c ga-> set ccolor 1 ga-> d w

ga-> c ga-> set gxout shaded ga-> d w ga-> set gxout contour ga-> set ccolor 1 ga-> d dwdtt ga-> scripts/cbarn.gs dwdtt is Lagrangian dw/dt, not Eulerian

ga-> c ga-> set t 9 ga-> set ccolor 1 ga-> set cint 2 ga-> d w

scripts/thermal.gs 'set mproj off' 'set display color white' 'clear' 'set grads off' 'scripts/rgbset.gs' * plot w 'set x 30 70' 'set gxout shaded' 'set clevs ' 'set ccols ' 'd w' 'scripts/cbarn.gs' 'set gxout contour'

ga-> set t 6 ga-> scripts/thermal.gs

Final cautions Make backups This command runs the model $ dtdm < input_thermal.txt This command destroys the input file! $ dtdm > input_thermal.txt

Animations made painless ga-> step.gs thp Plots field thp …with contour interval 1.0 …and steps through times 1 through 11, inclusive …hit return to proceed to the next time

Advice Don’t ask what’s the least you can do for me. Instead, ask what’s the most you can do for yourself.