© Crown copyright Met Office An Introduction to Linux, PP utilities, CDO and NCL Bangkok Workshop, 26 th February– 1 st March 2013.

Slides:



Advertisements
Similar presentations
Linux+ Guide to Linux Certification, Second Edition
Advertisements

Guide To UNIX Using Linux Third Edition
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
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.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Learning basic Unix command IT 325 operating system.
Introduction A computer system consists of hardware system programs application programs.
Unix Tutorial for FreeSurfer Users Allison Stevens.
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”
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
A Guide to Unix Using Linux Fourth Edition
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
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.
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.
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Data Storage System, Model Output and Analysis Tools PRECIS Workshop Tanzania Meteorological Agency 29 th June – 3 rd July 2015.
Post Processing Tools Sylvia Murphy National Center for Atmospheric Research.
An introduction to CDO, NCL and PRECIS utilities
© Crown copyright Met Office PRECIS Hands-on Demo with IDV PRECIS Reading Workshop, August 2009.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Learning basic Unix command It 325 operating system.
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.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Operating systems Lecture #3 Modern OS characteristics.
1 Linux Commands. 2 Path You specify a file or directory by its path name:  the full, or absolute, path name or the one relative to a location. The full.
Introduction to Unix for FreeSurfer Users
Microsoft Word Objectives
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.
Tutorial of Unix Command & shell scriptS 5027
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
Lecture #3 Modern OS characteristics
Eric Shook Department of Geography Kent State University
The Linux Operating System
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
WELCOME FREESURFER COURSE ATTENDEES!
Lecture #3 Modern OS characteristics
PRECIS Hands-on Demo with IDV
Tutorial of Unix Command & shell scriptS 5027
Chapter Four UNIX File Processing.
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

© Crown copyright Met Office An Introduction to Linux, PP utilities, CDO and NCL Bangkok Workshop, 26 th February– 1 st March 2013

© Crown copyright Met Office What is Linux? Useful commands Bash PP utilties CDO NCL Useful websites Contents

© Crown copyright Met Office Tux the penguin, mascot of Linux A form of the Unix operating system. Freely downloadable from the internet. What is Linux?

© Crown copyright Met Office Directory structure / bindevhome dir1dir2 rootusr

© Crown copyright Met Office Navigating the file system cd Change Directory cd home/dir1 to get to the dir1 directory cd.. to go up one directory (parent directory) cd $HOME or cd ~ to navigate back to your personal directory no matter where you are cd - goes to the former working directory pwd Print Working Directory to display the path of the current directory

© Crown copyright Met Office List directory contents ls Lists files and directories ls -a lists all files, including hidden ones. ls -l displays the file list in long format, including file details like size, time stamp, and owner. ls -F adds / after the name for directories, an * for executables, for linked files. ls -r reverses the sort order (alphabetic or time). ls -t sorts the list by the time each file was created.

© Crown copyright Met Office Copying and renaming files cp Copy cp file1 file2 makes a copy of file1 in same directory cp file1 /dir2/ makes a copy of the file in dir2 mv To move or rename files mv file1 file001 to rename file1 to file 001 mv file001 dir2 to move file001 into dir2

© Crown copyright Met Office Deleting files and directories rm file1 removes the file. Directories mkdir dir3 makes a new directory. rmdir -r dir1 deletes the directory and the r flag is used to delete everything underneath it.

© Crown copyright Met Office Bash Some useful stuff Tab completion To copy double click with left mouse button and paste by pressing middle mouse button. Some keyboard shortcuts

© Crown copyright Met Office Regular expressions * ls e* lists all files that start with e ls *pdf lists all files that end in pdf ? ls file?.dat will list files such as file1.dat and file7.dat but will not list file001.dat

© Crown copyright Met Office Other Basic Commands catConcatenate and display lessCan move through a file when viewing it manManual touchMakes a new file clearClears the terminal screen emacsEditor picoEditor viEditor acroreadAcrobat Reader

© Crown copyright Met Office PP Utilities, CDO and NCL

© Crown copyright Met Office What are they? CDO, NCL and PRECIS utilities are tools for data analysis and visualisation. Different tool are useful for different activities e.g. CDO and PRECIS tools for analysis and NCL for visualisation. In the worksheets these tools are used together to process, analyse and visualise PRECIS output.

© Crown copyright Met Office PRECIS utilities Designed for use with PRECIS output (which is in Met Office PP format.) Can be used with Linux and Windows. Can be typed directly into the command line, or scripted. Extensive range of different utilities available, see For example – calculate the JJA mean: ppstats –H “mon>=6 and mon<=8” –o jja.mean.pp –t mean infile.pp

© Crown copyright Met Office CDO – Climate Data Operators (1) Developed by the Max Planck Institute for use with GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG data. Designed specifically for climate and NWP data analysis, there are more than 600 operators available. Can be run on Linux, Windows, MasOS and others. As with PP utilities can be typed directly into the command line, or scripted. For example – calculate the JJA mean: cdo timmean –selmon,6/8 infile.nc jja.mean.nc

© Crown copyright Met Office Free to download and documentation and support forums can be found at CDO – Climate Data Operators (2)

© Crown copyright Met Office NCL – NCAR Command Language (1) Developed by NCAR (Nation Center for Atmospheric Research) for use with GRIB 1/2, netCDF 3/4, shape files and ascii data. Free interpreted language designed for scientific data processing and visualization. Can be run on Linux, Windows, MasOS and others. Can be typed directly into the NCL command line (very time consuming), or scripted. Produces plots of publishable quality.

© Crown copyright Met Office NCL – NCAR Command Language (2) Extensive documentation and hundreds of example scripts and plots at

© Crown copyright Met Office NCL – NCAR Command Language (3) Looks more complex than it is.

© Crown copyright Met Office Using tools together The worksheets combine all three of these tools to post process and analysis PRECIS data. 1.Use PP utilities to remove rim and convert from PP to netCDF format. 2.Use CDO to analyse the netCDF data. 3.Use NCL to visualise (and process) the data.

© Crown copyright Met Office Worksheets 1 – File locations and pre-processing (into to Linux and using PP utilities.) 2a- Introduction to using CDO for analysis and NCL for visualisation (validation.) 2b- Creating future climate scenarios and analysing change (using CDO and NCL.) 3-Preparing data for GLAM using CDO.

© Crown copyright Met Office Some useful websites Doctor Bobs Lowfat Linux Getting started with Linux Unix Tutorial for beginners

© Crown copyright Met Office Questions