Repository: corteva/rioxarray

Issue:
negative window col_off results in 0 width result from isel_window
<!-- Please search existing issues to avoid creating duplicates. -->


#### Code Sample, a copy-pastable example if possible

A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:
http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

```python
# Your code here
image = rioxarray.open(someraster)
window = rasterio.windows.Window(-1.8, 0, 10, 10)
x= image.isel_window(window)
print(x.shape) 
assert x.shape == (1,10,10) # fails, as shape is (1,10,0)
```
#### Problem description

Specifying windows with col offset or row offset less than or equal to -1.0 results in a returned data array with 0 size on the given axis. 

#### Expected Output

isel_window should always return a dataarray with the requested size of the window even if the start position given by row/col offset is "outside" the raster. Alternatively as much as possible should be returned so in the above pseudo code example maybe a shape of (1,10,8) should have been returned, but I think it is better to always return the expected shape and just fill nans as needed. 

I think the issue is likely with specifying a negative starting index for the row/col slices in isel_window, so maybe instead of the current if checks and calls to floor/ceiling it should just pin to the min/max possible slice of the raster, but it would be nicer if the expected shape was returned.

#### Environment Information
```
rioxarray (0.5.0) deps:
  rasterio: 1.2.2
    xarray: 0.18.2
      GDAL: 3.2.1
Other python deps:
     scipy: 1.6.3
    pyproj: 3.0.1
System:
    python: 3.8.5 (default, Sep  4 2020, 07:30:14)  [GCC 7.3.0]
executable: /home/andrew/anaconda3/envs/pangeo/bin/python
   machine: Linux-5.4.0-77-generic-x86_64-with-glibc2.10
```


#### Installation method
conda 

#### Conda environment information (if you installed with conda):

<br/>
Environment (<code>conda list</code>):
<details>

