Changeset 6595 for anuga_core/source/anuga/shallow_water/data_manager.py
- Timestamp:
- Mar 24, 2009, 2:06:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r6584 r6595 5503 5503 origin=None, 5504 5504 zone=None, 5505 central_meridian=None, 5505 5506 mean_stage=0.0, 5506 5507 zscale=1.0, … … 5719 5720 # Check zone boundaries 5720 5721 if zone is None: 5721 refzone, _, _ = redfearn(latitudes[0], longitudes[0]) 5722 refzone, _, _ = redfearn(latitudes[0], longitudes[0], 5723 central_meridian=central_meridian) 5722 5724 else: 5723 5725 refzone = zone 5724 5726 5727 5728 5725 5729 old_zone = refzone 5726 5730 5727 5731 for i in range(number_of_points): 5728 zone, easting, northing = redfearn(latitudes[i], longitudes[i], 5729 zone=zone) 5732 computed_zone, easting, northing = redfearn(latitudes[i], longitudes[i], 5733 zone=zone, 5734 central_meridian=central_meridian) 5730 5735 x[i] = easting 5731 5736 y[i] = northing 5732 if zone != refzone:5737 if computed_zone != refzone: 5733 5738 msg = 'All sts gauges need to be in the same zone. \n' 5734 5739 msg += 'offending gauge:Zone %d,%.4f, %4f\n' \ 5735 % ( zone, easting, northing)5740 % (computed_zone, easting, northing) 5736 5741 msg += 'previous gauge:Zone %d,%.4f, %4f' \ 5737 5742 % (old_zone, old_easting, old_northing) 5738 5743 raise Exception, msg 5739 old_zone = zone5744 old_zone = computed_zone 5740 5745 old_easting = easting 5741 5746 old_northing = northing
Note: See TracChangeset
for help on using the changeset viewer.