Beispiel #1
0
def loadDataFile(Obs_xml):
    output_file = Obs_xml.getObservationFilename()
    Obs_data = ObsDATA("amanzi-output/" + output_file)
    Obs_data.getObservationData()
    coords = Obs_xml.getAllCoordinates()

    for obs in Obs_data.observations.itervalues():
        region = obs.region
        obs.coordinate = coords[region]
    return Obs_data
def loadDataFile(Obs_xml,directory):
    # load the data file
    #  -- use above xml object to get observation filename
    #  -- create an ObservationData object
    #  -- load the data using this object
    
    output_file =  Obs_xml.getObservationFilename()
    Obs_data = ObsDATA(os.path.join(directory,output_file))
    Obs_data.getObservationData()
    coords = Obs_xml.getAllCoordinates()

    for obs in Obs_data.observations.itervalues():
        region = obs.region
        obs.coordinate = coords[region]
    return Obs_data
Beispiel #3
0
def load_amanzi_obs():
    output_file = obs_xml.getObservationFilename()
    obs_data = ObsDATA("amanzi-output/"+output_file)
    obs_data.getObservationData()   # get all data
    return obs_data
def load_amanzi_obs():
    # output_file=obs_xml.getObservationFilename()
    output_file = "observations.out"
    obs_data = ObsDATA("amanzi-output/" + output_file)
    obs_data.getObservationData()
    return obs_data
Beispiel #5
0
def loadDataFile(Obs_xml):
    output_file = Obs_xml.getObservationFilename()
    Obs_data = ObsDATA("amanzi-output/"+output_file)
    Obs_data.getObservationData()
    return Obs_data