How to change precision of nc file
Added by Tanmoyee Bhattacharya almost 7 years ago
I have a nc file containing lat lon precipitation and day.I want to increase precision of rainfall values.How to do it?
Replies (4)
RE: How to change precision of nc file - Added by Karin Meier-Fleischer almost 7 years ago
Hi Tanmoyee,
what do you mean with 'increase precision of rainfall values'? Do you want to interpolate the data from a coarse grid to a higher resolution grid?
Than have a look at the documentation about the remap operators.
-Karin
RE: How to change precision of nc file - Added by Tanmoyee Bhattacharya almost 7 years ago
No sir Idon't want to interpolate.My rainfall values are in float.I want to increase it's precision.Or decimal number by -b 32 or - 64.But how I write it?
RE: How to change precision of nc file - Added by Tanmoyee Bhattacharya almost 7 years ago
Tanmoyee Bhattacharya wrote:
No sir Idon't want to interpolate.My rainfall values are in float.I want to increase it's precision.Or decimal number by -b 32 or - 64.But how I write it?
RE: How to change precision of nc file - Added by Karin Meier-Fleischer almost 7 years ago
To write the output to 64-bit float values which CDO uses internally use the -b option.
-b <nbits>
format nbits --------------------------------------- grb1,grb2 P1-P24 nc1,nc2,nc4,nc4c I8/I16/I32/F32/F64 grb2,srv,ext,ieg F32/F64
cdo -b 64 -copy infile outfile
-Karin