FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
test2.py 623 B
Newer Older
L. Bower's avatar
L. Bower committed
import iris
from iris.cube import CubeList


# cube_wildcard = "/media/scratch/lb584_scratch/projects/ews_local_prod/regions/EastAfrica/workspace/ENVIRONMENT_2.0_20220730/NAME_Met_as_netcdf/*.nc"
# cubes: CubeList = iris.load(cube_wildcard)
# all_timepoints_present: bool = True
# for cube in cubes:
#     coord = cube.coord("time")
#     timepoints = coord.shape[0]
#     if timepoints != 57:
#         all_timepoints_present = False
#         break
#     i = 0

def function():
    print("doing function thing")
    if __name__ == '__main__':
        print("doing main thing")


if __name__ == '__main__':
    function()