[python: glob] reading all files once

ref

It is good for making file list and the list is good for handling with loop.

Follow the direction,

[Example]

import glob

file_list = glob.glob(filename_*.csv)

Explain: reading all files including ‘filename_’ and ‘.csv’. Then, put them in ‘file_list’.

[Application 1]

for file in file_list:

print(“Working on : “,file)

Then, you can see that each file is being printed.

[Application 2]

also try this,

file_list = sorted(glob.glob(filename_*.csv))

The ‘sorted’ function is so helpful to let the files list in order.

So, Simple 🙂

[NCO:ncks] extract/select depth level (temp)

ref

I have had a hard time looking for the function which can extract depth from z-axis in temperature file while analyzing climate data (CMIP5)

 

CDO (1.8.2)(my favorite tool!!!) may have the function “sellevel”, but it seems not ready to use. It just made me waste time with massive unsolved questions.

 

Besides, NCO provides a very simple method using “ncks”

 

For extracting 10th depth from temperature data.

> ncks -F -d depth,10 input.nc output.nc

-d depth: find data at “10”th axis from “depth” variable. (you can find the name of depth variable after typing “ncdmp -h filename.nc”)

input.nc: temperature data with depth level.

output.nc: output data at “10”th axis.

 

So, Simple 🙂

 

 

 

 

 

CO2 forcing observed from surface

...and Then There's Physics

I thought I would post this video illustrating the first time that a change in CO2 forcing has been observed from the ground. The paper is an Observational determination of surface radiative forcing by CO2 from 2000 to 2010 by Feldman et al. (2015). I had a quick read and as I understand it, they observed from two different sites and measured the downwelling spectrum in the infrared band. They then had to use radiative transfer models to try and remove things like seasonal variations so as to extract the change in forcing due to changing atmospheric CO2 concentrations. They detect a trend of 0.2 0.06 Wm-2 per decade.

Something to bear in mind, though, that this is not the first time that the radiative influence of increased atmospheric CO2 has been detected. Harries et al. (2001) measured – from space – a change in the…

View original post 14 more words

New result shows CO2 has almost no effect on temperature

Tallbloke's Talkshop

An article in the Daily Mail today piqued my interest. It trumpets empirical results which they say empirically confirm the theoretical CO2 greenhouse effect for the first time:

greenhouseeffect“Scientists have witnessed carbon dioxide trapping heat in the atmosphere above the United States, showing human-made climate change ‘in the wild’ for the first time.

A new study in the journal Nature demonstrates in real-time field measurements what scientists already knew from basic physics, lab tests, numerous simulations, temperature records and dozens of other climatic indicators.

They say it confirms the science of climate change and the amount of heat-trapping previously blamed on carbon dioxide.”

“These instruments, located at ARM research sites in Oklahoma and Alaska, measure thermal infrared energy that travels down through the atmosphere to the surface.

They can detect the unique spectral signature of infrared energy from CO2.

Other instruments at the two locations detect the unique signatures of…

View original post 548 more words

Penguins, Polar Bears and Sea Ice

Watts Up With That?

 

Part 4 The last of Jim Steele’s presentation “Climate Change: More Optimism, More Debate given to the IEEE Life Members. Jim Steele is the past Director of san Francisco State University’s Sierra Nevada Field Campus and author of Landscapes and Cycles: An Environmentalist’s Journey to Climate Skepticism.

View:

Part 1 Climate Sensitivity and Drought: Landscape Changes vs CO2

Part 2 Droughts and Heatwaves: Ocean Oscillations vs CO2

Part 3 Recovering Whales, Ocean Acidification, and Climate Horror Stories

View original post