Skip to content

Commit af2a752

Browse files
update documentations
1 parent 032e882 commit af2a752

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/src/index.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ tempvar.attrib["_FillValue"] = -9999.
326326
In fact, `_FillValue` must have the same data type as the corresponding variable. In the case above, `tempvar` is a 32-bit float and the number `-9999.` is a 64-bit float (aka double, which is the default floating point type in Julia). It is sufficient to convert the value `-9999.` to a 32-bit float:
327327

328328
```julia
329-
tempvar.attrib["_FillValue"] = Float32(-9999.)
329+
tempvar.attrib["_FillValue"] = Float32(-9999.) # or
330+
tempvar.attrib["_FillValue"] = -9999.f0
330331
```
331332

332333

@@ -335,11 +336,8 @@ tempvar.attrib["_FillValue"] = Float32(-9999.)
335336

336337
* An attribute representing a vector with a single value (e.g. `[1]`) will be read back as a scalar (`1`) (same behavior in python netCDF4 1.3.1).
337338

338-
* NetCDF and Julia distinguishes between a vector of chars and a string, but both are returned as string for ease of use, in particular
339-
an attribute representing a vector of chars `['u','n','i','t','s']` will be read back as the string `"units"`.
339+
* NetCDF and Julia distinguishes between a vector of chars and a string, but both are returned as string for ease of use, in particular an attribute representing a vector of chars `['u','n','i','t','s']` will be read back as the string `"units"`.
340340

341341
* An attribute representing a vector of chars `['u','n','i','t','s','\0']` will also be read back as the string `"units"` (issue #12).
342342

343343

344-
<!-- LocalWords: NCDatasets jl Datasets Dataset netCDF
345-
-->

0 commit comments

Comments
 (0)