```
2021-07-15T18:10:44.0888364Z ##[group]Run conda info
2021-07-15T18:10:44.0888896Z [36;1mconda info[0m
2021-07-15T18:10:44.0889290Z [36;1mconda list[0m
2021-07-15T18:10:44.0889690Z [36;1mprintenv | sort[0m
2021-07-15T18:10:44.0934845Z shell: /usr/bin/bash -l {0}
2021-07-15T18:10:44.0935369Z env:
2021-07-15T18:10:44.0935833Z   CONDA_PKGS_DIR: /home/runner/conda_pkgs_dir
2021-07-15T18:10:44.0936297Z ##[endgroup]
2021-07-15T18:10:44.7751566Z 
2021-07-15T18:10:44.7752171Z      active environment : pangeo
2021-07-15T18:10:44.7752930Z     active env location : /usr/share/miniconda/envs/pangeo
2021-07-15T18:10:44.7753484Z             shell level : 2
2021-07-15T18:10:44.7754087Z        user config file : /home/runner/.condarc
2021-07-15T18:10:44.7754723Z  populated config files : /home/runner/.condarc
2021-07-15T18:10:44.7755262Z           conda version : 4.10.3
2021-07-15T18:10:44.7756313Z     conda-build version : not installed
2021-07-15T18:10:44.7756999Z          python version : 3.8.5.final.0
2021-07-15T18:10:44.7757608Z        virtual packages : __linux=5.8.0=0
2021-07-15T18:10:44.7758159Z                           __glibc=2.31=0
2021-07-15T18:10:44.7758525Z                           __unix=0=0
2021-07-15T18:10:44.7758904Z                           __archspec=1=x86_64
2021-07-15T18:10:44.7759450Z        base environment : /usr/share/miniconda  (writable)
2021-07-15T18:10:44.7760070Z       conda av data dir : /usr/share/miniconda/etc/conda
2021-07-15T18:10:44.7760840Z   conda av metadata url : None
2021-07-15T18:10:44.7761869Z            channel URLs : https://conda.anaconda.org/conda-forge/linux-64
2021-07-15T18:10:44.7763069Z                           https://conda.anaconda.org/conda-forge/noarch
2021-07-15T18:10:44.7764466Z                           https://repo.anaconda.com/pkgs/main/linux-64
2021-07-15T18:10:44.7765430Z                           https://repo.anaconda.com/pkgs/main/noarch
2021-07-15T18:10:44.7766463Z                           https://repo.anaconda.com/pkgs/r/linux-64
2021-07-15T18:10:44.7767437Z                           https://repo.anaconda.com/pkgs/r/noarch
2021-07-15T18:10:44.7768301Z           package cache : /home/runner/conda_pkgs_dir
2021-07-15T18:10:44.7768913Z        envs directories : /usr/share/miniconda/envs
2021-07-15T18:10:44.7769482Z                           /home/runner/.conda/envs
2021-07-15T18:10:44.7770117Z                platform : linux-64
2021-07-15T18:10:44.7770989Z              user-agent : conda/4.10.3 requests/2.24.0 CPython/3.8.5 Linux/5.8.0-1036-azure ubuntu/20.04.2 glibc/2.31
2021-07-15T18:10:44.7771740Z                 UID:GID : 1001:121
2021-07-15T18:10:44.7772150Z              netrc file : None
2021-07-15T18:10:44.7772594Z            offline mode : False
2021-07-15T18:10:44.7772901Z 
2021-07-15T18:10:47.7580097Z # packages in environment at /usr/share/miniconda/envs/pangeo:
2021-07-15T18:10:47.7581448Z #
2021-07-15T18:10:47.7582072Z # Name                    Version                   Build  Channel
2021-07-15T18:10:47.7583637Z _libgcc_mutex             0.1                 conda_forge    conda-forge
2021-07-15T18:10:47.7586942Z _openmp_mutex             4.5                       1_gnu    conda-forge
2021-07-15T18:10:47.7587783Z abseil-cpp                20210324.2           h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7588571Z affine                    2.3.0                      py_0    conda-forge
2021-07-15T18:10:47.7589453Z aiohttp                   3.7.4.post0      py38h497a2fe_0    conda-forge
2021-07-15T18:10:47.7590265Z anyio                     3.2.1            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7591070Z appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7591918Z argon2-cffi               20.1.0           py38h497a2fe_2    conda-forge
2021-07-15T18:10:47.7593611Z arrow-cpp                 4.0.1           py38h4710c81_4_cpu    conda-forge
2021-07-15T18:10:47.7594496Z async-timeout             3.0.1                   py_1000    conda-forge
2021-07-15T18:10:47.7595534Z async_generator           1.10                       py_0    conda-forge
2021-07-15T18:10:47.7596405Z atk-1.0                   2.36.0               h3371d22_4    conda-forge
2021-07-15T18:10:47.7597178Z attrs                     21.2.0             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7597981Z aws-c-cal                 0.5.11               h95a6274_0    conda-forge
2021-07-15T18:10:47.7598790Z aws-c-common              0.6.2                h7f98852_0    conda-forge
2021-07-15T18:10:47.7599654Z aws-c-event-stream        0.2.7               h3541f99_13    conda-forge
2021-07-15T18:10:47.7600521Z aws-c-io                  0.10.5               hfb6a706_0    conda-forge
2021-07-15T18:10:47.7601339Z aws-checksums             0.1.11               ha31a3da_7    conda-forge
2021-07-15T18:10:47.7602201Z aws-sdk-cpp               1.8.186              hb4091e7_3    conda-forge
2021-07-15T18:10:47.7603362Z babel                     2.9.1              pyh44b312d_0    conda-forge
2021-07-15T18:10:47.7604198Z backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7605055Z backports                 1.0                        py_2    conda-forge
2021-07-15T18:10:47.7605983Z backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7606923Z bleach                    3.3.0              pyh44b312d_0    conda-forge
2021-07-15T18:10:47.7607691Z blosc                     1.21.0               h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7608471Z bokeh                     2.3.3            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7609246Z boost-cpp                 1.74.0               h312852a_4    conda-forge
2021-07-15T18:10:47.7610018Z brotli                    1.0.9                h7f98852_5    conda-forge
2021-07-15T18:10:47.7610795Z brotli-bin                1.0.9                h7f98852_5    conda-forge
2021-07-15T18:10:47.7611679Z brotlipy                  0.7.0           py38h497a2fe_1001    conda-forge
2021-07-15T18:10:47.7612492Z brunsli                   0.1                  he1b5a44_0    conda-forge
2021-07-15T18:10:47.7613254Z bzip2                     1.0.8                h7f98852_4    conda-forge
2021-07-15T18:10:47.7614011Z c-ares                    1.17.1               h7f98852_1    conda-forge
2021-07-15T18:10:47.7615156Z ca-certificates           2021.7.5             h06a4308_1  
2021-07-15T18:10:47.7616011Z cachey                    0.2.1              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7616813Z cairo                     1.16.0            h6cf1ce9_1008    conda-forge
2021-07-15T18:10:47.7617596Z certifi                   2021.5.30        py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7618404Z cffi                      1.14.6           py38ha65f79e_0    conda-forge
2021-07-15T18:10:47.7619197Z cfitsio                   3.470                hb418390_7    conda-forge
2021-07-15T18:10:47.7620361Z chardet                   4.0.0            py38h578d9bd_1    conda-forge
2021-07-15T18:10:47.7621181Z charls                    2.2.0                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7621953Z click                     7.1.2              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7623064Z click-plugins             1.1.1                      py_0    conda-forge
2021-07-15T18:10:47.7623955Z cligj                     0.7.2              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7624763Z cloudpickle               1.6.0                      py_0    conda-forge
2021-07-15T18:10:47.7625570Z colorcet                  2.0.6              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7626387Z conda                     4.10.3           py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7627316Z conda-package-handling    1.7.3            py38h497a2fe_0    conda-forge
2021-07-15T18:10:47.7628538Z cryptography              3.4.7            py38ha5dfef3_0    conda-forge
2021-07-15T18:10:47.7629377Z curl                      7.77.0               hea6ffbf_0    conda-forge
2021-07-15T18:10:47.7630227Z cycler                    0.10.0                     py_2    conda-forge
2021-07-15T18:10:47.7631054Z cytoolz                   0.11.0           py38h497a2fe_3    conda-forge
2021-07-15T18:10:47.7631846Z dask                      2021.7.0           pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7632668Z dask-core                 2021.7.0           pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7633540Z dask-jobqueue             0.7.2              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7634455Z dask-labextension         5.0.2              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7635365Z datashader                0.13.0             pyh6c4a22f_0    conda-forge
2021-07-15T18:10:47.7636167Z datashape                 0.5.4                      py_1    conda-forge
2021-07-15T18:10:47.7636978Z debugpy                   1.3.0            py38h709712a_0    conda-forge
2021-07-15T18:10:47.7637755Z decorator                 4.4.2                      py_0    conda-forge
2021-07-15T18:10:47.7638582Z defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7639449Z distributed               2021.7.0         py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7640307Z entrypoints               0.3             py38h32f6830_1002    conda-forge
2021-07-15T18:10:47.7641129Z expat                     2.4.1                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7641899Z fiona                     1.8.20           py38ha695d3a_1    conda-forge
2021-07-15T18:10:47.7643098Z fire                      0.4.0              pyh44b312d_0    conda-forge
2021-07-15T18:10:47.7644167Z font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
2021-07-15T18:10:47.7645915Z font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
2021-07-15T18:10:47.7646956Z font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
2021-07-15T18:10:47.7647950Z font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
2021-07-15T18:10:47.7648816Z fontconfig                2.13.1            hba837de_1005    conda-forge
2021-07-15T18:10:47.7649695Z fonts-conda-ecosystem     1                             0    conda-forge
2021-07-15T18:10:47.7650621Z fonts-conda-forge         1                             0    conda-forge
2021-07-15T18:10:47.7651447Z freetype                  2.10.4               h0708190_1    conda-forge
2021-07-15T18:10:47.7652217Z freexl                    1.0.6                h7f98852_0    conda-forge
2021-07-15T18:10:47.7652958Z fribidi                   1.0.10               h516909a_0    conda-forge
2021-07-15T18:10:47.7653750Z fsspec                    2021.7.0           pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7654736Z gdal                      3.3.1            py38h507a4fd_0    conda-forge
2021-07-15T18:10:47.7655540Z gdk-pixbuf                2.42.6               h04a7f16_0    conda-forge
2021-07-15T18:10:47.7656366Z geopandas                 0.9.0              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7657251Z geopandas-base            0.9.0              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7658106Z geos                      3.9.1                h9c3ff4c_2    conda-forge
2021-07-15T18:10:47.7658855Z geotiff                   1.6.0                h4f31c25_6    conda-forge
2021-07-15T18:10:47.7659396Z gettext                   0.21.0               hf68c758_0  
2021-07-15T18:10:47.7660127Z gflags                    2.2.2             he1b5a44_1004    conda-forge
2021-07-15T18:10:47.7660879Z giflib                    5.2.1                h516909a_2    conda-forge
2021-07-15T18:10:47.7661624Z glog                      0.5.0                h48cff8f_0    conda-forge
2021-07-15T18:10:47.7662155Z graphite2                 1.3.14               h23475e2_0  
2021-07-15T18:10:47.7663100Z graphviz                  2.47.3               h85b4f2f_0    conda-forge
2021-07-15T18:10:47.7663882Z grpc-cpp                  1.38.1               h36ce80c_0    conda-forge
2021-07-15T18:10:47.7664651Z gsl                       2.6                  he838d99_2    conda-forge
2021-07-15T18:10:47.7665479Z gtk2                      2.24.33              h539f30e_1    conda-forge
2021-07-15T18:10:47.7666255Z gts                       0.7.6                h64030ff_2    conda-forge
2021-07-15T18:10:47.7667012Z harfbuzz                  2.8.2                h83ec7ef_0    conda-forge
2021-07-15T18:10:47.7667766Z hdf4                      4.2.15               h10796ff_3    conda-forge
2021-07-15T18:10:47.7668533Z hdf5                      1.10.6          nompi_h6a2412b_1114    conda-forge
2021-07-15T18:10:47.7669298Z heapdict                  1.0.1                      py_0    conda-forge
2021-07-15T18:10:47.7670106Z holoviews                 1.14.4             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7670891Z icu                       68.1                 h58526e2_0    conda-forge
2021-07-15T18:10:47.7671650Z idna                      2.10               pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7672481Z imagecodecs               2021.6.8         py38hf154af1_0    conda-forge
2021-07-15T18:10:47.7673284Z imageio                   2.9.0                      py_0    conda-forge
2021-07-15T18:10:47.7674153Z importlib-metadata        4.6.1            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7675073Z importlib_metadata        4.6.1                hd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7675933Z iniconfig                 1.1.1              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7676763Z ipykernel                 6.0.2            py38hd0cf306_0    conda-forge
2021-07-15T18:10:47.7677596Z ipympl                    0.7.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7678417Z ipython                   7.25.0           py38hd0cf306_1    conda-forge
2021-07-15T18:10:47.7679229Z ipython_genutils          0.2.0                      py_1    conda-forge
2021-07-15T18:10:47.7680066Z ipywidgets                7.6.3              pyhd3deb0d_0    conda-forge
2021-07-15T18:10:47.7680860Z jbig                      2.1               h7f98852_2003    conda-forge
2021-07-15T18:10:47.7681629Z jedi                      0.18.0           py38h578d9bd_2    conda-forge
2021-07-15T18:10:47.7682416Z jinja2                    3.0.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7683227Z joblib                    1.0.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7684003Z jpeg                      9d                   h516909a_0    conda-forge
2021-07-15T18:10:47.7684745Z json-c                    0.15                 h98cffda_0    conda-forge
2021-07-15T18:10:47.7685303Z json5                     0.9.6              pyhd3eb1b0_0  
2021-07-15T18:10:47.7686068Z jsonschema                3.2.0            py38h32f6830_1    conda-forge
2021-07-15T18:10:47.7687008Z jupyter-server-proxy      3.1.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7687971Z jupyter_client            6.1.12             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7688823Z jupyter_contrib_core      0.3.3                      py_2    conda-forge
2021-07-15T18:10:47.7689729Z jupyter_contrib_nbextensions 0.5.1            py38h32f6830_1    conda-forge
2021-07-15T18:10:47.7690717Z jupyter_core              4.7.1            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7691655Z jupyter_highlight_selected_word 0.2.0           py38h578d9bd_1002    conda-forge
2021-07-15T18:10:47.7692592Z jupyter_latex_envs        1.4.6           py38h578d9bd_1001    conda-forge
2021-07-15T18:10:47.7693574Z jupyter_nbextensions_configurator 0.4.1            py38h578d9bd_2    conda-forge
2021-07-15T18:10:47.7694832Z jupyter_server            1.9.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7695759Z jupyterlab                3.0.16             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7696868Z jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7697785Z jupyterlab_server         2.6.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7698698Z jupyterlab_widgets        1.0.0              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7699618Z jxrlib                    1.1                  h516909a_2    conda-forge
2021-07-15T18:10:47.7700424Z kealib                    1.4.14               hcc255d8_2    conda-forge
2021-07-15T18:10:47.7701223Z kiwisolver                1.3.1            py38h1fd1430_1    conda-forge
2021-07-15T18:10:47.7702034Z krb5                      1.19.1               hcc1bbae_0    conda-forge
2021-07-15T18:10:47.7702791Z lcms2                     2.12                 hddcbb42_0    conda-forge
2021-07-15T18:10:47.7703600Z ld_impl_linux-64          2.36.1               hea4e1c9_1    conda-forge
2021-07-15T18:10:47.7704403Z lerc                      2.2.1                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7705164Z libaec                    1.0.5                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7705958Z libarchive                3.5.1                hccf745f_2    conda-forge
2021-07-15T18:10:47.7706752Z libblas                   3.9.0                9_openblas    conda-forge
2021-07-15T18:10:47.7707590Z libbrotlicommon           1.0.9                h7f98852_5    conda-forge
2021-07-15T18:10:47.7708435Z libbrotlidec              1.0.9                h7f98852_5    conda-forge
2021-07-15T18:10:47.7709261Z libbrotlienc              1.0.9                h7f98852_5    conda-forge
2021-07-15T18:10:47.7710078Z libcblas                  3.9.0                9_openblas    conda-forge
2021-07-15T18:10:47.7710856Z libcurl                   7.77.0               h2574ce0_0    conda-forge
2021-07-15T18:10:47.7711627Z libdap4                   3.20.6               hd7c4107_2    conda-forge
2021-07-15T18:10:47.7712405Z libdeflate                1.7                  h7f98852_5    conda-forge
2021-07-15T18:10:47.7712978Z libedit                   3.1.20210216         h27cfd23_1  
2021-07-15T18:10:47.7713681Z libev                     4.33                 h516909a_1    conda-forge
2021-07-15T18:10:47.7714454Z libevent                  2.1.10               hcdb4288_3    conda-forge
2021-07-15T18:10:47.7715224Z libffi                    3.3                  h58526e2_2    conda-forge
2021-07-15T18:10:47.7716007Z libgcc-ng                 9.3.0               h2828fa1_19    conda-forge
2021-07-15T18:10:47.7716777Z libgd                     2.3.2                h78a0170_0    conda-forge
2021-07-15T18:10:47.7717521Z libgdal                   3.3.1                h8f005ca_0    conda-forge
2021-07-15T18:10:47.7718338Z libgfortran-ng            9.3.0               hff62375_19    conda-forge
2021-07-15T18:10:47.7719184Z libgfortran5              9.3.0               hff62375_19    conda-forge
2021-07-15T18:10:47.7719992Z libglib                   2.68.3               h3e27bee_0    conda-forge
2021-07-15T18:10:47.7720757Z libgomp                   9.3.0               h2828fa1_19    conda-forge
2021-07-15T18:10:47.7721531Z libiconv                  1.16                 h516909a_0    conda-forge
2021-07-15T18:10:47.7722287Z libkml                    1.3.0             h238a007_1013    conda-forge
2021-07-15T18:10:47.7723067Z liblapack                 3.9.0                9_openblas    conda-forge
2021-07-15T18:10:47.7723886Z libllvm10                 10.0.1               he513fc3_3    conda-forge
2021-07-15T18:10:47.7724702Z libnetcdf                 4.8.0           nompi_hcd642e3_103    conda-forge
2021-07-15T18:10:47.7725538Z libnghttp2                1.43.0               h812cca2_0    conda-forge
2021-07-15T18:10:47.7726397Z libopenblas               0.3.15          pthreads_h8fe5266_1    conda-forge
2021-07-15T18:10:47.7727248Z libpng                    1.6.37               hed695b0_2    conda-forge
2021-07-15T18:10:47.7728016Z libpq                     13.3                 hd57d9b9_0    conda-forge
2021-07-15T18:10:47.7728792Z libprotobuf               3.16.0               h780b84a_0    conda-forge
2021-07-15T18:10:47.7729735Z librsvg                   2.50.7               hc3c00ef_0    conda-forge
2021-07-15T18:10:47.7730503Z librttopo                 1.1.0                h1185371_6    conda-forge
2021-07-15T18:10:47.7731365Z libsodium                 1.0.18               h516909a_1    conda-forge
2021-07-15T18:10:47.7732167Z libsolv                   0.7.19               h780b84a_5    conda-forge
2021-07-15T18:10:47.7732994Z libspatialindex           1.9.3                he1b5a44_3    conda-forge
2021-07-15T18:10:47.7733859Z libspatialite             5.0.1                h8694cbe_5    conda-forge
2021-07-15T18:10:47.7734853Z libssh2                   1.9.0                ha56f1ee_6    conda-forge
2021-07-15T18:10:47.7735675Z libstdcxx-ng              9.3.0               h6de172a_19    conda-forge
2021-07-15T18:10:47.7736487Z libthrift                 0.14.2               he6d91bd_1    conda-forge
2021-07-15T18:10:47.7737271Z libtiff                   4.3.0                hf544144_1    conda-forge
2021-07-15T18:10:47.7738034Z libtool                   2.4.6             h58526e2_1007    conda-forge
2021-07-15T18:10:47.7738820Z libutf8proc               2.6.1                h7f98852_0    conda-forge
2021-07-15T18:10:47.7739611Z libuuid                   2.32.1            h14c3975_1000    conda-forge
2021-07-15T18:10:47.7740382Z libwebp                   1.2.0                h3452ae3_0    conda-forge
2021-07-15T18:10:47.7741187Z libwebp-base              1.2.0                h7f98852_2    conda-forge
2021-07-15T18:10:47.7741741Z libxcb                    1.14                 h7b6447c_0  
2021-07-15T18:10:47.7742450Z libxml2                   2.9.12               h72842e0_0    conda-forge
2021-07-15T18:10:47.7743208Z libxslt                   1.1.33               h15afd5d_2    conda-forge
2021-07-15T18:10:47.7743980Z libzip                    1.8.0                h4de3113_0    conda-forge
2021-07-15T18:10:47.7744762Z libzopfli                 1.0.3                he1b5a44_0    conda-forge
2021-07-15T18:10:47.7747220Z llvmlite                  0.36.0           py38h4630a5e_0    conda-forge
2021-07-15T18:10:47.7747824Z locket                    0.2.1            py38h06a4308_1  
2021-07-15T18:10:47.7748585Z lxml                      4.6.3            py38hf1fe3a4_0    conda-forge
2021-07-15T18:10:47.7749374Z lz4-c                     1.9.3                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7750108Z lzo                       2.10              h516909a_1000    conda-forge
2021-07-15T18:10:47.7750867Z mamba                     0.15.0           py38h2aa5da1_0    conda-forge
2021-07-15T18:10:47.7751693Z mapclassify               2.4.2              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7752546Z markdown                  3.3.4              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7753376Z markupsafe                2.0.1            py38h497a2fe_0    conda-forge
2021-07-15T18:10:47.7754279Z matplotlib-base           3.4.2            py38hcc49a3a_0    conda-forge
2021-07-15T18:10:47.7755245Z matplotlib-inline         0.1.2              pyhd8ed1ab_2    conda-forge
2021-07-15T18:10:47.7756137Z mistune                   0.8.4           py38h497a2fe_1004    conda-forge
2021-07-15T18:10:47.7757065Z more-itertools            8.8.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7757894Z mpi                       1.0                       mpich    conda-forge
2021-07-15T18:10:47.7758669Z mpi4py                    3.0.3            py38he865349_7    conda-forge
2021-07-15T18:10:47.7759431Z mpich                     3.4.2              h846660c_100    conda-forge
2021-07-15T18:10:47.7760263Z msgpack-python            1.0.2            py38h1fd1430_1    conda-forge
2021-07-15T18:10:47.7761141Z multidict                 5.1.0            py38h497a2fe_1    conda-forge
2021-07-15T18:10:47.7761987Z multipledispatch          0.6.0                      py_0    conda-forge
2021-07-15T18:10:47.7762797Z munch                     2.5.0                      py_0    conda-forge
2021-07-15T18:10:47.7763826Z nb_conda                  2.2.1            py38h578d9bd_4    conda-forge
2021-07-15T18:10:47.7764652Z nb_conda_kernels          2.3.1            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7765627Z nbclassic                 0.3.1              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7766517Z nbclient                  0.5.3              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7767356Z nbconvert                 6.1.0            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7768171Z nbformat                  5.1.3              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7769003Z nbserverproxy             0.8.8                   py_1000    conda-forge
2021-07-15T18:10:47.7769796Z ncurses                   6.2                  h58526e2_4    conda-forge
2021-07-15T18:10:47.7770620Z nest-asyncio              1.5.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7771467Z networkx                  2.6.1              pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7772307Z notebook                  6.4.0              pyha770c72_0    conda-forge
2021-07-15T18:10:47.7773113Z numba                     0.53.1           py38h8b71fd7_1    conda-forge
2021-07-15T18:10:47.7773901Z numpy                     1.21.0           py38h9894fe3_0    conda-forge
2021-07-15T18:10:47.7774902Z olefile                   0.46               pyh9f0ad1d_1    conda-forge
2021-07-15T18:10:47.7775695Z openjpeg                  2.4.0                hb52868f_1    conda-forge
2021-07-15T18:10:47.7776480Z openssl                   1.1.1k               h7f98852_0    conda-forge
2021-07-15T18:10:47.7777224Z orc                       1.6.9                h58a87f1_0    conda-forge
2021-07-15T18:10:47.7778015Z packaging                 21.0               pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7778830Z pandas                    1.3.0            py38h1abd341_0    conda-forge
2021-07-15T18:10:47.7779619Z pandoc                    2.14.0.3             h7f98852_0    conda-forge
2021-07-15T18:10:47.7780223Z pandocfilters             1.4.3            py38h06a4308_1  
2021-07-15T18:10:47.7781014Z panel                     0.11.3             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7781805Z pango                     1.48.7               hb8ff022_0    conda-forge
2021-07-15T18:10:47.7782583Z param                     1.11.1             pyh6c4a22f_0    conda-forge
2021-07-15T18:10:47.7783382Z parquet-cpp               1.5.1                         1    conda-forge
2021-07-15T18:10:47.7784174Z parso                     0.8.2              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7784978Z partd                     1.2.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7785748Z patsy                     0.5.1                      py_0    conda-forge
2021-07-15T18:10:47.7786482Z pcre                      8.45                 h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7787274Z pexpect                   4.8.0            py38h32f6830_1    conda-forge
2021-07-15T18:10:47.7788157Z pickleshare               0.7.5           py38h32f6830_1002    conda-forge
2021-07-15T18:10:47.7789005Z pillow                    8.3.1            py38h8e6f84c_0    conda-forge
2021-07-15T18:10:47.7789801Z pip                       21.1.3             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7790595Z pixman                    0.40.0               h36c2ea0_0    conda-forge
2021-07-15T18:10:47.7791389Z pluggy                    0.13.1           py38h578d9bd_4    conda-forge
2021-07-15T18:10:47.7792181Z pooch                     1.4.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7792977Z poppler                   21.03.0              h93df280_0    conda-forge
2021-07-15T18:10:47.7793763Z poppler-data              0.4.10                        0    conda-forge
2021-07-15T18:10:47.7794572Z postgresql                13.3                 h2510834_0    conda-forge
2021-07-15T18:10:47.7795333Z proj                      8.0.1                h277dcde_0    conda-forge
2021-07-15T18:10:47.7796366Z prometheus_client         0.11.0             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7797264Z prompt-toolkit            3.0.19             pyha770c72_0    conda-forge
2021-07-15T18:10:47.7798127Z psutil                    5.8.0            py38h497a2fe_1    conda-forge
2021-07-15T18:10:47.7799059Z ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
2021-07-15T18:10:47.7799920Z py                        1.10.0             pyhd3deb0d_0    conda-forge
2021-07-15T18:10:47.7800740Z pyarrow                   4.0.1           py38hc9229eb_4_cpu    conda-forge
2021-07-15T18:10:47.7801574Z pycosat                   0.6.3           py38h497a2fe_1006    conda-forge
2021-07-15T18:10:47.7802423Z pycparser                 2.20               pyh9f0ad1d_2    conda-forge
2021-07-15T18:10:47.7802974Z pyct                      0.4.8                    py38_0  
2021-07-15T18:10:47.7803699Z pydot                     1.4.2            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7804532Z pygeos                    0.10.1           py38haeee4fe_0    conda-forge
2021-07-15T18:10:47.7805360Z pygments                  2.9.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7806253Z pyinterp                  0.7.1           openblas_py38h4cdd987_101    conda-forge
2021-07-15T18:10:47.7807142Z pyopenssl                 20.0.1             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7807998Z pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
2021-07-15T18:10:47.7808810Z pyproj                    3.1.0            py38h03a1999_3    conda-forge
2021-07-15T18:10:47.7809638Z pyrsistent                0.17.3           py38h497a2fe_2    conda-forge
2021-07-15T18:10:47.7810473Z pysocks                   1.7.1            py38h578d9bd_3    conda-forge
2021-07-15T18:10:47.7811270Z pytest                    6.2.4            py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7812083Z python                    3.8.10          h49503c6_1_cpython    conda-forge
2021-07-15T18:10:47.7812955Z python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7813892Z python-graphviz           0.17               pyhaef67bd_0    conda-forge
2021-07-15T18:10:47.7815217Z python-snappy             0.6.0            py38h49bdff1_0    conda-forge
2021-07-15T18:10:47.7816073Z python_abi                3.8                      2_cp38    conda-forge
2021-07-15T18:10:47.7816861Z pytz                      2021.1             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7817666Z pyviz_comms               2.1.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7818522Z pywavelets                1.1.1            py38hab2c0dc_3    conda-forge
2021-07-15T18:10:47.7819351Z pyyaml                    5.4.1            py38h497a2fe_0    conda-forge
2021-07-15T18:10:47.7820147Z pyzmq                     22.1.0           py38h2035c66_0    conda-forge
2021-07-15T18:10:47.7820942Z rasterio                  1.2.6            py38h84fce68_2    conda-forge
2021-07-15T18:10:47.7821745Z re2                       2021.06.01           h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7822499Z readline                  8.1                  h46c0cb4_0    conda-forge
2021-07-15T18:10:47.7823283Z reproc                    14.2.1               h36c2ea0_0    conda-forge
2021-07-15T18:10:47.7824085Z reproc-cpp                14.2.1               h58526e2_0    conda-forge
2021-07-15T18:10:47.7824904Z requests                  2.25.1             pyhd3deb0d_0    conda-forge
2021-07-15T18:10:47.7825790Z requests-unixsocket       0.2.0                      py_0    conda-forge
2021-07-15T18:10:47.7826635Z retrying                  1.3.3                      py_2    conda-forge
2021-07-15T18:10:47.7827440Z rioxarray                 0.5.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7828250Z rtree                     0.9.7            py38h02d302b_1    conda-forge
2021-07-15T18:10:47.7828829Z ruamel_yaml               0.15.100         py38h27cfd23_0  
2021-07-15T18:10:47.7829730Z s2n                       1.0.10               h9b69904_0    conda-forge
2021-07-15T18:10:47.7830520Z scikit-image              0.18.2           py38h1abd341_0    conda-forge
2021-07-15T18:10:47.7831402Z scikit-learn              0.24.2           py38hdc147b9_0    conda-forge
2021-07-15T18:10:47.7832330Z scipy                     1.7.0            py38h7b17777_0    conda-forge
2021-07-15T18:10:47.7833161Z seaborn                   0.11.1               ha770c72_0    conda-forge
2021-07-15T18:10:47.7833973Z seaborn-base              0.11.1             pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7834847Z send2trash                1.7.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7835469Z setuptools                52.0.0           py38h06a4308_0  
2021-07-15T18:10:47.7835971Z sh                        1.14.2           py38h06a4308_0  
2021-07-15T18:10:47.7836731Z shapely                   1.7.1            py38haeee4fe_5    conda-forge
2021-07-15T18:10:47.7837586Z simpervisor               0.4                pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7838425Z six                       1.16.0             pyh6c4a22f_0    conda-forge
2021-07-15T18:10:47.7839191Z snappy                    1.1.8                he1b5a44_3    conda-forge
2021-07-15T18:10:47.7839989Z sniffio                   1.2.0            py38h578d9bd_1    conda-forge
2021-07-15T18:10:47.7840750Z snuggs                    1.4.7                      py_0    conda-forge
2021-07-15T18:10:47.7841596Z sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7842535Z spatialpandas             0.4.1              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7843363Z sqlite                    3.36.0               h9cd32fc_0    conda-forge
2021-07-15T18:10:47.7844177Z statsmodels               0.12.2           py38h5c078b8_0    conda-forge
2021-07-15T18:10:47.7844998Z tblib                     1.7.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7845787Z termcolor                 1.1.0                      py_2    conda-forge
2021-07-15T18:10:47.7847159Z terminado                 0.10.1           py38h578d9bd_0    conda-forge
2021-07-15T18:10:47.7848142Z testpath                  0.5.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7848784Z thesequencer              0.0.5                    pypi_0    pypi
2021-07-15T18:10:47.7849612Z threadpoolctl             2.2.0              pyh8a188c0_0    conda-forge
2021-07-15T18:10:47.7850475Z tifffile                  2021.7.2           pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7851272Z tiledb                    2.3.2                he87e0bf_0    conda-forge
2021-07-15T18:10:47.7852037Z tk                        8.6.10               hed695b0_1    conda-forge
2021-07-15T18:10:47.7852790Z toml                      0.10.2             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7853551Z toolz                     0.11.1                     py_0    conda-forge
2021-07-15T18:10:47.7854470Z tornado                   6.1              py38h497a2fe_1    conda-forge
2021-07-15T18:10:47.7855311Z tqdm                      4.61.2             pyhd8ed1ab_1    conda-forge
2021-07-15T18:10:47.7856091Z traitlets                 5.0.5                      py_0    conda-forge
2021-07-15T18:10:47.7856949Z typing-extensions         3.10.0.0             hd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7857875Z typing_extensions         3.10.0.0           pyha770c72_0    conda-forge
2021-07-15T18:10:47.7858692Z tzcode                    2021a                h7f98852_2    conda-forge
2021-07-15T18:10:47.7859466Z tzdata                    2021a                he74cb21_1    conda-forge
2021-07-15T18:10:47.7860268Z urllib3                   1.26.6             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7861070Z wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
2021-07-15T18:10:47.7861883Z webencodings              0.5.1                      py_1    conda-forge
2021-07-15T18:10:47.7862693Z websocket-client          0.58.0           py38h06a4308_4  
2021-07-15T18:10:47.7863748Z wheel                     0.36.2             pyhd3deb0d_0    conda-forge
2021-07-15T18:10:47.7864627Z widgetsnbextension        3.5.1            py38h578d9bd_4    conda-forge
2021-07-15T18:10:47.7865526Z xarray                    0.18.2             pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7866417Z xerces-c                  3.2.3                h9d8b166_2    conda-forge
2021-07-15T18:10:47.7867277Z xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
2021-07-15T18:10:47.7868096Z xorg-libice               1.0.10               h516909a_0    conda-forge
2021-07-15T18:10:47.7868890Z xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
2021-07-15T18:10:47.7869700Z xorg-libx11               1.7.2                h7f98852_0    conda-forge
2021-07-15T18:10:47.7870506Z xorg-libxext              1.3.4                h7f98852_1    conda-forge
2021-07-15T18:10:47.7871359Z xorg-libxrender           0.9.10            h7f98852_1003    conda-forge
2021-07-15T18:10:47.7872246Z xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
2021-07-15T18:10:47.7873123Z xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
2021-07-15T18:10:47.7873959Z xorg-xproto               7.0.31            h14c3975_1007    conda-forge
2021-07-15T18:10:47.7874713Z xz                        5.2.5                h516909a_1    conda-forge
2021-07-15T18:10:47.7875431Z yaml                      0.2.5                h516909a_0    conda-forge
2021-07-15T18:10:47.7876174Z yarl                      1.6.3            py38h497a2fe_2    conda-forge
2021-07-15T18:10:47.7876952Z zeromq                    4.3.4                h9c3ff4c_0    conda-forge
2021-07-15T18:10:47.7877696Z zfp                       0.5.5                h9c3ff4c_5    conda-forge
2021-07-15T18:10:47.7878427Z zict                      2.0.0                      py_0    conda-forge
2021-07-15T18:10:47.7879193Z zipp                      3.5.0              pyhd8ed1ab_0    conda-forge
2021-07-15T18:10:47.7879961Z zlib                      1.2.11            h516909a_1010    conda-forge
2021-07-15T18:10:47.7880701Z zstd                      1.5.0                ha95c52a_0    conda-forge

```
</details>

