Thinking with Xarray

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 4

  • @karstenhannes9628
    @karstenhannes9628 22 дні тому

    Hi Deepak,
    thanks for the awesome tutorial :)
    I have a question concerning the coarsen() and construct functio().
    You mentioned that the coordinates of the new dimensions (year and month in your example) do not inherit coordinates.
    I totally get the the 'outer' dimension year cannot inherit coordinates. However the 'inner' dimension month could conserve the coordinates ion theory, right? Say all these entries had an additional datetime coordinate. The datetime coordinates are not inherited for the 'month' dimension. Is there any way to achieve this behaviour?
    I am using coarsen to do some filtering in the 'year' dimension in this example, but would then would be specifically interested in conserving the coordinate information.
    Cheers, Jan

  • @thecatnameddora
    @thecatnameddora 2 роки тому

    Hello! How can I calculate the depth of 20-degree celsius temperature with the xarray library?

  • @ishitahumnabadkar7855
    @ishitahumnabadkar7855 6 місяців тому

    how do we download the netcdf file?

    • @projectpythia2756
      @projectpythia2756  6 місяців тому

      The data used for this repository lives within the Xarray `tutorial` module that comes with the package installation, it is accessed via `da = xr.tutorial.load_dataset("air_temperature", engine="netcdf4").air`.