Commit 7daad4f
Implement interp for interpolating between chunks of data (dask) (#4155)
* Implement interp for interpolating between chunks of data (dask)
* do not forget extra points at the end
* add tests
* add whats-new comment
* fix isort / black
* typo
* update pull number
* fix github pep8 warnigns
* fix isort
* clearer arguments in _dask_aware_interpnd
* typo
* fix for datetimelike index
* chunked interpolation does not work for high order interpolation (quadratic or cubic)
* fix whats new
* remove a useless import
* use Variable instead of InexVariable
* avoid some list to tuple conversion
* black fix
* more comments to explain _compute_chunks
* For orthogonal linear- and nearest-neighbor interpolation, the scalar interpolation can also be done sequentially
* better detection of Advanced interpolation
* implement support of unsorted interpolation destination
* rework the tests
* fix for datetime index (bug introduced with unsorted destination)
* Variable is cheaber that DataArray
* add warning if unsorted
* simplify _compute_chunks
* add ghosts point in order to make quadratic and cubic method work in a chunked direction
* black
* forgot to remove an exception in test_upsample_interpolate_dask
* fix filtering out-of-order warning
* use extrapolate to check external points
* Revert "add ghosts point in order to make quadratic and cubic method work in a chunked direction"
* Complete rewrite using blockwise
* update whats-new.rst
* reduce the diff
* more decomposition of orthogonal interpolation
* simplify _dask_aware_interpnd a little
* fix dask interp when chunks are not aligned
* continue simplifying _dask_aware_interpnd
* update whats-new.rst
* clean tests
Co-authored-by: Alexandre Poux <[email protected]>1 parent d514b12 commit 7daad4f
File tree
4 files changed
+272
-79
lines changed- doc
- xarray
- core
- tests
4 files changed
+272
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | 547 | | |
557 | 548 | | |
558 | 549 | | |
| |||
617 | 608 | | |
618 | 609 | | |
619 | 610 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | 611 | | |
625 | 612 | | |
626 | 613 | | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
652 | 635 | | |
653 | | - | |
| 636 | + | |
654 | 637 | | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
663 | 647 | | |
664 | 648 | | |
665 | 649 | | |
| |||
706 | 690 | | |
707 | 691 | | |
708 | 692 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
715 | 706 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
720 | 736 | | |
721 | | - | |
722 | | - | |
723 | | - | |
| 737 | + | |
724 | 738 | | |
725 | 739 | | |
726 | 740 | | |
| |||
751 | 765 | | |
752 | 766 | | |
753 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3147 | 3147 | | |
3148 | 3148 | | |
3149 | 3149 | | |
3150 | | - | |
| 3150 | + | |
| 3151 | + | |
3151 | 3152 | | |
3152 | 3153 | | |
3153 | 3154 | | |
| |||
3158 | 3159 | | |
3159 | 3160 | | |
3160 | 3161 | | |
| 3162 | + | |
| 3163 | + | |
3161 | 3164 | | |
3162 | 3165 | | |
3163 | 3166 | | |
| |||
3185 | 3188 | | |
3186 | 3189 | | |
3187 | 3190 | | |
3188 | | - | |
3189 | | - | |
3190 | | - | |
3191 | | - | |
3192 | | - | |
3193 | | - | |
3194 | | - | |
3195 | 3191 | | |
3196 | 3192 | | |
3197 | 3193 | | |
| |||
0 commit comments