Code Monkey home page Code Monkey logo

das2py's People

Contributors

baptistececconi avatar cpiker avatar kaiwens7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

das2py's Issues

SSL Error with das2py

I'm having a problem with das2py it seems that I cannot reach any data on the server, when I try to reach any node (except iowa) I get the following message

src = das2.get_node('tag:das2.org,2012:site:/uiowa/juno')INFO: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

INFO: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/envs/python37/lib/python3.7/das2/init.py", line 250, in get_node
dDef = _das2.get_node(sPathId)
_das2.Error: Node U. Iowa (URI 'tag:das2.org,2012:site:/uiowa') has no child node that starts with juno
(Reported from das2/node.c, line 539)

Surprisingly, src = das2.get_node('tag:das2.org,2012:site:/uiowa') doesnt return an error and in that case src['juno'].props returns

{'name': 'Juno',
'title': 'Jupiter polar orbiter - Launch date 2011-08-05',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/juno.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/juno'}

If that can help I have this :

src.props

{'catalog': {'cassini': {'name': 'Cassini',
'title': 'Saturn System Explorer - Orbit Insertion 2004-06-30',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/cassini.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/cassini'},
'de': {'name': 'DE',
'title': 'Earth polar orbiters - Launch date 1981-08-03',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/de.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/de'},
'earth': {'name': 'Earth',
'title': 'Earth based observatories',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/earth.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/earth'},
'galileo': {'name': 'Galileo',
'title': 'Jupiter equatorial orbiter - Launch date 1989-10-13',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/galileo.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/galileo'},
'isee': {'name': 'ISEE',
'title': 'International Sun-Earth Explorers - Launch date 1977-10-22',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/isee.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/isee'},
'juno': {'name': 'Juno',
'title': 'Jupiter polar orbiter - Launch date 2011-08-05',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/juno.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/juno'},
'mars_express': {'name': 'Mars Express',
'title': 'Mars polar orbiter - Launch date 2003-06-02',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/mars_express.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/mars_express'},
'maven': {'name': 'Maven',
'title': 'Mars Atmosphere and Volatile Evolution Mission - Orbit Insertion 2014-09-22',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/maven.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/maven'},
'stereo': {'name': 'Stereo',
'title': 'Dual Solar Terrestrial Relation Observatories - Launch date 2006-10-26',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/stereo.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/stereo'},
'van_allen_probes': {'name': 'Van Allen Probes',
'title': "Twin probes of the Earth's inner and outer radiation belts, launched on 2012-08-30",
'type': 'Catalog',
'urls': ['https://emfisis.physics.uiowa.edu/~cwp/van_allen_probes.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/van_allen_probes'},
'voyager': {'name': 'Voyager',
'title': 'Dual Spacecraft Mission to the Outer Planets, and Beyond',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/voyager.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/voyager'},
'wind': {'name': 'Wind',
'title': 'WIND Solar-Terrestrial Mission - Launch date 1994-11-01',
'type': 'Catalog',
'urls': ['http://das2.org/catalog/das/site/uiowa/wind.json'],
'_path': 'tag:das2.org,2012:site:/uiowa/wind'}},
'name': 'U. Iowa',
'title': 'University of Iowa, Department of Physics and Astronomy',
'type': 'Catalog',
'version': '0.4',
'_url': 'https://raw.githubusercontent.com/das-developers/das-cat/master/cat/das/site/uiowa.json',
'_path': 'tag:das2.org,2012:site:/uiowa'}

I try to update das2 numpy and spacepy but thats didn't help.

Maybe it is related to the fact that when I want to edit the url of a plot (from Juno data) on a saved vap file on autoplot I have this
image

However, I managed to fix this by changing the adress with https instead of http.

Examples not complete

The following example scripts are not finished:

  • ex06_astro_lwa1_multiscale.py
  • ex07_cassini_rpws_query_opts.py
  • ex09_van_allen_probes_mag_ephem.py

These examples need to be completed and a sample plot should be provided.

PIP Package

Currently the only pre-packaged version of das2py with it's das2C dependency included is an Anaconda3 package. Producing a PIP package, presumably in wheel format, is a high priority.

Add Waves/burst data

Add functions that read and plot Juno/Waves/burst data from PDS (assigned to CorentinLouis)

das2.convert for undefined units error

The following code snippet fails with a hard segfault:

import das2
das2.convert(1.0, "us2000", "TT2000")

This is was not listed as a das2C issue because it is most likely triggered by improper module initialization.

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.