Comments (4)
One of our colleagues tested and compared cdos with icclim & below were the findings:
ESGF-Data is stored at 32bit floating point precision (~9 digits).
Our tests suggests, that CDO's will do calculations at a 64bit precision.
This leads to a more accurate result.
(e.g. if a mean value is calculated over a long period of time, the values can
add up to a large number, that might be problematic to handle at 32bit)
On the downside, going from 32 to 64bit can add noise to the data, as the precise values are not known.
ICCLIM uses the netCDF4 library. This library stores the data in a 32bit array.
At the moment, ICCLIM is not changing the dtype of the array and does
the calculations at 32bit.
This leads to rounding errors and especially if peak over threshold test are applied,
the results can differ.
Our suggestions:
- Even through the data is stored at 32bit it makes sense to do calculations at 64bit.
- As the data is only stored at 32bit it would be advisable to round the data before a peak over threshold test is applied. This would make sure that numeric noise does not affect the results.
from icclim.
It is indeed a very good suggestion, it is much appreciated.
I will make the modifications to the code in this sense for a next icclim release.
Christian
On 14 Sep 2016, at 10:31, armellereca [email protected] wrote:
One of our colleagues tested and compared cdos with icclim & below were the findings:
ESGF-Data is stored at 32bit floating point precision (~9 digits).
Our tests suggests, that CDO's will do calculations at a 64bit precision.
This leads to a more accurate result.
(e.g. if a mean value is calculated over a long period of time, the values can
add up to a large number, that might be problematic to handle at 32bit)
On the downside, going from 32 to 64bit can add noise to the data, as the precise values are not known.ICCLIM uses the netCDF4 library. This library stores the data in a 32bit array.
At the moment, ICCLIM is not changing the dtype of the array and does
the calculations at 32bit.This leads to rounding errors and especially if peak over threshold test are applied,
the results can differ.Our suggestions:
- Even through the data is stored at 32bit it makes sense to do calculations at 64bit.
- As the data is only stored at 32bit it would be advisable to round the data before a peak over threshold test is applied. This would make sure that numeric noise does not affect the results.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #24 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AG-dyvDULWRHIYLLfXIOGPMGkrT2fY06ks5qqCFFgaJpZM4J4DoL.
from icclim.
- Floating is shown to have accurate precision for the counting-days indices since result is an integer number.
- An issue that has been raised during clipc-icclim validation between cerfacs and cmcc: passing from 64bit to 32bit increases file size which in case of online portal and services should be avoided if not necessary.
from icclim.
Only the calculations will be modified to be done in 64-bit, the results will still be stored as 32-bits.
On 11 Oct 2016, at 19:18, Milka Radojevic [email protected] wrote:
- Floating is shown to have accurate precision for the counting-days indices since result is an integer number.
- An issue that has been raised during clipc-icclim validation between cerfacs and cmcc: passing from 64bit to 32bit increases file size which in case of online portal and services should be avoided if not necessary.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub #24 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AG-dyok6LPjXHalh4GXscGbc1N8WNdyUks5qy8T0gaJpZM4J4DoL.
from icclim.
Related Issues (20)
- icclim cannot deal with precipitation unit (and variable name) from E-OBS dataset HOT 4
- BUG: dask auto rechunking fails HOT 2
- ENH: Add documentation for generic indices
- ENH: Add missing ECAD indices
- MAINT: Upgrade to xclim 0.38 HOT 1
- ENH: Add generic indicator to the generated API.
- BUG: RuntimeWarning: All-NaN slice encountered HOT 2
- [enh] Frequency generated metadata could be templated with jinja
- FIX: TNx produces TNn
- BUG: Unit handling for temperature difference indices HOT 4
- BUG: Problem with kg m-2 s-1 units for FractionOfTotal indicators HOT 10
- ENH: migrate to project.toml
- icclim 6.2.0 is not compatible with xclim 0.42.0 HOT 8
- Preferred citation? HOT 2
- When version number is too large e.g. `v6.3.0.dev`, the generated logo is cropped
- ENH: Automate release process to pipy/conda-forge HOT 1
- BUG: time coordinate not properly set to the middle of the sampling period HOT 3
- DOC: Example of thresholds functionality? HOT 2
- QUERY: Multiple line output from index calculation HOT 1
- Compatibility with xclim 0.44 and 0.45 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icclim.