Skip to content

Commit 591d539

Browse files
http:// → https:// (#9748)
1 parent a78f45a commit 591d539

22 files changed

+55
-55
lines changed

.github/ISSUE_TEMPLATE/bugreport.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body:
3737
Please confirm that the bug report is in an excellent state, so we can understand & fix it quickly & efficiently. For more details, check out:
3838
3939
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
40-
- [Craft Minimal Bug Reports](http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
40+
- [Craft Minimal Bug Reports](https://matthewrocklin.com/minimal-bug-reports)
4141
4242
options:
4343
- label: Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.

.github/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ newIssueWelcomeComment: >
1414
newPRWelcomeComment: >
1515
Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
1616
17-
If you have questions, some answers may be found in our [contributing guidelines](http://docs.xarray.dev/en/stable/contributing.html).
17+
If you have questions, some answers may be found in our [contributing guidelines](https://docs.xarray.dev/en/stable/contributing.html).
1818
1919
# Comment to be posted to on pull requests merged by a first time user
2020
firstPRMergeComment: >

CODE_OF_CONDUCT.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4040

4141
## Attribution
4242

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
4444

45-
[homepage]: http://contributor-covenant.org
46-
[version]: http://contributor-covenant.org/version/1/4/
45+
[homepage]: https://contributor-covenant.org
46+
[version]: https://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Xarray's contributor guidelines [can be found in our online documentation](http://docs.xarray.dev/en/stable/contributing.html)
1+
Xarray's contributor guidelines [can be found in our online documentation](https://docs.xarray.dev/en/stable/contributing.html)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ our efforts.
9494
## History
9595

9696
Xarray is an evolution of an internal tool developed at [The Climate
97-
Corporation](http://climate.com/). It was originally written by Climate
97+
Corporation](https://climate.com/). It was originally written by Climate
9898
Corp researchers Stephan Hoyer, Alex Kleeman and Eugene Brevdo and was
9999
released as open source in May 2014. The project was renamed from
100100
"xray" in January 2016. Xarray became a fiscally sponsored project of

asv_bench/asv.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"project": "xarray",
88

99
// The project's homepage
10-
"project_url": "http://docs.xarray.dev/",
10+
"project_url": "https://docs.xarray.dev/",
1111

1212
// The URL or local path of the source code repository for the
1313
// project being benchmarked

design_notes/flexible_indexes_notes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ A possible, more explicit solution to reuse a `pandas.MultiIndex` in a DataArray
133133

134134
New indexes may also be built from existing sets of coordinates or variables in a Dataset/DataArray using the `.set_index()` method.
135135

136-
The [current signature](http://docs.xarray.dev/en/stable/generated/xarray.DataArray.set_index.html#xarray.DataArray.set_index) of `.set_index()` is tailored to `pandas.MultiIndex` and tied to the concept of a dimension-index. It is therefore hardly reusable as-is in the context of flexible indexes proposed here.
136+
The [current signature](https://docs.xarray.dev/en/stable/generated/xarray.DataArray.set_index.html#xarray.DataArray.set_index) of `.set_index()` is tailored to `pandas.MultiIndex` and tied to the concept of a dimension-index. It is therefore hardly reusable as-is in the context of flexible indexes proposed here.
137137

138138
The new signature may look like one of these:
139139

doc/contributing.rst

+14-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Contributing to xarray
77
.. note::
88

99
Large parts of this document came from the `Pandas Contributing
10-
Guide <http://pandas.pydata.org/pandas-docs/stable/contributing.html>`_.
10+
Guide <https://pandas.pydata.org/pandas-docs/stable/development/contributing.html>`_.
1111

1212
Overview
1313
========
@@ -68,7 +68,7 @@ If you are reporting a bug, please use the provided template which includes the
6868

6969
#. Include a short, self-contained Python snippet reproducing the problem.
7070
You can format the code nicely by using `GitHub Flavored Markdown
71-
<http://github.github.com/github-flavored-markdown/>`_::
71+
<https://github.github.com/github-flavored-markdown/>`_::
7272

7373
```python
7474
import xarray as xr
@@ -106,7 +106,7 @@ Version control, Git, and GitHub
106106

107107
The code is hosted on `GitHub <https://www.github.com/pydata/xarray>`_. To
108108
contribute you will need to sign up for a `free GitHub account
109-
<https://github.com/signup/free>`_. We use `Git <http://git-scm.com/>`_ for
109+
<https://github.com/signup/free>`_. We use `Git <https://git-scm.com/>`_ for
110110
version control to allow many people to work together on the project.
111111

112112
Some great resources for learning Git:
@@ -327,7 +327,7 @@ To return to your root environment::
327327

328328
conda deactivate
329329

330-
See the full `conda docs here <http://conda.pydata.org/docs>`__.
330+
See the full `conda docs here <https://conda.pydata.org/docs>`__.
331331

332332
Install pre-commit hooks
333333
------------------------
@@ -365,9 +365,9 @@ About the *xarray* documentation
365365
--------------------------------
366366

367367
The documentation is written in **reStructuredText**, which is almost like writing
368-
in plain English, and built using `Sphinx <http://sphinx-doc.org/>`__. The
368+
in plain English, and built using `Sphinx <https://www.sphinx-doc.org/>`__. The
369369
Sphinx Documentation has an excellent `introduction to reST
370-
<http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html>`__. Review the Sphinx docs to perform more
370+
<https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html>`__. Review the Sphinx docs to perform more
371371
complex changes to the documentation as well.
372372

373373
Some other important things to know about the docs:
@@ -388,7 +388,7 @@ Some other important things to know about the docs:
388388
extend it in a similar manner.
389389

390390
- The tutorials make heavy use of the `ipython directive
391-
<http://matplotlib.org/sampledoc/ipython_directive.html>`_ sphinx extension.
391+
<https://matplotlib.org/sampledoc/ipython_directive.html>`_ sphinx extension.
392392
This directive lets you put code in the documentation which will be run
393393
during the doc build. For example:
394394

@@ -551,7 +551,7 @@ xarray uses several tools to ensure a consistent code format throughout the proj
551551

552552
- `ruff <https://github.com/astral-sh/ruff>`_ for formatting, code quality checks and standardized order in imports
553553
- `absolufy-imports <https://github.com/MarcoGorelli/absolufy-imports>`_ for absolute instead of relative imports from different files,
554-
- `mypy <http://mypy-lang.org/>`_ for static type checking on `type hints
554+
- `mypy <https://mypy-lang.org/>`_ for static type checking on `type hints
555555
<https://docs.python.org/3/library/typing.html>`_.
556556

557557
We highly recommend that you setup `pre-commit hooks <https://pre-commit.com/>`_
@@ -624,7 +624,7 @@ Test-driven development/code writing
624624
------------------------------------
625625

626626
*xarray* is serious about testing and strongly encourages contributors to embrace
627-
`test-driven development (TDD) <http://en.wikipedia.org/wiki/Test-driven_development>`_.
627+
`test-driven development (TDD) <https://en.wikipedia.org/wiki/Test-driven_development>`_.
628628
This development process "relies on the repetition of a very short development cycle:
629629
first the developer writes an (initially failing) automated test case that defines a desired
630630
improvement or new function, then produces the minimum amount of code to pass that test."
@@ -636,7 +636,7 @@ Adding tests is one of the most common requests after code is pushed to *xarray*
636636
it is worth getting in the habit of writing tests ahead of time so that this is never an issue.
637637

638638
Like many packages, *xarray* uses `pytest
639-
<http://doc.pytest.org/en/latest/>`_ and the convenient
639+
<https://doc.pytest.org/en/latest/>`_ and the convenient
640640
extensions in `numpy.testing
641641
<https://numpy.org/doc/stable/reference/routines.testing.html>`_.
642642

@@ -669,7 +669,7 @@ typically find tests wrapped in a class.
669669
class TestReallyCoolFeature: ...
670670
671671
Going forward, we are moving to a more *functional* style using the
672-
`pytest <http://doc.pytest.org/en/latest/>`__ framework, which offers a richer
672+
`pytest <https://doc.pytest.org/en/latest/>`__ framework, which offers a richer
673673
testing framework that will facilitate testing and developing. Thus, instead of
674674
writing test classes, we will write test functions like this:
675675

@@ -816,7 +816,7 @@ speed up local testing on multicore machines, by running pytest with the optiona
816816
This can significantly reduce the time it takes to locally run tests before
817817
submitting a pull request.
818818
819-
For more, see the `pytest <http://doc.pytest.org/en/latest/>`_ documentation.
819+
For more, see the `pytest <https://doc.pytest.org/en/latest/>`_ documentation.
820820
821821
Running the performance test suite
822822
----------------------------------
@@ -891,7 +891,7 @@ Learn `how to write a benchmark and how to use asv from the documentation <https
891891
see https://github.com/pydata/xarray/pull/5066
892892
893893
The *xarray* benchmarking suite is run remotely and the results are
894-
available `here <http://pandas.pydata.org/speed/xarray/>`_.
894+
available `here <https://pandas.pydata.org/speed/xarray/>`_.
895895
896896
Documenting your code
897897
---------------------
@@ -1062,7 +1062,7 @@ PR checklist
10621062
- **Test your code**.
10631063
10641064
- Write new tests if needed. See `"Test-driven development/code writing" <https://docs.xarray.dev/en/stable/contributing.html#test-driven-development-code-writing>`_.
1065-
- Test the code using `Pytest <http://doc.pytest.org/en/latest/>`_. Running all tests (type ``pytest`` in the root directory) takes a while, so feel free to only run the tests you think are needed based on your PR (example: ``pytest xarray/tests/test_dataarray.py``). CI will catch any failing tests.
1065+
- Test the code using `Pytest <https://doc.pytest.org/en/latest/>`_. Running all tests (type ``pytest`` in the root directory) takes a while, so feel free to only run the tests you think are needed based on your PR (example: ``pytest xarray/tests/test_dataarray.py``). CI will catch any failing tests.
10661066
- By default, the upstream dev CI is disabled on pull request and push events. You can override this behavior per commit by adding a ``[test-upstream]`` tag to the first line of the commit message. For documentation-only commits, you can skip the CI per commit by adding a ``[skip-ci]`` tag to the first line of the commit message.
10671067
10681068
- **Properly format your code** and verify that it passes the formatting guidelines set by `ruff <https://github.com/astral-sh/ruff>`_. See `"Code formatting" <https://docs.xarray.dev/en/stablcontributing.html#code-formatting>`_. You can use `pre-commit <https://pre-commit.com/>`_ to run these automatically on each commit.

doc/ecosystem.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Geosciences
5252
- `xclim <https://xclim.readthedocs.io/>`_: A library for calculating climate science indices with unit handling built from xarray and dask.
5353
- `xESMF <https://pangeo-xesmf.readthedocs.io/>`_: Universal regridder for geospatial data.
5454
- `xgcm <https://xgcm.readthedocs.io/>`_: Extends the xarray data model to understand finite volume grid cells (common in General Circulation Models) and provides interpolation and difference operations for such grids.
55-
- `xmitgcm <http://xmitgcm.readthedocs.io/>`_: a python package for reading `MITgcm <https://mitgcm.org/>`_ binary MDS files into xarray data structures.
55+
- `xmitgcm <https://xmitgcm.readthedocs.io/>`_: a python package for reading `MITgcm <https://mitgcm.org/>`_ binary MDS files into xarray data structures.
5656
- `xnemogcm <https://github.com/rcaneill/xnemogcm/>`_: a package to read `NEMO <https://nemo-ocean.eu/>`_ output files and add attributes to interface with xgcm.
5757

5858
Machine Learning
@@ -87,11 +87,11 @@ Extend xarray capabilities
8787
- `xr-scipy <https://xr-scipy.readthedocs.io>`_: A lightweight scipy wrapper for xarray.
8888
- `X-regression <https://github.com/kuchaale/X-regression>`_: Multiple linear regression from Statsmodels library coupled with Xarray library.
8989
- `xskillscore <https://github.com/xarray-contrib/xskillscore>`_: Metrics for verifying forecasts.
90-
- `xyzpy <http://xyzpy.readthedocs.io>`_: Easily generate high dimensional data, including parallelization.
90+
- `xyzpy <https://xyzpy.readthedocs.io>`_: Easily generate high dimensional data, including parallelization.
9191

9292
Visualization
9393
~~~~~~~~~~~~~
94-
- `datashader <https://datashader.org>`_, `geoviews <http://geoviews.org>`_, `holoviews <http://holoviews.org/>`_, : visualization packages for large data.
94+
- `datashader <https://datashader.org>`_, `geoviews <https://geoviews.org>`_, `holoviews <https://holoviews.org/>`_, : visualization packages for large data.
9595
- `hvplot <https://hvplot.pyviz.org/>`_ : A high-level plotting API for the PyData ecosystem built on HoloViews.
9696
- `psyplot <https://psyplot.readthedocs.io>`_: Interactive data visualization with python.
9797
- `xarray-leaflet <https://github.com/davidbrochart/xarray_leaflet>`_: An xarray extension for tiled map plotting based on ipyleaflet.

doc/examples/ROMS_ocean_model.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"The Regional Ocean Modeling System ([ROMS](http://myroms.org)) is an open source hydrodynamic model that is used for simulating currents and water properties in coastal and estuarine regions. ROMS is one of a few standard ocean models, and it has an active user community.\n",
14+
"The Regional Ocean Modeling System ([ROMS](https://www.myroms.org/)) is an open source hydrodynamic model that is used for simulating currents and water properties in coastal and estuarine regions. ROMS is one of a few standard ocean models, and it has an active user community.\n",
1515
"\n",
1616
"ROMS uses a regular C-Grid in the horizontal, similar to other structured grid ocean and atmospheric models, and a stretched vertical coordinate (see [the ROMS documentation](https://www.myroms.org/wiki/Vertical_S-coordinate) for more details). Both of these require special treatment when using `xarray` to analyze ROMS ocean model output. This example notebook shows how to create a lazily evaluated vertical coordinate, and make some basic plots. The `xgcm` package is required to do analysis that is aware of the horizontal C-Grid."
1717
]

doc/examples/multidimensional-coords.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"cell_type": "markdown",
127127
"metadata": {},
128128
"source": [
129-
"In order to visualize the data on a conventional latitude-longitude grid, we can take advantage of xarray's ability to apply [cartopy](http://scitools.org.uk/cartopy/index.html) map projections."
129+
"In order to visualize the data on a conventional latitude-longitude grid, we can take advantage of xarray's ability to apply [cartopy](https://scitools.org.uk/cartopy/docs/latest/) map projections."
130130
]
131131
},
132132
{

doc/getting-started-guide/why-xarray.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ under active development.
106106
See our technical :ref:`roadmap` for more details, and feel free to reach out
107107
with questions about whether xarray is the right tool for your needs.
108108

109-
.. _datarray: https://github.com/fperez/datarray
110-
.. _Dask: http://dask.org
111-
.. _matplotlib: http://matplotlib.org
112-
.. _netCDF: http://www.unidata.ucar.edu/software/netcdf
113-
.. _NumPy: http://www.numpy.org
114-
.. _pandas: http://pandas.pydata.org
115-
.. _SciPy: http://www.scipy.org
109+
.. _datarray: https://github.com/BIDS/datarray
110+
.. _Dask: https://www.dask.org
111+
.. _matplotlib: https://matplotlib.org
112+
.. _netCDF: https://www.unidata.ucar.edu/software/netcdf
113+
.. _NumPy: https://numpy.org
114+
.. _pandas: https://pandas.pydata.org
115+
.. _SciPy: https://www.scipy.org

doc/roadmap.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ implementations, e.g.:
148148
- Other ndarray objects, e.g., sparse, xnd, xtensor.
149149

150150
Our strategy has been to pursue upstream improvements in NumPy (see
151-
`NEP-22 <http://www.numpy.org/neps/nep-0022-ndarray-duck-typing-overview.html>`__)
151+
`NEP-22 <https://numpy.org/neps/nep-0022-ndarray-duck-typing-overview.html>`__)
152152
for supporting a complete duck-typing interface using with NumPy's
153153
higher level array API. Improvements in NumPy's support for custom data
154154
types would also be highly useful for xarray users.

doc/user-guide/dask.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependency in a future version of xarray.
1313

1414
For a full example of how to use xarray's Dask integration, read the
1515
`blog post introducing xarray and Dask`_. More up-to-date examples
16-
may be found at the `Pangeo project's gallery <http://gallery.pangeo.io/>`_
16+
may be found at the `Pangeo project's gallery <https://gallery.pangeo.io/>`_
1717
and at the `Dask examples website <https://examples.dask.org/xarray.html>`_.
1818

1919
.. _blog post introducing xarray and Dask: https://stephanhoyer.com/2015/06/11/xray-dask-out-of-core-labeled-arrays/

doc/user-guide/io.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ to automatically decode the values in the netCDF objects according to
275275
has an invalid "units" or "calendar" attribute. For these cases, you can
276276
turn this decoding off manually.
277277

278-
.. _CF conventions: http://cfconventions.org/
278+
.. _CF conventions: https://cfconventions.org/
279279

280280
You can view this encoding information (among others) in the
281281
:py:attr:`DataArray.encoding` and
@@ -343,8 +343,8 @@ See its docstring for more details.
343343
(``compat='override'``).
344344

345345

346-
.. _dask: http://dask.org
347-
.. _blog post: http://stephanhoyer.com/2015/06/11/xray-dask-out-of-core-labeled-arrays/
346+
.. _dask: https://www.dask.org
347+
.. _blog post: https://stephanhoyer.com/2015/06/11/xray-dask-out-of-core-labeled-arrays/
348348

349349
Sometimes multi-file datasets are not conveniently organized for easy use of :py:func:`open_mfdataset`.
350350
One can use the ``preprocess`` argument to provide a function that takes a dataset
@@ -496,7 +496,7 @@ If character arrays are used:
496496
Technically, you can use
497497
`any string encoding recognized by Python <https://docs.python.org/3/library/codecs.html#standard-encodings>`_ if you feel the need to deviate from UTF-8,
498498
by setting the ``_Encoding`` field in ``encoding``. But
499-
`we don't recommend it <http://utf8everywhere.org/>`_.
499+
`we don't recommend it <https://utf8everywhere.org/>`_.
500500
- The character dimension name can be specified by the ``char_dim_name`` field of a variable's
501501
``encoding``. If the name of the character dimension is not specified, the default is
502502
``f'string{data.shape[-1]}'``. When decoding character arrays from existing files, the
@@ -1395,7 +1395,7 @@ For CSV files, one might also consider `xarray_extras`_.
13951395

13961396
.. _xarray_extras: https://xarray-extras.readthedocs.io/en/latest/api/csv.html
13971397

1398-
.. _IO tools: http://pandas.pydata.org/pandas-docs/stable/io.html
1398+
.. _IO tools: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html
13991399

14001400

14011401
Third party libraries

xarray/backends/zarr.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def _determine_zarr_chunks(
250250
# if there are no chunks in encoding but there are dask chunks, we try to
251251
# use the same chunks in zarr
252252
# However, zarr chunks needs to be uniform for each array
253-
# http://zarr.readthedocs.io/en/latest/spec/v1.html#chunks
253+
# https://zarr-specs.readthedocs.io/en/latest/v2/v2.0.html#chunks
254254
# while dask chunks can be variable sized
255-
# http://dask.pydata.org/en/latest/array-design.html#chunks
255+
# https://dask.pydata.org/en/latest/array-design.html#chunks
256256
if var_chunks and not enc_chunks:
257257
if any(len(set(chunks[:-1])) > 1 for chunks in var_chunks):
258258
raise ValueError(
@@ -1377,7 +1377,7 @@ def open_zarr(
13771377
13781378
References
13791379
----------
1380-
http://zarr.readthedocs.io/
1380+
https://zarr.readthedocs.io/
13811381
"""
13821382
from xarray.backends.api import open_dataset
13831383

xarray/coding/strings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _numpy_char_to_bytes(arr):
210210
# see https://github.com/numpy/numpy/issues/25916
211211
# and https://github.com/numpy/numpy/pull/25922
212212
copy = None if HAS_NUMPY_2_0 else False
213-
# based on: http://stackoverflow.com/a/10984878/809705
213+
# based on: https://stackoverflow.com/a/10984878/809705
214214
arr = np.array(arr, copy=copy, order="C")
215215
dtype = "S" + str(arr.shape[-1])
216216
return arr.view(dtype).reshape(arr.shape[:-1])

xarray/core/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def __dir__(self) -> list[str]:
352352

353353
def _ipython_key_completions_(self) -> list[str]:
354354
"""Provide method for the key-autocompletions in IPython.
355-
See http://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
355+
See https://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion
356356
For the details.
357357
"""
358358
items = {

0 commit comments

Comments
 (0)