Changeset 8150 for trunk/anuga_core/source/anuga/file_conversion
- Timestamp:
- Mar 11, 2011, 7:23:24 PM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/file_conversion
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/asc2dem.py
r7814 r8150 55 55 56 56 57 ##58 # @brief Convert an ASC file to a DEM file.59 # @param basename_in Stem of input filename.60 # @param basename_out Stem of output filename.61 # @param verbose True if this function is to be verbose.62 57 def _convert_dem_from_ascii2netcdf(name_in, name_out = None, 63 58 verbose = False): -
trunk/anuga_core/source/anuga/file_conversion/dem2pts.py
r7841 r8150 53 53 54 54 55 ##56 # @brief57 # @param basename_in58 # @param basename_out59 # @param verbose60 # @param easting_min61 # @param easting_max62 # @param northing_min63 # @param northing_max64 55 def _dem2pts(name_in, name_out=None, verbose=False, 65 56 easting_min=None, easting_max=None, -
trunk/anuga_core/source/anuga/file_conversion/file_conversion.py
r7866 r8150 86 86 write_obj(FN, xx, yy, zz) 87 87 88 ##89 # @brief Convert time-series text file to TMS file.90 # @param filename91 # @param quantity_names92 # @param time_as_seconds93 88 def timefile2netcdf(file_text, file_out = None, quantity_names=None, \ 94 89 time_as_seconds=False): … … 224 219 225 220 226 ##227 # @brief228 # @param filename229 # @param verbose230 221 def tsh2sww(filename, verbose=False): 231 222 """ … … 266 257 267 258 268 ##269 # @brief Return max&min indexes (for slicing) of area specified.270 # @param latitudes_ref ??271 # @param longitudes_ref ??272 # @param minlat Minimum latitude of specified area.273 # @param maxlat Maximum latitude of specified area.274 # @param minlon Minimum longitude of specified area.275 # @param maxlon Maximum longitude of specified area.276 # @return Tuple (lat_min_index, lat_max_index, lon_min_index, lon_max_index)277 259 def get_min_max_indices(latitudes_ref, longitudes_ref, 278 260 minlat=None, maxlat=None, … … 350 332 351 333 352 ##353 # @brief354 # @param filename355 # @param x356 # @param y357 # @param z358 334 def write_obj(filename, x, y, z): 359 335 """Store x,y,z vectors into filename (obj format). -
trunk/anuga_core/source/anuga/file_conversion/sdf2pts.py
r7814 r8150 3 3 from anuga.geospatial_data.geospatial_data import Geospatial_data 4 4 5 ##6 # @brief Return block of surface lines for each cross section7 # @param lines Iterble of text lines to process.8 # @note BROKEN? UNUSED?9 5 def _read_hecras_cross_sections(lines): 10 6 """Return block of surface lines for each cross section … … 43 39 """Read HEC-RAS Elevation datal from the following ASCII format (.sdf) 44 40 45 # @brief Convert HECRAS (.sdf) file to PTS file. 46 # @param basename_in Sterm of input filename. 47 # @param basename_out Sterm of output filename. 48 # @param verbose True if this function is to be verbose. 41 basename_in Sterm of input filename. 42 basename_out Sterm of output filename. 43 verbose True if this function is to be verbose. 49 44 50 45 Example: -
trunk/anuga_core/source/anuga/file_conversion/urs2nc.py
r7800 r8150 64 64 65 65 66 ##67 # @brief Convert a quantity URS file to a NetCDF file.68 # @param file_in Path to input URS file.69 # @param file_out Path to the output file.70 # @param quantity Name of the quantity to be written to the output file.71 # @return A tuple (lonlatdep, lon, lat, depth).72 66 def _binary_c2nc(file_in, file_out, quantity): 73 67 """Reads in a quantity urs file and writes a quantity nc file. … … 140 134 141 135 142 ##143 # @brief144 # @param long_lat_dep145 # @return A tuple (long, lat, quantity).146 # @note The latitude is the fastest varying dimension - in mux files.147 136 def lon_lat2grid(long_lat_dep): 148 137 """
Note: See TracChangeset
for help on using the changeset viewer.