Skip to content

Commit 2002c2a

Browse files
committed
more notes
1 parent 046183b commit 2002c2a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

lib/iris/tests/unit/fileformats/netcdf/encoding_tests.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,25 +146,21 @@ Then, as regards the _Encoding ..
146146

147147
TO TEST...
148148
==========
149-
NOTE on length control:
150-
- not an API thing, it's implicit from when you create a variable
151-
- this also applies to how it loads back
152-
- BUT here there may be scope for a control attribute :
153-
154149
+++ create a dataset + write char data
155150
+++ - X assign different encodings: makes no difference
156151

157152
+++ create a dataset + write STRING data
158153
+++ - X encoding=(ascii, utf-8, utf-32, None)
159154
+++ - X withnonascii=(T, F)
160-
- X length=(long, short, none)
155+
XXXX - X length=(long, short, none)
156+
***deferred*** to layer above only
161157

162-
read string data
163-
- X encoding=(ascii, utf-8, utf-32, None)
164-
- X withnonascii=(T, F)
158+
+++ read string data
159+
+++ - X encoding=(ascii, utf-8, utf-32, None)
160+
+++ - X withnonascii=(T, F)
165161

166-
read char data (with control)
167-
- X different encodings: make no difference
162+
+++ read char data (with control)
163+
+++ - X different encodings: make no difference
168164

169165
==rethought==
170166
write strings
@@ -185,3 +181,11 @@ write char data
185181
read char data
186182
- X encodings: don't matter
187183

184+
---
185+
NOTEs on length control:
186+
not an API thing, it's implicit from when you create a variable
187+
this also applies to how it loads back
188+
BUT here there may be scope for a control attribute :
189+
"iris_string_dim" - controls width on creation + reading back
190+
191+

0 commit comments

Comments
 (0)