示例#1
0
def find_T(path_to_experiment):
    """function to find the number of time steps for a NEMO experiment, as files contain different numbers of time steps.

    :path_to_experiment: path to experiment that was passed into this file
    :returns: number of time steps (int dtype)
    """
    return len(raw_nemo_globber_specifytpe(path_to_experiment,return_dates=True))

    pass
示例#2
0
def find_T(path_to_experiment):
    """function to find the number of time steps for a NEMO experiment, as files contain different numbers of time steps.

    :path_to_experiment: path to experiment that was passed into this file
    :returns: number of time steps (int dtype)
    """
    return len(
        raw_nemo_globber_specifytpe(path_to_experiment, return_dates=True))

    pass
示例#3
0
#   Author: Christopher Bull.
#   Affiliation: Climate Change Research Centre and ARC Centre of Excellence for Climate System Science.
#                Level 4, Mathews Building
#                University of New South Wales
#                Sydney, NSW, Australia, 2052
#   Contact: [email protected]
#   www:     christopherbull.com.au
#   Date created: Mon, 07 Dec 2015 18:23:21
#   Machine created on: ccrc165
#
"""
Short script to find the number of time steps for the 'active' NEMO experiment (will return the one called NAME in params).
"""
from eddy_functions import raw_nemo_globber_specifytpe
import pandas as pd
import params

if __name__ == "__main__":
    #put useful code here!
    print 'T=', len(
        raw_nemo_globber_specifytpe(params.pathroot, return_dates=True))
示例#4
0
#   Author: Christopher Bull. 
#   Affiliation: Climate Change Research Centre and ARC Centre of Excellence for Climate System Science.
#                Level 4, Mathews Building
#                University of New South Wales
#                Sydney, NSW, Australia, 2052
#   Contact: [email protected]
#   www:     christopherbull.com.au
#   Date created: Mon, 07 Dec 2015 18:23:21
#   Machine created on: ccrc165
#

"""
Short script to find the number of time steps for the 'active' NEMO experiment (will return the one called NAME in params).
"""
from eddy_functions import raw_nemo_globber_specifytpe
import pandas as pd
import params

if __name__ == "__main__": 
    #put useful code here!
    print 'T=',len(raw_nemo_globber_specifytpe(params.pathroot,return_dates=True))