Commit 16a2c03
Allow expand_dims() method to support inserting/broadcasting dimensions with size>1 (#2757)
* Quarter offset implemented (base is now latest pydata-master). (#2721)
* Quarter offset implemented (base is now latest pydata-master).
* Fixed issues raised in review (#2721 (review))
* Updated whats-new.rst with info on quarter offset support.
* Updated whats-new.rst with info on quarter offset support.
* Update doc/whats-new.rst
Co-Authored-By: jwenfai <jwenfai@gmail.com>
* Added support for quarter frequencies when resampling CFTimeIndex. Less redundancy in CFTimeIndex resampling tests.
* Removed normalization code (unnecessary for cftime_range) in cftime_offsets.py. Removed redundant lines in whats-new.rst.
* Removed invalid option from _get_day_of_month docstring. Added tests back in that raises ValueError when resampling (base=24 when resampling to daily freq, e.g., '8D').
* Minor edits to docstrings/comments
* lint
* Add `Dataset.drop_dims` (#2767)
* ENH: Add Dataset.drop_dims()
* Drops full dimensions and any corresponding variables in a
Dataset
* Fixes GH1949
* DOC: Add Dataset.drop_dims() documentation
* Improve name concat (#2792)
* Added tests of desired name inferring behaviour
* Infers names
* updated what's new
* Don't use deprecated np.asscalar() (#2800)
It got deprecated in numpy 1.16 and throws a ton of warnings due to
that.
All the function does is returning .item() anyway, which is why it got
deprecated.
* Add support for cftime.datetime coordinates with coarsen (#2778)
* some docs updates (#2746)
* Friendlier io title.
* Fix lists.
* Fix *args, **kwargs
"inline emphasis..."
* misc
* Reference xarray_extras for csv writing. Closes #2289
* Add metpy accessor. Closes #461
* fix transpose docstring. Closes #2576
* Revert "Fix lists."
This reverts commit 39983a5.
* Revert "Fix *args, **kwargs"
This reverts commit 1b9da35.
* Add MetPy to related projects.
* Add Weather and Climate specific page.
* Add hvplot.
* Note open_dataset, mfdataset open files as read-only (closes #2345).
* Update metpy 1
Co-Authored-By: dcherian <dcherian@users.noreply.github.com>
* Update doc/weather-climate.rst
Co-Authored-By: dcherian <dcherian@users.noreply.github.com>
* Drop failing tests writing multi-dimensional arrays as attributes (#2810)
These aren't valid for netCDF files.
Fixes GH2803
* Push back finalizing deprecations for 0.12 (#2809)
0.12 will already have a big change in dropping Python 2.7 support. I'd rather
wait a bit longer to finalize these deprecations to minimize the impact on
users.
* enable loading remote hdf5 files (#2782)
* attempt at loading remote hdf5
* added a couple tests
* rewind bytes after reading header
* addressed comments for tests and error message
* fixed pep8 formatting
* created _get_engine_from_magic_number function, new tests
* added description in whats-new
* fixed test failure on windows
* same error on windows and nix
* Release 0.12.0
* Add whats-new for 0.12.1
* Rework whats-new for 0.12
* DOC: Update donation links
* DOC: remove outdated warning (#2818)
* Allow expand_dims() method to support inserting/broadcasting dimensions with size>1 (#2757)
* Make using dim_kwargs for python 3.5 illegal -- a ValueError is thrown
* dataset.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* dataarray.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* Add alternative option to passing a dict to the dim argument, which is now an optional kwarg, passing in each new dimension as its own kwarg
* Add expand_dims enhancement from issue 2710 to whats-new.rst
* Fix test_dataarray.TestDataArray.test_expand_dims_with_greater_dim_size tests to pass in python 3.5 using ordered dicts instead of regular dicts. This was needed because python 3.5 and earlier did not maintain insertion order for dicts
* Restrict core logic to use 'dim' as a dict--it will be converted into a dict on entry if it is a str or a sequence of str
* Don't cast dim values (coords) as a list since IndexVariable/Variable will internally convert it into a numpy.ndarray. So just use IndexVariable((k,), v)
* TypeErrors should be raised for invalid input types, rather than ValueErrors.
* Force 'dim' to be OrderedDict for python 3.5
* Allow expand_dims() method to support inserting/broadcasting dimensions with size>1 (#2757)
* use .size attribute to determine the size of a dimension, rather than converting to a list, which can be slow for large iterables
* Make using dim_kwargs for python 3.5 illegal -- a ValueError is thrown
* dataset.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* dataarray.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* Add alternative option to passing a dict to the dim argument, which is now an optional kwarg, passing in each new dimension as its own kwarg
* Add expand_dims enhancement from issue 2710 to whats-new.rst
* Fix test_dataarray.TestDataArray.test_expand_dims_with_greater_dim_size tests to pass in python 3.5 using ordered dicts instead of regular dicts. This was needed because python 3.5 and earlier did not maintain insertion order for dicts
* Restrict core logic to use 'dim' as a dict--it will be converted into a dict on entry if it is a str or a sequence of str
* Don't cast dim values (coords) as a list since IndexVariable/Variable will internally convert it into a numpy.ndarray. So just use IndexVariable((k,), v)
* TypeErrors should be raised for invalid input types, rather than ValueErrors.
* Force 'dim' to be OrderedDict for python 3.5
* Allow expand_dims() method to support inserting/broadcasting dimensions with size>1 (#2757)
* Move enhancement description up to 0.12.1
* use .size attribute to determine the size of a dimension, rather than converting to a list, which can be slow for large iterables
* Make using dim_kwargs for python 3.5 illegal -- a ValueError is thrown
* dataset.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* dataarray.expand_dims() method take dict like object where values represent length of dimensions or coordinates of dimesnsions
* Add alternative option to passing a dict to the dim argument, which is now an optional kwarg, passing in each new dimension as its own kwarg
* Add expand_dims enhancement from issue 2710 to whats-new.rst
* Fix test_dataarray.TestDataArray.test_expand_dims_with_greater_dim_size tests to pass in python 3.5 using ordered dicts instead of regular dicts. This was needed because python 3.5 and earlier did not maintain insertion order for dicts
* Restrict core logic to use 'dim' as a dict--it will be converted into a dict on entry if it is a str or a sequence of str
* Don't cast dim values (coords) as a list since IndexVariable/Variable will internally convert it into a numpy.ndarray. So just use IndexVariable((k,), v)
* TypeErrors should be raised for invalid input types, rather than ValueErrors.
* Force 'dim' to be OrderedDict for python 3.51 parent 89dddc1 commit 16a2c03
5 files changed
Lines changed: 218 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
1141 | | - | |
| 1142 | + | |
1142 | 1143 | | |
1143 | 1144 | | |
1144 | 1145 | | |
| |||
1147 | 1148 | | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | | - | |
| 1151 | + | |
1151 | 1152 | | |
1152 | | - | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1153 | 1160 | | |
1154 | 1161 | | |
1155 | 1162 | | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | 1165 | | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1159 | 1172 | | |
1160 | 1173 | | |
1161 | 1174 | | |
1162 | 1175 | | |
1163 | 1176 | | |
1164 | 1177 | | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1165 | 1198 | | |
1166 | 1199 | | |
1167 | 1200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2324 | 2324 | | |
2325 | 2325 | | |
2326 | 2326 | | |
2327 | | - | |
| 2327 | + | |
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
| |||
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | | - | |
| 2336 | + | |
2337 | 2337 | | |
2338 | | - | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
2339 | 2345 | | |
2340 | 2346 | | |
2341 | 2347 | | |
2342 | 2348 | | |
2343 | | - | |
2344 | | - | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2345 | 2357 | | |
2346 | 2358 | | |
2347 | 2359 | | |
2348 | 2360 | | |
2349 | 2361 | | |
2350 | 2362 | | |
2351 | 2363 | | |
2352 | | - | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
2353 | 2382 | | |
2354 | | - | |
2355 | | - | |
2356 | 2383 | | |
2357 | 2384 | | |
2358 | 2385 | | |
| |||
2371 | 2398 | | |
2372 | 2399 | | |
2373 | 2400 | | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | 2401 | | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
2378 | 2419 | | |
2379 | 2420 | | |
2380 | 2421 | | |
| |||
2395 | 2436 | | |
2396 | 2437 | | |
2397 | 2438 | | |
2398 | | - | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
2399 | 2445 | | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | 2446 | | |
2404 | 2447 | | |
2405 | 2448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1303 | 1304 | | |
1304 | 1305 | | |
1305 | 1306 | | |
1306 | | - | |
| 1307 | + | |
1307 | 1308 | | |
1308 | 1309 | | |
1309 | 1310 | | |
| |||
1328 | 1329 | | |
1329 | 1330 | | |
1330 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1331 | 1342 | | |
1332 | 1343 | | |
1333 | 1344 | | |
| |||
1392 | 1403 | | |
1393 | 1404 | | |
1394 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1395 | 1446 | | |
1396 | 1447 | | |
1397 | 1448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
2033 | 2054 | | |
2034 | 2055 | | |
2035 | 2056 | | |
| |||
2063 | 2084 | | |
2064 | 2085 | | |
2065 | 2086 | | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
2066 | 2134 | | |
2067 | 2135 | | |
2068 | 2136 | | |
| |||
0 commit comments