Giter Club home page Giter Club logo

das2dlm's People

Contributors

cpiker avatar voyagerpws avatar xandrd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

das2dlm's Issues

Provide structured source info

The server=dsdf end point is not directly supported in the das2dlm API. Adding a wrapper for this end-point would allow users to discover the extra sub-values that can be transmitted to a server. For some datasets, such as Juno/WAV/Survey these are particularly useful.

Though a full catalog-node query interface (as supported by das2py) would be more useful for auto-GUI's, a general structure output function would be handy. The presumed function interface would be

   das2c_srcinfo(sServer, sPath)

Unknown error in das2c_readhttp. dataset: Cassini/Ephemeris/Jupiter

The following example (dataset: Cassini/Ephemeris/Jupiter) results in unknown error in IDL 8.7.2 on Windows:

requestUrl = 'http://planet.physics.uiowa.edu/das/das2Server?server=dataset&dataset=Cassini/Ephemeris/Jupiter&start_time=2000-12-29T00:00:00&end_time=2000-12-31T00:00:00&interval=60'
query = das2c_readhttp(requestUrl)

Output:

% DAS2C_READHTTP: %s
% Execution halted at: $MAIN$

All other Cassini/Ephemeris/datasets seems to be working fine

The !NULL problem

das2dlm functions return !null when some action couldn't complete so that higher level programs could gracefully handle problems.

Unfortunately, the !null system variable was not introduced into IDL until version 8.0. For compatibility with old versions of IDL, the API will have to throw messages or return something other then !null for invalid requests.

IDL crashes on using das2c_data when N_VALS is 0

As subject says, IDL crashes on calling das2c_data when das2 dataset have no data.

Request URL that cause the propblem: http://planet.physics.uiowa.edu/das/das2Server?server=dataset&dataset=Cassini/MAG/Differential_C11&start_time=2013-01-01&end_time=2013-01-02&ascii=1

[00]000414<stream compression="none" version="2.2" >
  <properties String:title="Pre-Release: MAG Difference Field%{xCacheResInfo}"
              String:xLabel="SCET (UTC)"
              String:yScaleType="linear"
              DatumRange:xCacheRange="2013-01-01T00:00:00.000 to 2013-01-02T00:00:00.000 UTC"
              String:xCacheResInfo=" (Intrinsic Resolution)"
              String:sourceId="das2_ascii"/>
</stream>
[01]000365<packet>
  <x type="time24" units="us2000">
  </x>
  <y name="radial" type="ascii14" units="nT">
    <properties String:yLabel="dB!bR!n (C11)"/>
  </y>
  <y name="southward" type="ascii14" units="nT">
    <properties String:yLabel="dB!bΘ!n (C11)"/>
  </y>
  <y name="azimuthal" type="ascii14" units="nT">
    <properties String:yLabel="B!bΦ!n"/>
  </y>
</packet>
[xx]000127<exception type="NoDataInInterval" message="No FGM data in the interval 2013-01-01T00:00:00.000 to 2013-01-02T00:00:00.000" />

IDL code to reproduces the error:

; Tesh of the Cassini/MAG/Differential_C11 data set

url = 'http://planet.physics.uiowa.edu/das/das2Server?server=dataset'
dataset = 'dataset=Cassini/MAG/Differential_C11'
time1 = 'start_time=2013-01-01'
time2 = 'end_time=2013-01-02'
requestUrl = url + '&' + dataset + '&' + time1 + '&' + time2
print, requestUrl

; Qeury
query = das2c_readhttp(requestUrl)

; Get dataset
ds = das2c_datasets(query, 0)

; inspect
print, ds, /IMPLIED_PRINT

; Pdims
pdims = das2c_pdims(ds);

; inspect
print, pdims, /IMPLIED_PRINT

;stop

p = das2c_pdims(ds, 'time') ; physical dimension
v = das2c_vars(p, 'center') ; variable
d = das2c_data(v) ; data

res = das2c_free(query) 
end

The script that reproduces the error:
das2dlm_load_cassini_mag_dc11.zip

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.