comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Subset of a structure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Subset of a structure? [message #87246] Mon, 20 January 2014 14:36 Go to previous message
troydporter13 is currently offline  troydporter13
Messages: 5
Registered: January 2014
Junior Member
Hi,

I am trying to get a subset from a structure. I have the following;

help, pm25_total, /struc

** Structure <358d280>, 11 tags, length=7160, data length=6566, refs=1:
STATION STRING 'Station1'
OBSERVABLE STRING 'Value1
UNITS STRING ' microg m-3'
RATE INT 600
REPORTS_GOOD STRUCT -> <Anonymous> Array[144]
REPORTS_BAD STRUCT -> <Anonymous> Array[1]
REPORTS_GEN STRUCT -> <Anonymous> Array[1]
GAPS STRUCT -> <Anonymous> Array[1]
JS_GAPS STRUCT -> <Anonymous> Array[1]
P_FILL STRUCT -> <Anonymous> Array[1]
STATS STRUCT -> <Anonymous> Array[1]

help, pm25_total.reports_good, /struc

** Structure <3504e50>, 4 tags, length=48, data length=44, refs=2:
TIME_GOOD STRING '2012/06/01 00:00:00'
TIME_JS_GOOD DOUBLE 3.9182400e+008
VALUE_GOOD FLOAT 13.7600
COMMENT_GOOD STRING ''

help, pm25_total.reports_good.time_js_good, /struc
<Expression> DOUBLE = Array[144, 5]

Time_JS_good is in julian seconds so if there is a zero value in my data I want to eliminate it.
I have tried;

good_val_pm25 = where(PM25_TOTAL.reports_GOOD.time_JS_GOOD gt 1, good_val_pm25_count)

and then tried to use PM25_TOTAL.reports_GOOD.time_JS_GOOD(good_val_pm25) but it does not work. Any ideas why?

Troy
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: averaging w.r.t time resolution
Next Topic: Box and Whisker Plotting

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:44:18 PDT 2025

Total time taken to generate the page: 0.00478 seconds