You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.html
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -289,7 +289,7 @@ <h2 id="dimensions-in-a-netcdf-file">Dimensions in a netCDF file</h2>
289
289
<class 'netCDF4._netCDF4.Dimension'>: name = 'lon', size = 144
290
290
</code></pre>
291
291
<p><code><atitle="netCDF4.Dimension" href="#netCDF4.Dimension">Dimension</a></code> names can be changed using the
292
-
<code>Dataset.renameDimension</code> method of a <code><atitle="netCDF4.Dataset" href="#netCDF4.Dataset">Dataset</a></code> or
292
+
<code><atitle="netCDF4.Dataset.renameDimension" href="#netCDF4.Dataset.renameDimension">Dataset.renameDimension()</a></code> method of a <code><atitle="netCDF4.Dataset" href="#netCDF4.Dataset">Dataset</a></code> or
Ignored if <code>significant_digts</code> not specified. If 'BitRound' is used, then
2677
2677
<code>significant_digits</code> is interpreted as binary (not decimal) digits.</p>
2678
2678
<p><strong><code>fill_value</code></strong>:
2679
-
If specified, the default netCDF <code>_FillValue</code> (the
2679
+
If specified, the default netCDF fill value (the
2680
2680
value that the variable gets filled with before any data is written to it)
2681
-
is replaced with this value.
2682
-
If fill_value is set to <code>False</code>, then
2683
-
the variable is not pre-filled. The default netCDF fill values can be found
2684
-
in the dictionary <code>netCDF4.default_fillvals</code>.</p>
2681
+
is replaced with this value, and the <code>_FillValue</code> attribute is set.
2682
+
If fill_value is set to <code>False</code>, then the variable is not pre-filled.
2683
+
The default netCDF fill values can be found in the dictionary <code>netCDF4.default_fillvals</code>.
2684
+
If not set, the default fill value will be used but no <code>_FillValue</code> attribute will be created
2685
+
(this is the default behavior of the netcdf-c library). If you want to use the
2686
+
default fill value, but have the <code>_FillValue</code> attribute set, use
2687
+
<code>fill_value='default'</code> (note - this only works for primitive data types). <code><atitle="netCDF4.Variable.get_fill_value" href="#netCDF4.Variable.get_fill_value">Variable.get_fill_value()</a></code>
2688
+
can be used to retrieve the fill value, even if the <code>_FillValue</code> attribute is not set.</p>
2685
2689
<p><strong><code>chunk_cache</code></strong>: If specified, sets the chunk cache size for this variable.
2686
2690
Persists as long as Dataset is open. Use <code>set_var_chunk_cache</code> to
2687
2691
change it when Dataset is re-opened.</p>
@@ -2806,6 +2810,15 @@ <h3>Methods</h3>
2806
2810
<p>return a tuple of <code><atitle="netCDF4.Dimension" href="#netCDF4.Dimension">Dimension</a></code> instances associated with this
<p>return the fill value associated with this <code><atitle="netCDF4.Variable" href="#netCDF4.Variable">Variable</a></code> (returns <code>None</code> if data is not
2819
+
pre-filled). Works even if default fill value was used, and <code>_FillValue</code> attribute
0 commit comments