class ECMWFMARSNamespace(Mapping):
    # These are mars request paremeters
    dataset = optional(
        Text
    )  # Dataset identifier from https://software.ecmwf.int/wiki/display/WEBAPI/Available+ECMWF+Public+Datasets
    marsclass = Text  # MARS abbreviation from http://apps.ecmwf.int/codes/grib/format/mars/class/
    stream = Text  # MARS abbreviation from http://apps.ecmwf.int/codes/grib/format/mars/stream/
    expver = Text  # https://software.ecmwf.int/wiki/display/UDOC/Identification+keywords#Identificationkeywords-expver
    type = Text  # MARS abbreviation from http://apps.ecmwf.int/codes/grib/format/mars/type/
    date = Text  # https://software.ecmwf.int/wiki/display/UDOC/Date+and+time+keywords#Dateandtimekeywords-date
    time = Text  # https://software.ecmwf.int/wiki/display/UDOC/Date+and+time+keywords#Dateandtimekeywords-time
    step = optional(
        Integer
    )  # https://software.ecmwf.int/wiki/display/UDOC/Date+and+time+keywords#Dateandtimekeywords-step
    resol = optional(
        Text
    )  # https://software.ecmwf.int/wiki/display/UDOC/Post-processing+keywords#Post-processingkeywords-resol
    grid = optional(
        Text
    )  # https://software.ecmwf.int/wiki/display/UDOC/Post-processing+keywords#Post-processingkeywords-grid
    area = optional(
        Text
    )  # https://software.ecmwf.int/wiki/display/UDOC/Post-processing+keywords#Post-processingkeywords-area
Пример #2
0
class MyNamespace2(Mapping):
    counter = optional(Integer)
Пример #3
0
class MyNamespace(Mapping):
    hello = optional(Text)
Пример #4
0
class MyNamespace(Mapping):
    hello = optional(Text)
    myjson = optional(JSON)