⇐ ⇒

[CF-metadata] Decibel units in CF standard names

From: Martin Juckes - UKRI STFC <martin.juckes>
Date: Mon, 5 Nov 2018 09:32:59 +0000

Dear Jonathan,


The discussion of a machine-readable document with details of rules related to specific standard names is here: https://cf-trac.llnl.gov/trac/ticket/153 . It has been quiet for some time. The dB issues could be covered there, as you say. There is a difference in that the rules discussed in ticket 153 are about specifying what needs to be in the data file, so that it is possible to check that file meta-data is as complete as intended by the convention. Your suggestion would entail adding information that would not be in the data file. There are, however, some other issues that need tidying up.


You also suggest that alternative reference levels could be specified in an attribute, but that does not appear to be allowed by current standard name definitions, e.g. "Sound intensity is the sound energy per unit time per unit area. Sound intensity level in water is expressed on a logarithmic scale with reference to a sound intensity of 6.7e-19 W m-2. LI = 10 log10(I/I0) where LI is sound intensity level, I is sound intensity and I0 is the reference sound intensity." for sound_intensity_level_in_water states what the level is and does not indicate any attribute that might be used for for a different level. If the data provider uses a different level and encodes the information in an attribute of his choice it will create ambiguity, with applications tending to ignore the additional information and humans reading the file perhaps seeing it. If you believe that alternative reference levels should be possible, then surely we need a mechanism in the convention to specify them, and adjustment to descriptions su
ch as the above to draw attention to the possibility.


It is true that dB is dimensionless, like "1", but we would create huge confusion if dB data values were multiplied by 100 and presented as "%" ... a sound_intensity_level_in_water with a value of 25% might be technically equivalent to 0.25dB, but not very useful to users. I'm not sure how to deal with this, but I'm not comfortable with the idea that dB is fully equivalent to "1" as a unit.


>From another perspective dB is like distance and time in that the user often needs to know a reference point to make full sense of the data. For time, CF supplies the additional information through the "since ..." construct (perhaps qualified with an additional calendar attribute), for distance the datum can be given in a grid mapping construct. For dB, CF does not currently provide a place for this information.


regards,

Martin

________________________________
From: CF-metadata <cf-metadata-bounces at cgd.ucar.edu> on behalf of Jonathan Gregory <j.m.gregory at reading.ac.uk>
Sent: 04 November 2018 17:03
To: cf-metadata at cgd.ucar.edu
Subject: [CF-metadata] Decibel units in CF standard names

Dear Martin

Your points are good ones and have been raised before. More than once we have
talked about maintaining a CF version of the udunits definition to include dB
and sverdrup, or ask udunits to add them (if they're not there). dB is a dimen-
sionless unit, equivalent to 1. I suggest that dBZ should be changed to dB,
as I don't think we ought to have several of them. I believe that the default
reference levels are mostly conventional and stated in the definitions of the
standard name, as you say. They can be overridden by supplying a size-one or
scalar coordinate variable. You have previously suggested an xml table to
contain more information about the definition of standard names, haven't you?
It seems to me that an arrangement like that would be the right place to store
the default reference levels and scale factor in a machine-readable way.

Best wishes

Jonathan

----- Forwarded message from Martin Juckes - UKRI STFC <martin.juckes at stfc.ac.uk> -----

> Date: Tue, 30 Oct 2018 13:42:13 +0000
> From: Martin Juckes - UKRI STFC <martin.juckes at stfc.ac.uk>
> To: "CF-metadata (cf-metadata at cgd.ucar.edu)" <cf-metadata at cgd.ucar.edu>
> Subject: [CF-metadata] Decibel units in CF standard names
>
> Hello All,
>
>
> The CF standard names have several variables using decibels ("dB") as units, and one using "decibels of Z (dBZ)":
>
> sound_intensity_level_in_air 1e-12 W m-2 10 log10(I/I0)
> sound_intensity_level_in_water 6.7e-19 W m-2 10 log10(I/I0)
> sound_pressure_level_in_air 2e-5 Pa 20 log_10(p/p0)
> sound_pressure_level_in_water 1e-6 Pa 20 log_10(p/p0)
> equivalent_reflectivity_factor 1 mm6 m-3 10 log_10(Z/Z0)
>
>
> Each has a different reference level, and two use an additional factor two in the definition of the decibel level.
>
>
> There are a few issues here, the main one is that "dB" is not a valid Udunits string. There is a secondary point that the details of the definitions are not easily available to software reading the files.
>
>
> Where Udunits does support decibels, it is units such as dBZ, dBW for which a specific reference value is defined. As all these variables have different reference values, that would require 4 new units.
>
>
> The reference values are currently specified within the standard name description. It maattry make sense to add explicit attributes so that this information can be made more accessible to users and software reading the file. E.g. "decibel_reference_level" with the name of a scalar variable holding the reference value (specifying standard name, units and value) and "decibel_scale_factor" set to "10" or "20". With these modifications it would be possible to compute the power/intensity etc from the decibel parameter.
>
>
> regards,
>
> Martin
>
> _______________________________________________
> CF-metadata mailing list
> CF-metadata at cgd.ucar.edu
> http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata

----- End forwarded message -----
_______________________________________________
CF-metadata mailing list
CF-metadata at cgd.ucar.edu
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Received on Mon Nov 05 2018 - 02:32:59 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:43 BST

⇐ ⇒