Project

General

Profile

Regarding :eca_r95p Very wet days w.r.t. 95th percentile... » R95p.ksh

Ksh script - jyoti lodha, 2020-04-25 14:56

 
#!/bin/ksh

infile=2007-2010_ERA_Daily.nc
times=$(cdo -s showyear $infile)

for year in ${times}
do
cdo -ydaypctl,95 -selyear,$year $infile -ydaymin $infile -ydaymax $infile day95_${year}.nc

cdo -gec,1 -selyear,$year $infile wetday_${year}.nc

cdo eca_r95p -selyear,$year wetday_${year}.nc day95_${year}.nc fd_${year}.nc

done



exit



(1-1/2)