Changeset 2512


Ignore:
Timestamp:
Mar 9, 2006, 2:43:36 PM (19 years ago)
Author:
nick
Message:

added checks to ferret input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/data_manager.py

    r2506 r2512  
    21272127    precision = Float
    21282128
     2129    msg = 'Must use latitudes and longitudes for minlat, maxlon etc'
     2130    assert -90 > minlat > 90 , msg
     2131    assert -90 > maxlat > 90 , msg
     2132    assert -180 > minlon > 180 , msg
     2133    assert -180 > maxlon > 180 , msg
     2134 
    21292135
    21302136    #Get NetCDF data
     
    22792285    number_of_latitudes = latitudes.shape[0]
    22802286    number_of_longitudes = longitudes.shape[0]
     2287
     2288    msg = 'No data received'
     2289    assert latitudes.shape[0] > 0, msg
     2290    assert longitudes.shape[0] > 0, msg
    22812291
    22822292    assert amplitudes.shape[0] == number_of_times
Note: See TracChangeset for help on using the changeset viewer.