Re: [CF-metadata] [cf-convention/cf-conventions] Is it possible to use cell methods for percentiles statistics estimated for more than 2 axes (25 axes) ? (#342)

2021-10-12 Thread DikraK
Closed #342.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/342*event-5450341022__;Iw!!G2kpM7uM-TzIFchu!jSt5FInd2itjU_Pdk7sJzH1z6C5IwZs_2-Jv6jhMWcECi7vxQDFBOGYhcf5qt_IQzHdNNvXvROQ$
 
This list forwards relevant notifications from Github.  It is distinct from 
cf-metad...@cgd.ucar.edu, although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
cf-metadata-unsubscribe-requ...@listserv.llnl.gov.


Re: [CF-metadata] [cf-convention/cf-conventions] Is it possible to use cell methods for percentiles statistics estimated for more than 2 axes (25 axes) ? (#342)

2021-10-12 Thread DikraK
Thanks I'll follow this discussion then.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/342*issuecomment-941105048__;Iw!!G2kpM7uM-TzIFchu!gcNUrW9jleErQ-nBbhzoyQJytX5YQxbU7offJpxsYr5f0kwsgfvOLmJyUgguN4f8mx5XdNUvZNk$
 
This list forwards relevant notifications from Github.  It is distinct from 
cf-metad...@cgd.ucar.edu, although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
cf-metadata-unsubscribe-requ...@listserv.llnl.gov.


Re: [CF-metadata] [cf-convention/cf-conventions] Is it possible to use cell methods for percentiles statistics estimated for more than 2 axes (25 axes) ? (#342)

2021-10-12 Thread Klaus Zimmermann
@DikraK you are correct that this information can at the moment not be encoded 
in the cell methods. Your request is rather timely since we are discussing 
similar issues in cf-convention/discuss#131, but no consensus on how to add 
this to the conventions has been reached yet.

If you want to put that information into your files already now, you might take 
inspiration from the (still evolving) Example 3 in cf-convention/discuss#131.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/342*issuecomment-941072250__;Iw!!G2kpM7uM-TzIFchu!n_QV1lpPxJuPeKrJT3CvscdcGrUjks7XZLtUvLi8xK0m475fg181H6wCcOlJemj91lFLqDEvNVw$
 
This list forwards relevant notifications from Github.  It is distinct from 
cf-metad...@cgd.ucar.edu, although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
cf-metadata-unsubscribe-requ...@listserv.llnl.gov.


Re: [CF-metadata] [cf-convention/cf-conventions] Is it possible to use cell methods for percentiles statistics estimated for more than 2 axes (25 axes) ? (#342)

2021-10-12 Thread DikraK
Hi @zklaus, thanks a lot for all the valuable information you provided.

I may have missed something but I still cannot find how to add the information 
on the percentile values across the 25 fields. In [Appendix 
E](https://urldefense.us/v3/__http://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html*appendix-cell-methods__;Iw!!G2kpM7uM-TzIFchu!mAcyyqA-jHzzB5z6oHE3mJBs3pQtG5BkAxHU2RwkV4e8nb-fB3viS4rnrhqamHQKMZu-SCkOukc$
 ), I can't find a function related to [percentile 
estimates](https://urldefense.us/v3/__https://en.wikipedia.org/wiki/Percentile__;!!G2kpM7uM-TzIFchu!mAcyyqA-jHzzB5z6oHE3mJBs3pQtG5BkAxHU2RwkV4e8nb-fB3viS4rnrhqamHQKMZu-boYq7A4$
 ).

I take note of the advice related to the grid and indeed I use a rotated grid, 
so I'll modify that according to your comment.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/342*issuecomment-941063007__;Iw!!G2kpM7uM-TzIFchu!mAcyyqA-jHzzB5z6oHE3mJBs3pQtG5BkAxHU2RwkV4e8nb-fB3viS4rnrhqamHQKMZu-mYVHiX8$
 
This list forwards relevant notifications from Github.  It is distinct from 
cf-metad...@cgd.ucar.edu, although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
cf-metadata-unsubscribe-requ...@listserv.llnl.gov.


Re: [CF-metadata] [cf-convention/cf-conventions] Is it possible to use cell methods for percentiles statistics estimated for more than 2 axes (25 axes) ? (#342)

2021-10-11 Thread Klaus Zimmermann
@DikraK, I think you are not calculating statistics over 25 axes, but rather 
really over only one: the axis of the ensemble. The problem is that this 
information is not apparent in your current encoding. IMHO, the best way to add 
this information would be to combine your current 25 variables into a single 
variable with an additional coordinate, i.e.
```
dimensions:
  time=UNLIMITED;
  ensemble=25;
variables:
 float time(time) ;
time:long_name = "time" ;
time:units = "2021-10-07 12:00:00" ;
time:calendar = "gregorian" ;
time:standard_name = "time" ;
time:axis = "T" ;

float pr(ensemble, time, rlon, rlat) ;
pr:grid_mapping_name = "latitude_longitude" ;
pr:coordinates = "lon lat" ;
pr:shortname = "Quantity of precipitation" ;
...
pr:standard_name = "precipitation_amount" ;
```
Then it is easy to see that you can add the percentile information using 
something like `cell_methods="ensemble: sum"`.
Note that `sum` in `cell_methods` does not necessary mean "sum", but rather 
some form of "sum or accumulation", see [CF Conventions 1.9, Appendix 
E](https://urldefense.us/v3/__http://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html*appendix-cell-methods__;Iw!!G2kpM7uM-TzIFchu!g2g_f0_WB2tm-MhehHtFacKJ7z2NUrOtKjfPX1sp507JtId2hsCZvlNeVNlmyK-tTeEzOpGSXkc$
 ).

Allow me also to comment that your use of `rlon` and `rlat` suggests the use of 
a rotated grid as is common for example in CORDEX. If this is indeed the case, 
you probably don't want to use the `latitude_longitude` grid mapping and might 
want to review [CF Conventions 1.9, Section 
5.6](https://urldefense.us/v3/__http://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html*grid-mappings-and-projections__;Iw!!G2kpM7uM-TzIFchu!g2g_f0_WB2tm-MhehHtFacKJ7z2NUrOtKjfPX1sp507JtId2hsCZvlNeVNlmyK-tTeEzN_fvvXA$
 ) and Appendix F 
[here](https://urldefense.us/v3/__http://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html*_latitude_longitude__;Iw!!G2kpM7uM-TzIFchu!g2g_f0_WB2tm-MhehHtFacKJ7z2NUrOtKjfPX1sp507JtId2hsCZvlNeVNlmyK-tTeEzCVc4oNc$
 ) and 
[here](https://urldefense.us/v3/__http://cfconventions.org/Data/cf-conventions/cf-conventions-1.9/cf-conventions.html*_rotated_pole__;Iw!!G2kpM7uM-TzIFchu!g2g_f0_WB2tm-MhehHtFacKJ7z2NUrOtKjfPX1sp507JtId2hsCZvlNeVNlmyK-tTeEzAiFtJ4M$
 ).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/342*issuecomment-940075309__;Iw!!G2kpM7uM-TzIFchu!g2g_f0_WB2tm-MhehHtFacKJ7z2NUrOtKjfPX1sp507JtId2hsCZvlNeVNlmyK-tTeEzZQfv8hY$
 
This list forwards relevant notifications from Github.  It is distinct from 
cf-metad...@cgd.ucar.edu, although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
cf-metadata-unsubscribe-requ...@listserv.llnl.gov.