Closed agstephens closed 2 years ago
Need to also check the time
units and independent variable.
Another fix applied to include time units in the string of the variable name.
But, hours are such a vast unit that precision is being lost in the test data:
(roocs) [root@localhost nappy]# ncdump -v time_bnds /root/.mini-ceda-archive/main/archive/badc/ukmo-hadobs/data/insitu/MOHC/HadOBS/HadUK-Grid/v1.0.3.0/1km/snowLying/mon/v20210712/snowLying_hadukgrid_uk_1km_mon_197101-197112.nc | grep 149
1498953, 1499673 ;
(roocs) [root@localhost nappy]# grep 49 output_01_5.csv
1.4993e+06
1.49895e+06,1.49967e+06
How to resolve?
All fixed by changing default formatter to: %.10g
so it only goes to exponent form if the overall length exceeds 10 chars (instead of 8).
Are they right? Need to check.