-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
das-developers/das2java#107: second demo of bundle
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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¶meters=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 ) |