Git Product home page Git Product logo

xspharm's People

Contributors

senclimate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

leosiqueira

xspharm's Issues

automatic spatial dimensional names

Description

Current version: v0.1.1 has default spatial dims [lat, lon]. It is nice to have improvement to include spatial dims' name automatically (for instance, latitude and longitude).

self.nlat = len(grid_ds["lat"])
self.nlon = len(grid_ds["lon"])
self.fvor = 2.0 * omega * np.sin(np.deg2rad(grid_ds["lat"]))

spatial_dims = ["lat", "lon"]

xspharm/xspharm/xspharm.py

Lines 317 to 319 in c36983f

return input_data.transpose("lat", "lon", other_dims[0])
elif len(other_dims) >= 2:
return input_data.stack(nt=other_dims).transpose("lat", "lon", "nt")

xspharm/xspharm/xspharm.py

Lines 331 to 333 in c36983f

return sp_data.transpose(other_dims[0], "lat", "lon")
elif len(other_dims) >= 2:
return sp_data.unstack("nt").transpose(*other_dims, "lat", "lon")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.