Changeset 18172
- Timestamp:
- 04/20/15 08:02:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Observation_class.js
r18113 r18172 43 43 ret[i].zd = parseFloat(obs.zd); 44 44 ret[i].az = parseFloat(obs.az); 45 ret[i].time = parseInt(obs.time); 46 ret[i].threshold = parseInt(obs.threshold); 45 47 ret[i].lidclosed = obs.lidclosed; 48 ret[i].biason = obs.biason; 46 49 ret[i].rstype = obs.rstype ? obs.rstype : "default"; 47 50 ret[i].sub = i; … … 57 60 return rc; 58 61 } 59 62 60 63 switch (ret[i].task) 61 64 { … … 99 102 break; 100 103 104 case 'CUSTOM': 105 106 if (isNaN(ret[i].az) || isNaN(ret[i].az) || isNaN(ret[i].time) || isNaN(ret[i].threshold)) 107 throw new Error("Observation must have 'zd' & 'az', 'time' and 'threshold' " + 108 "if 'task' == 'custom' "); 109 break; 110 101 111 case 'SINGLEPE': 102 112 case 'OVTEST':
Note:
See TracChangeset
for help on using the changeset viewer.