- What problems are you facing? What would you like to do?
- How to become an expert in scientific computing
- How far did you get on Terminus?
- Some important commands
- Reading in data files and making simple plots in R
1 June 2016
I've talked to your mentors to find out what computing skills you might need to learn for your projects. Here are some things they mentioned:
What would you like to be able to do that isn't on this list?
Have you encountered any problems in your use of computers here at Penn State?
Practice, practice, practice! But seriously,
Did anyone reach Paradise?
Where did you get stuck?
| Command | What it does |
|---|---|
ls |
LiSt the files and folders in a directory |
cd |
Change Directory |
pwd |
Present Working Directory |
mkdir |
MaKe DIRectory |
rm |
ReMove files and folders (careful – there's no undo!) |
cp |
CoPy files from one place to another |
mv |
MoVe files from one place to another |
more |
Look at the contents of text files (less doesn't work on SCRiM systems) |
woju from VNC (woju.scrim.psu.edu:5999)Places > Home FolderApplications > System Tools > Terminalls nano scrim_text more scrim_text mkdir scrim_folder ls mv scrim_text scrim_folder/ cd scrim_folder ls cd .. rm -rf scrim_folder ls
We use the programming language R a lot in SCRiM. R is
We've published a free online textbook about R: http://leanpub.com/raes
In your Web browser, visit https://r.scrim.psu.edu/ and log in
Some key commands:
download.fileread.table or read.csvHave a look at http://cdiac.ornl.gov/trends/co2/sio-mlo.html
We can download and plot the data from this page with the following commands:
download.file("http://cdiac.ornl.gov/ftp/trends/co2/maunaloa.co2",
"mauna_loa_co2.txt")
data <- read.table("mauna_loa_co2.txt", header = TRUE,
row.names = NULL, skip = 14, nrows = 51,
na.strings = "-99.99")
plot(data[, 1], data[, 13], xlab = "Year",
ylab = "Carbon dioxide concentration [ppmv]",
main = "Mauna Loa")
Some files that Claudia is working with: http://www1.ncdc.noaa.gov/pub/data/cmb/ersst/v4/ascii/