<br/>
Details about  <code>conda</code> and system ( <code>conda info</code> ):
<details>

```
$ conda info

```
</details>


Discussion:
snowman2: @AndrewAnnex, I am just realizing that `pad_box` is not implemented at the Dataset level. Before this can be merged in, a Dataset level `rio.pad_box` will need to be added.
AndrewAnnex: @snowman2 I see pad_box in raster_dataset.py, but if there is something else needed first that's fine by me
snowman2: > I see pad_box in raster_dataset.py, but if there is something else needed first that's fine by me

Perfect! If it is there, then we are clear to proceed.
AndrewAnnex: great, I think the pr is good to go now. the last ci builds failed due to a pylint error that pre-commit didn't seem to catch
snowman2: Looks like conda-forge is choking. Will need to comment out these lines: https://github.com/corteva/rioxarray/blob/038d81fa244585030f1e354499accf58d372d2db/.github/workflows/tests.yaml#L43-L46
snowman2: Thanks for your patience @AndrewAnnex, this looks great! The latest tests pass, so I think this is good to go.
snowman2: @AndrewAnnex, I think this is good to go. Any issues if I squash and merge?
AndrewAnnex: @snowman2 nope! :shipit: 

Patch:
diff --git a/docs/history.rst b/docs/history.rst
index e3880a81..2c78cac3 100644
--- a/docs/history.rst
+++ b/docs/history.rst
@@ -3,6 +3,7 @@ History
 
 Latest
 ------
