Changeset 7800 for trunk/anuga_core/source/anuga/file_conversion/urs2nc.py
- Timestamp:
- Jun 7, 2010, 1:04:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/urs2nc.py
r7776 r7800 1 2 ## 3 # @brief Convert 3 URS files back to 4 NC files. 4 # @param basename_in Stem of the input filenames. 5 # @param basename_outStem of the output filenames. 6 # @note The name of the urs file names must be: 7 # [basename_in]-z-mux 8 # [basename_in]-e-mux 9 # [basename_in]-n-mux 1 import os 2 from struct import pack, unpack 3 import array as p_array 4 import numpy as num 5 6 from anuga.utilities.numerical_tools import ensure_numeric 7 from anuga.caching.caching import myhash 8 9 from anuga.file.netcdf import Write_nc, write_elevation_nc 10 11 12 from mux import WAVEHEIGHT_MUX_LABEL, EAST_VELOCITY_LABEL, \ 13 NORTH_VELOCITY_LABEL 14 15 10 16 def urs2nc(basename_in='o', basename_out='urs'): 11 17 """Convert the 3 urs files to 4 nc files.
Note: See TracChangeset
for help on using the changeset viewer.