do any one have a fortran code to convert asci to netcdf?

i have ascii format like this

day lat lon tem sal --- 0m depth
-----------------
----------------
day lat lon tem sal --- 10m depth
------------------
----------------
and so on