+- ENH: Add pad option to `rio.isel_window` (issue #381; pull #383)
 
 0.5.0
 ------
diff --git a/rioxarray/rioxarray.py b/rioxarray/rioxarray.py
index 64d9f731..a88448ab 100644
--- a/rioxarray/rioxarray.py
+++ b/rioxarray/rioxarray.py
@@ -894,16 +894,20 @@ class XRasterBase:
 
         return left, bottom, right, top
 
-    def isel_window(self, window):
+    def isel_window(self, window, pad=False):
         """
         Use a rasterio.window.Window to select a subset of the data.
 
+        .. versionadded:: 0.6.0 pad
+
         .. warning:: Float indices are converted to integers.
 
         Parameters
         ----------
         window: :class:`rasterio.window.Window`
             The window of the dataset to read.
+        pad: bool, default=False
+            Set to True to expand returned DataArray to dimensions of the window
 
         Returns
         -------
@@ -911,13 +915,13 @@ class XRasterBase:
             The data in the window.
         """
         (row_start, row_stop), (col_start, col_stop) = window.toranges()
-        row_start = math.ceil(row_start) if row_start < 0 else math.floor(row_start)
+        row_start = 0 if row_start < 0 else math.floor(row_start)
         row_stop = math.floor(row_stop) if row_stop < 0 else math.ceil(row_stop)
-        col_start = math.ceil(col_start) if col_start < 0 else math.floor(col_start)
+        col_start = 0 if col_start < 0 else math.floor(col_start)
         col_stop = math.floor(col_stop) if col_stop < 0 else math.ceil(col_stop)
         row_slice = slice(int(row_start), int(row_stop))
         col_slice = slice(int(col_start), int(col_stop))
-        return (
+        array_subset = (
             self._obj.isel({self.y_dim: row_slice, self.x_dim: col_slice})
             .copy()  # this is to prevent sharing coordinates with the original dataset
             .rio.set_spatial_dims(x_dim=self.x_dim, y_dim=self.y_dim, inplace=True)
@@ -934,6 +938,11 @@ class XRasterBase:
                 inplace=True,
             )
         )
+        if pad:
+            return array_subset.rio.pad_box(
+                *rasterio.windows.bounds(window, self.transform(recalc=True))
+            )
+        return array_subset
 
     def slice_xy(self, minx, miny, maxx, maxy):
         """Slice the array by x,y bounds.


Test patch:
diff --git a/test/integration/test_integration_rioxarray.py b/test/integration/test_integration_rioxarray.py
index cfb6f981..9026186b 100644
--- a/test/integration/test_integration_rioxarray.py
+++ b/test/integration/test_integration_rioxarray.py
@@ -1965,6 +1965,26 @@ def test_isel_window():
         ).all()
 
 
+def test_isel_window_wpad():
+    with rioxarray.open_rasterio(
+        os.path.join(TEST_INPUT_DATA_DIR, "MODIS_ARRAY.nc")
+    ) as mda:
+        w1 = Window.from_slices(
+            slice(-5, 10), slice(-5, 10), height=15, width=15, boundless=True
+        )
+        wb1 = rasterio.windows.bounds(w1, mda.rio.transform(recalc=True))
+        res1 = mda.rio.isel_window(w1, pad=True)
+        exp1 = mda.rio.pad_box(*wb1).isel(x=slice(0, 15), y=slice(0, 15))
+        assert (res1 == exp1).all()
+        w2 = Window.from_slices(
+            slice(195, 210), slice(195, 210), height=15, width=15, boundless=True
+        )
+        wb2 = rasterio.windows.bounds(w2, mda.rio.transform(recalc=True))
+        res2 = mda.rio.isel_window(w2, pad=True)
+        exp2 = mda.rio.pad_box(*wb2).isel(x=slice(195, 210), y=slice(195, 210))
+        assert (res2 == exp2).all()
+
+
 def test_write_pyproj_crs_dataset():
     test_ds = xarray.Dataset()
     test_ds = test_ds.rio.write_crs(pCRS(4326))