コード例 #1
0
ファイル: marker.py プロジェクト: UNESCO-IHE/uvcdat
def wmo_shapes():
    wmo = []
    for i in xrange(100, 203):
        if i in __shape_cache:
            wmo.append(__shape_cache[i])
        else:
            try:
                val = checkMarker(None, "type", i)
                wmo.append(val)
                __shape_cache[i] = val
            except ValueError:
                pass
    return wmo
コード例 #2
0
def wmo_shapes():
    wmo = []
    for i in xrange(100, 203):
        if i in __shape_cache:
            wmo.append(__shape_cache[i])
        else:
            try:
                val = checkMarker(None, "type", i)
                wmo.append(val)
                __shape_cache[i] = val
            except ValueError:
                pass
    return wmo
コード例 #3
0
ファイル: marker.py プロジェクト: UNESCO-IHE/uvcdat
def marker_shapes():
    # Returns all shapes that are supported (skips star for now), indexed numerically
    shapes = []
    for i in xrange(1, 20):
        if i in __shape_cache:
            shapes.append(__shape_cache[i])
        else:
            try:
                val = checkMarker(None, "type", i)
                shapes.append(val)
                __shape_cache[i] = val
            except ValueError:
                pass
    return shapes
コード例 #4
0
def marker_shapes():
    # Returns all shapes that are supported (skips star for now), indexed numerically
    shapes = []
    for i in xrange(1, 20):
        if i in __shape_cache:
            shapes.append(__shape_cache[i])
        else:
            try:
                val = checkMarker(None, "type", i)
                shapes.append(val)
                __shape_cache[i] = val
            except ValueError:
                pass
    return shapes