Changeset 5466 for anuga_core/source/anuga/shallow_water
- Timestamp:
- Jul 4, 2008, 2:51:12 PM (15 years ago)
- Location:
- anuga_core/source/anuga/shallow_water
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r5463 r5466 4121 4121 4122 4122 Specify only basename_in and read files of the form 4123 basefilename _velocity-z-mux, basefilename_velocity-e-muxand4124 basefilename _waveheight-n-muxcontaining relative height,4123 basefilename-z-mux2, basefilename-e-mux2 and 4124 basefilename-n-mux2 containing relative height, 4125 4125 x-velocity and y-velocity, respectively. 4126 4126 … … 4173 4173 4174 4174 The name of the urs file names must be; 4175 [basename_in] _velocity-z-mux4176 [basename_in] _velocity-e-mux4177 [basename_in] _waveheight-n-mux4175 [basename_in]-z-mux 4176 [basename_in]-e-mux 4177 [basename_in]-n-mux 4178 4178 4179 4179 """ … … 4646 4646 #### CONVERTING UNGRIDDED URS DATA TO AN SWW FILE #### 4647 4647 4648 WAVEHEIGHT_MUX_LABEL = ' _waveheight-z-mux'4649 EAST_VELOCITY_LABEL = ' _velocity-e-mux'4650 NORTH_VELOCITY_LABEL = ' _velocity-n-mux'4648 WAVEHEIGHT_MUX_LABEL = '-z-mux' 4649 EAST_VELOCITY_LABEL = '-e-mux' 4650 NORTH_VELOCITY_LABEL = '-n-mux' 4651 4651 def urs_ungridded2sww(basename_in='o', basename_out=None, verbose=False, 4652 4652 mint=None, maxt=None, … … 4661 4661 4662 4662 Specify only basename_in and read files of the form 4663 basefilename _velocity-z-mux, basefilename_velocity-e-mux and4664 basefilename _waveheight-n-mux containing relative height,4663 basefilename-z-mux, basefilename-e-mux and 4664 basefilename-n-mux containing relative height, 4665 4665 x-velocity and y-velocity, respectively. 4666 4666 … … 4834 4834 ################################## 4835 4835 4836 WAVEHEIGHT_MUX2_LABEL = ' _waveheight-z-mux2'4837 EAST_VELOCITY_MUX2_LABEL = ' _velocity-e-mux2'4838 NORTH_VELOCITY_MUX2_LABEL = ' _velocity-n-mux2'4836 WAVEHEIGHT_MUX2_LABEL = '-z-mux2' 4837 EAST_VELOCITY_MUX2_LABEL = '-e-mux2' 4838 NORTH_VELOCITY_MUX2_LABEL = '-n-mux2' 4839 4839 4840 4840 def read_mux2_py(filenames,weights): … … 4919 4919 4920 4920 These are combined with the extensions: 4921 WAVEHEIGHT_MUX2_LABEL = ' _waveheight-z-mux2' for stage4922 EAST_VELOCITY_MUX2_LABEL = ' _velocity-e-mux2' xmomentum4923 NORTH_VELOCITY_MUX2_LABEL = ' _velocity-n-mux2' and ymomentum4921 WAVEHEIGHT_MUX2_LABEL = '-z-mux2' for stage 4922 EAST_VELOCITY_MUX2_LABEL = '-e-mux2' xmomentum 4923 NORTH_VELOCITY_MUX2_LABEL = '-n-mux2' and ymomentum 4924 4924 4925 4925 to create a 2D list of mux2 file. The rows are associated with each quantity and must have the above extensions -
anuga_core/source/anuga/shallow_water/test_data_manager.py
r5463 r5466 7018 7018 7019 7019 assert allclose(temp_fbound,temp_drchlt) 7020 os.remove(sts_file+'.sts') 7020 7021 try: 7022 os.remove(sts_file+'.sts') 7023 except: 7024 # Windoze can't remove this file for some reason 7025 pass 7026 7021 7027 os.remove(meshname) 7022 7028
Note: See TracChangeset
for help on using the changeset viewer.