Changeset 6441 for branches/numpy/anuga/geospatial_data/geospatial_data.py
- Timestamp:
- Mar 4, 2009, 8:26:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/geospatial_data/geospatial_data.py
r6428 r6441 918 918 # @param data_points ?? 919 919 # @param points_are_lats_longs ?? 920 # @note IS THIS USED??? 920 921 def _set_using_lat_long(latitudes, 921 922 longitudes, … … 968 969 """Read .pts NetCDF file 969 970 970 Return a dic of array of points, and dic of array of attribute971 Return a (dict_points, dict_attribute, geo_ref) 971 972 eg 972 dic ['points'] = [[1.0,2.0],[3.0,5.0]]973 dic ['attributelist']['elevation'] = [[7.0,5.0]]973 dict['points'] = [[1.0,2.0],[3.0,5.0]] 974 dict['attributelist']['elevation'] = [[7.0,5.0]] 974 975 """ 975 976 … … 1182 1183 1183 1184 ## 1184 # @brief Read the body of a . csffile, with blocking.1185 # @brief Read the body of a .pts file, with blocking. 1185 1186 # @param fid Handle to already open file. 1186 1187 # @param start_row Start row index of points to return. … … 1189 1190 # @return Tuple of (pointlist, attributes). 1190 1191 def _read_pts_file_blocking(fid, start_row, fin_row, keys): 1191 '''Read the body of a . csvfile.'''1192 '''Read the body of a .pts file.''' 1192 1193 1193 1194 pointlist = num.array(fid.variables['points'][start_row:fin_row]) … … 1514 1515 1515 1516 data_file: must not contain points outside the boundaries defined 1516 and it either a pts, txt or csv file.1517 and it must be either a pts, txt or csv file. 1517 1518 1518 1519 alpha_list: the alpha values to test in a single list
Note: See TracChangeset
for help on using the changeset viewer.