Changeset 5696


Ignore:
Timestamp:
Aug 27, 2008, 10:31:10 AM (14 years ago)
Author:
duncan
Message:

comments mainly

Location:
anuga_validation/Hinwood_2008
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/Hinwood_2008/calc_rmsd.py

    r5695 r5696  
    119119    Load a csv file, where the first row is the column header and
    120120    the first colum explains the rows.
     121
     122    returns the data as two vectors and an array.
     123   
    121124    """
    122125   
     
    145148
    146149    return times, locations, sensors                 
    147    
    148        
    149        
    150 
    151 # Return a bunch of lists
    152 # The err files, for all scenarios
     150
     151   
    153152def err_files(scenarios, outputdir_tag, quantity='stage'):
    154153    """
     
    205204#-------------------------------------------------------------
    206205if __name__ == "__main__":
    207     """
    208     """
     206   
    209207    from scenarios import scenarios
    210208   
  • anuga_validation/Hinwood_2008/prepare_time_boundary.py

    r5691 r5696  
    11"""
    2 Script for running a breaking wave simulation of Jon Hinwoods wave tank.
    3 Note: this is based on the frinction_ua_flume_2006 structure.
    4 
     2A file conversion.
    53
    64Duncan Gray, GA - 2007
     
    2119
    2220def csv2tms(filename, offshore_bed_elevation):
    23     """Convert benchmark 2 time series to NetCDF tms file.
     21    """
     22    Convert Hinwood boundary file to NetCDF tms file.
    2423    the filename is the name of the output tms file, eg 'hi.tsm'.
    2524    There must be an equivalent .csv file, eg 'hi.csv'.
  • anuga_validation/Hinwood_2008/run_dam.py

    r5695 r5696  
    3737         use_limits=True,
    3838         end_tag = ''):
     39    """
     40    Run a simulation.
     41    """
    3942
    4043    id = metadata_dic['scenario_id']
     
    103106    #-------------------------------------------------------------------------
    104107
    105     domain.set_quantity('stage', 0.) #the origin is the still water level
     108    domain.set_quantity('stage', 0.) #the z origin is the still water level
    106109    domain.set_quantity('friction', friction)
    107110    elevation_function = Elevation_function(metadata_dic)
     
    152155                        outputdir_name=None):
    153156    """
    154    
     157    Given run parameters return a string that can be used to name files.
    155158    """
    156159    if outputdir_name is None:
Note: See TracChangeset for help on using the changeset viewer.