Changeset 18172 for trunk/FACT++


Ignore:
Timestamp:
04/20/15 08:02:37 (9 years ago)
Author:
dneise
Message:
Also this file has been changed by Daniela Dorner in February, while introducing the new CUSTOM run feature. It has been tested now since quite a while, so I take the liberty to check it in.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Observation_class.js

    r18113 r18172  
    4343        ret[i].zd     = parseFloat(obs.zd);
    4444        ret[i].az     = parseFloat(obs.az);
     45        ret[i].time   = parseInt(obs.time);
     46        ret[i].threshold = parseInt(obs.threshold);
    4547        ret[i].lidclosed = obs.lidclosed;
     48        ret[i].biason = obs.biason;
    4649        ret[i].rstype = obs.rstype ? obs.rstype : "default";
    4750        ret[i].sub    = i;
     
    5760            return rc;
    5861        }
    59    
     62
    6063        switch (ret[i].task)
    6164        {
     
    99102            break;
    100103
     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
    101111        case 'SINGLEPE':
    102112        case 'OVTEST':
Note: See TracChangeset for help on using the changeset viewer.