| 1 |
<!-- $Header$ |
| 2 |
|
| 3 |
Purpose: Problems archive |
| 4 |
|
| 5 |
URL: |
| 6 |
http://nco.sf.net/problems_v4.2.4_2013_v4.9.9_2021.shtml |
| 7 |
http://dust.ess.uci.edu/nco/problems_v4.2.4_2013_v4.9.9_2021.shtml |
| 8 |
file:///home/zender/nco/doc/problems_v4.2.4_2013_v4.9.9_2021.shtml |
| 9 |
|
| 10 |
Usage: |
| 11 |
/usr/bin/scp ~/nco/doc/problems_v4.2.4_2013_v4.9.9_2021.shtml zender,[email protected]:/home/project-web/nco/htdocs |
| 12 |
scp -p ~/nco/doc/problems_v4.2.4_2013_v4.9.9_2021.shtml dust.ess.uci.edu:Sites/nco |
| 13 |
--> |
| 14 |
|
| 15 |
<!doctype html public "-//W3C//DTD HTML 3.2//EN"> |
| 16 |
<html> |
| 17 |
<head> |
| 18 |
<title>NCO Homepage</title> |
| 19 |
<meta name="GENERATOR" content="Mozilla/3.04Gold (X11; I; Linux 2.0.0 i686) [Netscape]"> |
| 20 |
<meta name="Author" content="Charles S. Zender"> |
| 21 |
<meta name="Keywords" content="NCO Homepage, netCDF, netCDF operator, GCM, HDF, scientific data"> |
| 22 |
</head> |
| 23 |
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#008080" alink="#FF0000"> |
| 24 |
|
| 25 |
<dt><a name="News"></a></dt> |
| 26 |
<h2>Known Problems through 2021 (version 4.9.9)</h2> |
| 27 |
|
| 28 |
<ul><b>Generic Run-time Problems:</b> |
| 29 |
|
| 30 |
<!-- http://nco.sf.net#bug_cdf5 --> |
| 31 |
<a name="bug_cdf5"></a> |
| 32 |
<li><i>netCDF CDF5 corruption:</i> |
| 33 |
netCDF libraries 4.4.0+ supports the CDF5 binary format. |
| 34 |
Unfortunately the CDF5 implementation is buggy for large (> 4 GiB) |
| 35 |
variables in library versions 4.4.0–4.6.0. |
| 36 |
We identified this netCDF CDF5 bug on 20170906. |
| 37 |
Writing CDF5 files with large variables is buggy unless there is |
| 38 |
only one such “large” variable and it is the last to be defined. |
| 39 |
If the file is an input dataset (i.e., NCO <i>reads</i> it) written |
| 40 |
by PnetCDF then the input data are fine (because PnetCDF writes CDF5 |
| 41 |
through a different mechanism than serial programs like NCO’s |
| 42 |
writer). |
| 43 |
And if the CDF5 dataset was originally written by any netCDF version |
| 44 |
4.6.1 or greater, then it is unaffected by this bug. |
| 45 |
However, a CDF5 input file with large variables written by any serial |
| 46 |
netCDF writer (like NCO) employing netCDF library 4.4.0–4.6.0, is likely |
| 47 |
corrupt and variables were silently truncated when writing it. |
| 48 |
Output files (that NCO wrote) with large variables will definitely |
| 49 |
be corrupt if NCO was linked to netCDF library version 4.4.0–4.6.0 (so |
| 50 |
upgrade to netCDF 4.6.1+ ASAP). |
| 51 |
Here are two potential workarounds for data affected by this bug: |
| 52 |
1. Re-write (using any netCDF version) original input files in |
| 53 |
netCDF4 format instead of CDF5, then process these as normal and |
| 54 |
write netCDF4 output (instead of CDF5); |
| 55 |
2. Re-compile NCO with netCDF library 4.6.1+ or later and use it to |
| 56 |
convert non-corrupt datasets to netCDF4 format, then process the |
| 57 |
data. |
| 58 |
For more information on this nasty bug, see |
| 59 |
<a href="https://github.com/Unidata/netcdf-c/issues/463">here</a> and |
| 60 |
<a href="https://github.com/Unidata/netcdf-c/pull/478">here</a>. |
| 61 |
<b>UPDATE</b>: Unidata released netCDF 4.5.0 on 20171020. |
| 62 |
Unfortunately the patch to fix the CDF5 bug was not included. |
| 63 |
<b>UPDATE</b>: Unidata released netCDF 4.6.0 on 20180124. |
| 64 |
Unfortunately the patch to fix the CDF5 bug was not included. |
| 65 |
<b>UPDATE</b>: Unidata released netCDF 4.6.1 on 20180319. |
| 66 |
netCDF version 4.6.1 includes the patch that fixes the CDF5 bug. Yay! |
| 67 |
</li> |
| 68 |
|
| 69 |
<!-- http://nco.sf.net#bug_nc4_srd --> |
| 70 |
<a name="bug_nc4_srd"></a> |
| 71 |
<li><i>netCDF4 Strided Hyperslab bug:</i> |
| 72 |
Multiple users complain that access to strided hyperslabs of |
| 73 |
netCDF4 datasets is orders of magnitude slower than expected. |
| 74 |
This occurs with NCO and also with related software like NCL. |
| 75 |
The cause appears to be that all recent versions of netCDF up |
| 76 |
to 4.3.3 access strided hyperslabs via an algorithm |
| 77 |
(in <tt>nc_get_vars()</tt>) that becomes unwieldy and error-prone |
| 78 |
for large datasets. |
| 79 |
We developed and implemented a transparent workaround (that avoids |
| 80 |
the troublesome algorithm) for the most common case which is where |
| 81 |
strides are taken in only one dimension, e.g., <tt>-d time,0,,12</tt>. |
| 82 |
With the workaround introduced in NCO 4.4.6, strided access to |
| 83 |
netCDF4 datasets now completes in nearly the same amount of time as |
| 84 |
non-strided. |
| 85 |
This workaround works transparently with any version of netCDF. |
| 86 |
We are not yet sure that we have fully and correctly diagnosed the |
| 87 |
cause nor that our workaround is always effective. |
| 88 |
Comments welcome. Updates will be posted right here. |
| 89 |
</li> |
| 90 |
|
| 91 |
<ul><b>Operator-specific Run-time Problems:</b> |
| 92 |
|
| 93 |
<!-- http://nco.sf.net#bug_ncwa_hyp_msk_wgt --> |
| 94 |
<a name="bug_ncwa_hyp_msk_wgt"></a> |
| 95 |
<li><i>Hyperslabbing masked and/or weighted variables bug:</i> |
| 96 |
Versions 4.2.4—4.6.7 of <tt>ncwa</tt> incorrectly handle |
| 97 |
masking and weighting of hyperslabbed variables. |
| 98 |
Performing these actions simultaneously causes subtle arithmetic |
| 99 |
errors (the worst kind!), unless the hyperslab happens to start |
| 100 |
with the first element of the variable. |
| 101 |
In other words, results from commands of the form |
| 102 |
<tt>ncwa -d ... -m ... </tt> and |
| 103 |
<tt>ncwa -d ... -w ... </tt> are suspect. |
| 104 |
The workaround is to downgrade to NCO 4.2.3. |
| 105 |
The solution is to upgrade to NCO 4.6.8. |
| 106 |
</li> |
| 107 |
|
| 108 |
<!-- http://nco.sf.net#bug_ncwa_pck_min_max --> |
| 109 |
<a name="bug_ncwa_pck_min_max"></a> |
| 110 |
<li><i>Minimization/maximization of packed variables bug:</i> |
| 111 |
Versions 4.3.y—4.4.5 of <tt>ncwa</tt> |
| 112 |
incorrectly handled packed variables during these operations. |
| 113 |
The two workarounds are to unpack first or to perform the |
| 114 |
statistics in single precision with the <tt>--flt</tt> option. |
| 115 |
The solution is to upgrade to NCO 4.4.6. |
| 116 |
</li> |
| 117 |
|
| 118 |
<!-- http://nco.sf.net#bug_ncra_dbl_pck_mss --> |
| 119 |
<a name="bug_ncra_dbl_pck_mss"></a> |
| 120 |
<li><i>Promoting packed records with missing values bug:</i> |
| 121 |
Versions 4.3.X—4.4.5 of <tt>ncra</tt> could produce (wildly) |
| 122 |
inaccurate statistics when promoting (e.g., to double- from |
| 123 |
single-precision) variables that are packed and that have missing |
| 124 |
values. |
| 125 |
The two workarounds are to unpack first or to perform the |
| 126 |
statistics in single precision with the <tt>--flt</tt> option. |
| 127 |
The solution is to upgrade to NCO 4.4.6. |
| 128 |
</li> |
| 129 |
|
| 130 |
<!-- http://nco.sf.net#bug_cnk_hyp --> |
| 131 |
<a name="bug_cnk_hyp"></a> |
| 132 |
<li><i>Chunking while hyperslabbing bug:</i> |
| 133 |
Versions 4.3.X—4.4.4 of most operators could send incorrect |
| 134 |
chunking requests to the netCDF library, resulting in failures. |
| 135 |
This occurred only while simultaneously hyperslabbing. |
| 136 |
The solution is to upgrade to NCO 4.4.5. |
| 137 |
</li> |
| 138 |
|
| 139 |
<!-- http://nco.sf.net#bug_ncwa_mask_condition --> |
| 140 |
<a name="bug_ncwa_mask_condition"></a> |
| 141 |
<li><i><tt>ncwa</tt> mask condition bug:</i> |
| 142 |
All versions through 4.4.3 of <tt>ncwa</tt> could return incorrect |
| 143 |
mask values for negative numbers. |
| 144 |
Thanks to Keith Lindsay for report, and Henry Butowsky for the fix. |
| 145 |
Prior to this fix, the <tt>ncwa lexer</tt> would drop the negative |
| 146 |
sign, if any, from the comparators appearing in the mask condition, |
| 147 |
e.g., <tt>ncwa --mask_condition "lat < -20"</tt> was parsed as |
| 148 |
<tt>"lat < 20"</tt> not <tt>"lat < -20"</tt>. |
| 149 |
Hence, users of <tt>ncwa --mask_condition</tt> (or of <tt>-B</tt>) |
| 150 |
should upgrade. NB: The <tt>-m -M -T</tt> form of <tt>ncwa</tt> |
| 151 |
masking is/was not buggy. |
| 152 |
Thus the workaround is to use the <tt>-m -M -T</tt> form |
| 153 |
of <tt>ncwa</tt> masking, while the long-term solution is to upgrade |
| 154 |
to NCO 4.4.4+. |
| 155 |
</li> |
| 156 |
|
| 157 |
<!-- http://nco.sf.net#bug_ncra_no_fl_close --> |
| 158 |
<a name="bug_ncra_no_fl_close"></a> |
| 159 |
<li><i><tt>ncra</tt>, <tt>ncea</tt>, and <tt>ncrcat</tt> file close bug:</i> |
| 160 |
Versions 4.3.9—4.4.0 of <tt>ncra</tt>, <tt>ncea</tt>, |
| 161 |
and <tt>ncrcat</tt> failed to correctly close and optionally remove |
| 162 |
input files. |
| 163 |
This could cause NCO to exceed system limits on the maximum number of |
| 164 |
open files when hundreds-to-thousands of input files were specified |
| 165 |
per NCO invocation. |
| 166 |
The exact failure point is OS-dependent (NCO commands on Mac OS X 10.9 |
| 167 |
would fail when processing more than 256 files at a time). |
| 168 |
This is embarassing because NCO has always been designed to work with |
| 169 |
arbitrary numbers of input files and we want power users to be |
| 170 |
comfortable running it on hundreds of thousands of input files. |
| 171 |
The workaround is to avoid versions 4.3.9—4.4.0, while the |
| 172 |
long-term solution is to upgrade to NCO 4.4.1+. |
| 173 |
</li> |
| 174 |
|
| 175 |
<!-- http://nco.sf.net#bug_ncra_mro_mss_val --> |
| 176 |
<a name="bug_ncra_mro_mss_val"></a> |
| 177 |
<li><i><tt>ncra</tt> MRO missing value bug:</i> |
| 178 |
Versions 4.3.6—4.3.9 of <tt>ncra</tt> could treat missing values |
| 179 |
incorrectly during double-precision arithmetic. |
| 180 |
A symptom was that missing values could be replaced by strange numbers |
| 181 |
like, well, infinity or zero. |
| 182 |
This mainly affects <tt>ncra</tt> in MRO (multi-record output) mode, |
| 183 |
and the symptoms should be noticeable. |
| 184 |
The workaround is to run the affected versions of ncra using the |
| 185 |
<tt>--flt</tt> switch, so that single-precision floating point numbers |
| 186 |
are not promoted prior to arithmetic. |
| 187 |
The solution is to upgrade to NCO 4.4.0+. |
| 188 |
</li> |
| 189 |
|
| 190 |
<!-- http://nco.sf.net#bug_ncwa_lmt --> |
| 191 |
<a name="bug_ncwa_lmt"></a> |
| 192 |
<li><i><tt>ncwa</tt> hyperslabbing while averaging bug:</i> |
| 193 |
Versions 4.3.3—4.3.5 of <tt>ncwa</tt> could return incorrect |
| 194 |
answers when user-specified hyperslabs were simultaneously extracted. |
| 195 |
In such cases, hyperslab limits were not consistently applied. |
| 196 |
This could produce incorrect answers that look correct. |
| 197 |
This bug only affected hyperslabbed statistics (those produced |
| 198 |
by simultaneously invoking <tt>-a</tt> and <tt>-d</tt> switches); |
| 199 |
“global averages” were unaffected. |
| 200 |
We urge all <tt>ncwa</tt> users to upgrade to NCO 4.3.6+. |
| 201 |
</li> |
| 202 |
|
| 203 |
<!-- http://nco.sf.net#bug_ncpdq_upk --> |
| 204 |
<a name="bug_ncpdq_upk"></a> |
| 205 |
<li><i><tt>ncpdq</tt> unpacking bug with auxiliary coordinates:</i> |
| 206 |
Versions 4.3.2–4.3.3 of <tt>ncpdq</tt> did not correctly |
| 207 |
store unpacked variables. |
| 208 |
These versions unpacked (when specified with <tt>-U</tt> or <tt>-P |
| 209 |
upk</tt>) the values, but inadvertently stored their original packing |
| 210 |
attributes with the unpacked values. |
| 211 |
This would lead further operators to assume that the values were still |
| 212 |
packed. |
| 213 |
Hence consecutive operations could lead to incorrect values. |
| 214 |
Fixed in version 4.3.4. |
| 215 |
All <tt>ncpdq</tt> users are encouraged to upgrade. |
| 216 |
NB: this bug did not affect the other arithmetic operators which |
| 217 |
unpack data prior to arithmetic. |
| 218 |
</li> |
| 219 |
</ul> |
| 220 |
|
| 221 |
<ul><b>Platform-specific Run-time Problems:</b> |
| 222 |
No known platform-specific problems with recent releases. |
| 223 |
</ul> |
| 224 |
|
| 225 |
<hr></p> |
| 226 |
|
| 227 |
</body> |
| 228 |
</html> |