How can we derive Intensity-duration-frequency relation, suppose we have daily rainfall data series? (in absence of hourly or sub-hourly rainfall observations)
Probably that will depend on the temporal scale of your IDF relations. Are you interested in sub-daily time scales? In that case you might need to downscale/ disggregate your daily rainfall data to hourly data. For that purpose, I recall the answer of Demetris Koutsoyiannis to a similar question on RG: "You may try the MuDRain or the Hyetos software, depending on the availability of data. The first generates hourly data close to reality, the second generates just plausible hourly values. The software is free and available online--see links below. See also the publications whose links are shown in the same sites." Subsequenty you can construct IDF curves using the downscaled data.
If I have hourly data of precipitation but its for only 2.5 years and maximum its zero. My question to is minimum how much duration data needed for above said software.
if you have used can you please let me know the input that require to run these softwares.
I haven't used this software myself, but as you can see on the website you need daily and (if available) hourly rainfall data as input. The time period should preferably be as long as possible, but at least you would like to include some natural variability (a couple of years) to enable the generation of robust results. As a test you might split your 2.5 year data set into two periods: one for set-up/ calibration and one for validation.