Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing CF 8.1 refering int types #425

Closed

Conversation

cofinoa
Copy link
Contributor

@cofinoa cofinoa commented Jan 19, 2023

See issue cf-convention/discuss#202 for discussion of these changes.

Complements #244 #294 #243

Release checklist

  • Authors updated in cf-conventions.adoc?
  • Next version in cf-conventions.adoc up to date? Versioning inspired by SemVer.
  • history.adoc up to date?
  • Conformance document up-to-date?

For maintainers

After the merge remember to delete the source branch.
Tags are set at the conclusion of the annual meeting; until then main always is a draft for the next version.

@@ -30,7 +30,7 @@ The units of a variable should be representative of the unpacked data.
This standard is more restrictive than the NUG with respect to the use of the **`scale_factor`** and **`add_offset`** attributes; ambiguities and precision problems related to data type conversions are resolved by these restrictions.
If the **`scale_factor`** and **`add_offset`** attributes are of the same data type as the associated variable, the unpacked data is assumed to be of the same data type as the packed data.
However, if the **`scale_factor`** and **`add_offset`** attributes are of a different data type from the variable (containing the packed data) then the unpacked data should match the type of these attributes, which must both be of type **`float`** or both be of type **`double`**.
An additional restriction in this case is that the variable containing the packed data must be of type **`byte`**, **`short`** or **`int`**.
An additional restriction in this case is that the variable containing the packed data must be of an integer type (see <<data-types>>).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Antonio, I couldn't find the target of <<data-types>> (apart from in the conformance.adoc, which is not linked in). Do we also need to put an [[data-types]] into ch02.adoc at the Data Types section?
Thanks,
David

@kmuehlbauer
Copy link

might be relevant: #374

@larsbarring
Copy link
Contributor

I think the material changes of this PR has been taken care of in PR #456 related to issue #374. @cofinoa can we close this PR?

@larsbarring
Copy link
Contributor

Closing this PR because it as been covered by other PRs.

@cofinoa cofinoa deleted the fix-int-packed-data-section branch April 8, 2024 14:42
@cofinoa cofinoa restored the fix-int-packed-data-section branch April 8, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants