Ignore:
Timestamp:
Sep 18, 2012, 5:24:33 PM (13 years ago)
Author:
gray
Message:

Got the conversion from bore.txt to bore.tms working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/uqwave/run_UQwave.py

    r8584 r8586  
    2525from anuga.utilities.file_utils import copy_code_files
    2626from anuga.file.csv_file import load_csv_as_dict
    27 from numerical_tools import  err
     27from numerical_tools import  err
     28 
     29from anuga.file_conversion.file_conversion import timefile2netcdf
    2830
    29 # from anuga.shallow_water.data_manager import timefile2netcdf
    3031
    3132# Application specific imports
     
    123124
    124125    bore_file = 'bore'
    125     #timefile2netcdf(bore_file,
    126     #                quantity_names = ['stage','xmomentum', 'ymomentum'])
     126    timefile2netcdf(bore_file + '.txt',
     127                    quantity_names = ['stage','xmomentum', 'ymomentum'],
     128                    time_as_seconds=True)
    127129    F = anuga.File_boundary(bore_file + '.tms', domain)
    128130   
     
    150152    # Calculate gauge info
    151153    #-------------------------------------------------------------------------
    152     interpolate_sww2csv(project.outputtimedir + project.basename \
    153                    + id+".sww",
    154                         points,
    155                         project.depth_filename + id + '.csv',
    156                         project.velocity_x_filename + id + '.csv',
    157                         project.velocity_y_filename + id + '.csv')
     154    if True:
     155        interpolate_sww2csv(project.outputtimedir + project.basename \
     156                                + id+".sww",
     157                            points,
     158                            project.depth_filename + id + '.csv',
     159                            project.velocity_x_filename + id + '.csv',
     160                            project.velocity_y_filename + id + '.csv')
    158161    #-------------------------------------------------------------
    159162if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.