Annual frost days calculation
Added by DEEPAK PRAJAPAT over 6 years ago
I have daily minimum temperature netcdf data of 5 years. I want to calculate the annually/monthly frequency of frost days at each grid. I tried using following command-
cdo eca_fd tasmin_WAS-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_IITM-RegCM4-4_v5_day_19510101-19551231.nc fd.nc
but the outfile contains the total frequency of frost days in 5 years at each grid. here I have attached the output file "fd.nc".
Replies (3)
RE: Annual frost days calculation - Added by Karin Meier-Fleischer over 6 years ago
Hi Deepak,
for annual frequency of frost days you can select each single year, compute the eca_fd and save the data to single files which have to be merged later.
Using a KSH-script:
#!/bin/ksh infile=tasmin_WAS-44_CNRM-CERFACS-CNRM-CM5_historical_r1i1p1_IITM-RegCM4-4_v5_day_19510101-19551231.nc times=$(cdo -s showyear $infile) for year in ${times} do cdo eca_fd -selyear,$year $infile fd_${year}.nc done cdo mergetime fd_*.nc fd.nc exit
-Karin
RE: Annual frost days calculation - Added by DEEPAK PRAJAPAT over 6 years ago
How I can find such othrer scripts (KSH-script) related to extreme climate?
RE: Annual frost days calculation - Added by Karin Meier-Fleischer over 6 years ago
Sorry, we don't provide such scripts, this was just a short example how to do it. You have to write them yourself.
-Karin