Since 2011 I work at the technical department of Vortex, in Barcelona, modelling the wind.
Academic:
Publications:
- Campmany, E., Grainger, R. G., Dean, S. M., and Sayer, A. M.: Automatic detection of ship tracks in ATSR-2 satellite imagery, Atmos. Chem. Phys., 9, 1899-1905, 2009.
- Campmany, E., J. Bech, Y Sola, J. Rodriguez, J. Lorente: A comparison of total precipitable water measurements from radiosonde and sunphotometers. Atmos. Res. 97 (3) 385-392, 2010.
- Sola, Y., J. Lorente, E. Campmany, X. de Cabo, J. Bech, A. Redano, J.A. Martinez-Lozano, M.P. Utrillas, L. Alados-Arboledas, F.J. Olmo, J.P. Diaz, F.J. Exposito, V. Cachorro, M. Sorribas, A. Labajo, J.M. Vilaplana, A.M. Silva, and J. Badosa: Altitude effect in UV radiation during the Evaluation of the Effects of Elevation and Aerosols on the Ultraviolet Radiation 2002 (VELETA-2002) field campaign. J. Geophys. Res., 113, D23202, doi:10.1029/2007JD009742, 2008.
- Sayer, A. M., Poulsen, C. A., Arnold, C., Campmany, E., Dean, S., Ewen, G. B. L., Grainger, R. G., Lawrence, B. N., Siddans, R., Thomas, G. E., and Watts, P. D.: Global retrieval of ATSR cloud parameters and evaluation (GRAPE): dataset assessment Atmos. Chem. Phys., 11, 3913-3936, doi:10.5194/acp-11-3913-2011, 2011.
- Poulsen, C. A., Watts, P. D., Thomas, G. E., Sayer, A. M., Siddans, R., Grainger, R. G., Lawrence, B. N., Campmany, E., Dean, S. M., and Arnold, C.: Cloud retrievals from satellite data using optimal estimation: evaluation and application to ATSR, Atmos. Meas. Tech. Discuss., 5, 1889-1910, doi:10.5194/amt-5-1889-2012, 2012.
- Bulgin, C. E., P. I. Palmer, G. E. Thomas, C. P. G. Arnold, E. Campmany, E. Carboni, R. G. Grainger, C. Poulsen, R. Siddans, and B. N. Lawrence: Regional and seasonal variations of the Twomey indirect effect as observed by the ATSR-2 satellite instrument, Geophys. Res. Lett., 35, L02811, doi:10.1029/2007GL031394, 2008
- Marín M. J., Y. Sola, F. Tena, M. P. Utrillas, E. Campmany, X. de Cabo, J. Lorente and J. A. Martínez-Lozano: The UV index in the Spanish Mediterranean Coast, Photochem. Photobiol. 81, 659-665, 2005.
|
Bash tips and tricks:
Text manipulation:
# Delete return carriage
awk '{sub(/\x0d/,"");print}'
# Delete empty lines
sed '/^$/d'
# Delete blank lines with spaces
sed '/^ *$/d'
# Delete N first characters
cut -c N-
# Delete 1st col with diff length (tabs)
cut -f 2-$NF
# Skip header with n lines
sed 1,nd
# Replace multiple spaces by tabs
tr -s " " "\t"
# Use value of variable
file=${!num}
# Substring
substring=${string:10:9}
# Uppercase to lowercase
awk {'print tolower($_)'}
Numerical calculation:
# 2 digit number loop (bash)
for i in {01..99}
# Numerical index loop
num=$[$num + 1]
# Sum all values in a row
awk '{for (i=1; i<=NF; i++) sum[NR]+= $i;
print sum[NR]}'
# Print sum and average of 1st col:
awk '{ s += $1 } END { print s, s/NR }
# Find max and min 1st col
awk 'NR == 1 {m=$1 ; p=$1}
$1 >= m {m = $1}
$1 <= p {p = $1}
END { print "Max = " m, " Min = " p }
# Round or truncate
echo .6 | awk '{printf "%0.f %d\n",$1,$1}'
# Read (H)H:MM in 2nd col
awk 'sub(/:/,"") {printf "%04d \n",$2}'
# Transform YYYYMMDD to JJJ
date -d "YYYYMMDD" +%j
# Loop over time
startdate=YYYYMMDD
finaldate=yyyymmdd
tday=$startdate
while [ $tday -lt $finaldate ]; do
tday=$(date +%Y%m%d -d "$tday 1 day")
done
more...
|