Skip to content

Commit

Permalink
das-developers/das2java#107: second demo of bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jbfaden committed Apr 30, 2024
1 parent 8951b0c commit 0c9714a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bugs/2024/20240429/demoBundleBMagBug.jy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
setScriptDescription('''Autoplot never exposes bundled data
xtags, so you need to explicitly add them in. I believe
it's because if I automatically look for DEPEND_0 on any of
the bundled datasets, then sometimes a variable intended for
the X values is ignored. There really needs to be something
that disambiguates this.''')

# here is where it is not intended to assert a depenency.
BXYZ= getDataSet('vap+hapi:https://cdaweb.gsfc.nasa.gov/hapi?id=AC_K0_MFI&timerange=2024-04-20&parameters=Time,BGSEc')
BX= unbundle(BXYZ,0)
BY= unbundle(BXYZ,1)
BZ= unbundle(BXYZ,2)

ds= bundle( BX, BY, BZ )

print ds
print xtags(ds)
print xtags(unbundle(ds,0))

plot( 0, ds )

ds= bundle( BX, BY, BZ )
ds= dataset( xtags(BX),ds )

plot( 1, ds )

0 comments on commit 0c9714a

Please sign in to comment.