Coder Social home page Coder Social logo

aymeric-spiga / planetoplot Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 4.0 4.57 MB

a cool python-based tool to plot stuff and explore data

Home Page: https://github.com/aymeric-spiga/planetoplot/blob/master/README.md

License: GNU General Public License v2.0

Python 16.24% Shell 2.48% HTML 0.45% Fortran 0.11% Jupyter Notebook 80.72%

planetoplot's People

Contributors

aymeric-spiga avatar debbardet avatar jvatantollone avatar tanguy-bertrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

planetoplot's Issues

accès distant netcdf python opendap

Le protocole OpeNDAP, m'a l'air tout a fait étudier pour.

http://docs.opendap.org/index.php/QuickStart

Avec la librairie PyDAP on peut faire tourner un serveur OpeNDAP sous le serveur Apache (1) et côté client on peut l'interroger en python gards ou ferret et notamment faire de la lecture on-the-fly (2)

  1. https://pydap.readthedocs.io/en/latest/server.html#apache

  2. https://publicwiki.deltares.nl/display/OET/Reading+data+from+OpenDAP+using+python

En couplant ça à PlanetoPlot y'a moyen de faire un truc pas mal.

correctls by default ?

  • Pourquoi doit-on avoir un axe des temps qui croit de manière monotone
    ? J'ai des donnés instrumentales avec des gaps temporels qui ne sont pas
    présents explicitement dans le fichier netCDF. Forcer la monotonie de
    l'axe des temps empêche de visualiser correctement ces données avec
    planetoplot.

Quel est l'axe des temps que tu utilises ?

L'astuce monotone c'est juste une facçon de gagner du temps pour lire les fichiers avec beaucoup de sorties temporelles (sinon il est toujours un peu lent). Mais il n'y a pas d'autres raisons. Je peux changer le comportement par défaut. Par exemple pour Ls j'avais ajouté un correctls pour changer ça.

Ha oui l'option 'correctls' correspond à ce que je veux faire. Dans ce cas-ci j'utilise un axe Ls, mais avec des jours on s'en sort aussi avec 'correctlsnoadd', donc tout fonctionne. Peut-être on peut faire une option du genre 'notmonotonous' ou 'readtaxis' qui est un clone de 'correctlsnoadd' pour plus de clarté dans le cas où on utilise pas des Ls.

1D variable

pour lire une variable 1D dans un fichier NetCDF, il faut préciser x=0, y=0.

[FR] question à propos des objets pp (pour trouver le champ tracé)

(question par S. Fromang)

Ma question est la suivante: je travaille dans ipython. Lorsque
j'appelle le script, je me recupère donc un objet (mettons "dpsi") en
retour de l'appel, en plus du plot. Si j'appelle la méthode plot() sur
cette objet, il me refait le plot. Mais si j'essaie de visualiser ce qui
est stocké dans dpsi.f, ca ne correspond pas. Voila la sequence:

dpsi=anomaly.anomaly(var='psi',tmin=0.,tmax=0.,tdiff=15.,zlevel=0)

dpsi.plot()

imshow(dspi.f)

C'est l'appel a imshow(dspi.f) qui pose problème. Pourquoi?

Du coup, je ne comprends pas ou est stockée l'info sur le champ que je
veux visualiser. Il s'en sort lors de l'appel a la méthode plot, mais
manifestement l'info n'est pas dans dpsi.f.

Bugs with Matplotlib 2.0+

Some of the changes brought in matplotlib 2.0+ (https://matplotlib.org/api/api_changes.html) since last year, lead to crashes and incompatibility of planetoplot...

Especially "The axisbg and axis_bgcolor properties on Axes have been deprecated in favor of facecolor." is quite annoying ...

To be short, we cannot plot anything with latest versions of mpl as long as this one (at least) is not fixed ...

use of xarray

planetoplot could use xarray, which would make a lot more versatile and less complicated library

dimension problem

Quand j'affiche un champ dont les dimensions x et y ont la même
taille, il arrive que le champ affiché soit "transposé" par rapport à
ses axes. En effet, dans ppplot on ne cherche à transposer un champ que
lorsque les axes sont de tailles différentes (cf. ppplot.py, L 774), et
le cas particulier où shape[0] == shape[1] n'est pas pris en compte. Je
ne vois pas de solution élégante à ce problème, si ce n'est d'identifier
les noms des axes et le nom du champ à afficher, ce qui nécessite de
remanier un peu planetoplot.

use of --modx

When trying to use --modx option I get another UnboundLocalError

/path/to/planetoplot/modules/ppplot.py", line 971, in make
self.ax = labelmodulo(ax,self.modx)
UnboundLocalError: local variable 'ax' referenced before assignment

I tried to fix it with self.ax = labelmodulo(self.ax,self.modx) but then x axis is blank ...

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.