parquet_maml_maml_example2 Function

public function parquet_maml_maml_example2() result(maml)

Returns the embedded maml_example2.maml MAML fixture, unparsed (raw lines only).

Arguments

None

Return Value type(parquet_maml_file)

the maml_example2.maml MAML, unparsed.


Source Code

    function parquet_maml_maml_example2() result(maml)
        type(parquet_maml_file) :: maml !! the maml_example2.maml MAML, unparsed.

        maml%name = "maml_example2.maml"
        allocate(character(len=104) :: maml%lines(83))
        maml%lines(1) = "survey: The Big Survey"
        maml%lines(2) = "dataset: input_data"
        maml%lines(3) = "table: input_table"
        maml%lines(4) = "version: 1.3"
        maml%lines(5) = "date: '2025-09-01'"
        maml%lines(6) = "author: Dave Smith <dave_smith_is_not_here@gmail.com>"
        maml%lines(7) = "coauthors:"
        maml%lines(8) = "- Joe Bloggs <joe_bloggs_is_not_here@gmail.com>"
        maml%lines(9) = "- Jane Doe <jane_doe_is_not_here@gmail.com>"
        maml%lines(10) = "DOIs:"
        maml%lines(11) = "- DOI: 10.1093/mnras/sty440"
        maml%lines(12) = "  type: paper"
        maml%lines(13) = "- DOI: 10.5281/zenodo.10059903"
        maml%lines(14) = "  type: software"
        maml%lines(15) = "depends:"
        maml%lines(16) = "- survey: The Medium Survey"
        maml%lines(17) = "  dataset: SpecZ"
        maml%lines(18) = "  table: Spec_field_01"
        maml%lines(19) = "  version: 3.7"
        maml%lines(20) = "- survey: The Tiny Survey"
        maml%lines(21) = "  dataset: Stars"
        maml%lines(22) = "  table: Phot_South"
        maml%lines(23) = "  version: 2"
        maml%lines(24) = &
            "description: Just an example. Probably do not write tonnes here. A few sentences is usually about ri" // &
            "ght."
        maml%lines(25) = "comments:"
        maml%lines(26) = "- Optional comment or interesting fact"
        maml%lines(27) = "- '...'"
        maml%lines(28) = "license: Copyright [Private]"
        maml%lines(29) = "keywords:"
        maml%lines(30) = "- Optional keyword tag"
        maml%lines(31) = "- TopCat"
        maml%lines(32) = "MAML_version: 1.2"
        maml%lines(33) = "keyarray:"
        maml%lines(34) = "- key: test_url"
        maml%lines(35) = "  value: //example.com/data #new"
        maml%lines(36) = "  comment: something: and else"
        maml%lines(37) = "- key: test_url2"
        maml%lines(38) = "  value: http://example.com/data :#new"
        maml%lines(39) = "  comment: something: and else"
        maml%lines(40) = "extra:"
        maml%lines(41) = "  anything:"
        maml%lines(42) = "    I:"
        maml%lines(43) = "      like: 1.3"
        maml%lines(44) = "fields:"
        maml%lines(45) = "- name: id"
        maml%lines(46) = "  ucd:"
        maml%lines(47) = "  - meta.id"
        maml%lines(48) = "  - meta.main"
        maml%lines(49) = "  info: ID field."
        maml%lines(50) = "  data_type: int32"
        maml%lines(51) = "  qc:"
        maml%lines(52) = "    min: 1"
        maml%lines(53) = "    max: 1000"
        maml%lines(54) = "    miss: 'Null'"
        maml%lines(55) = "- name: name"
        maml%lines(56) = "  unit: unitless"
        maml%lines(57) = "  ucd: meta.id;meta.main"
        maml%lines(58) = "  info: Name of the object."
        maml%lines(59) = "  data_type: string"
        maml%lines(60) = "  array_size: 24"
        maml%lines(61) = "- name: RA"
        maml%lines(62) = "  unit: deg"
        maml%lines(63) = "  info: Right ascension (J2000)"
        maml%lines(64) = "  ucd: pos.eq.ra"
        maml%lines(65) = "  data_type: float64"
        maml%lines(66) = "  array_size:"
        maml%lines(67) = "  col_size:"
        maml%lines(68) = "  qc:"
        maml%lines(69) = "    min: '>= 0'"
        maml%lines(70) = "    max: '< 360'"
        maml%lines(71) = "    miss: 'Null'"
        maml%lines(72) = "- name: Dec"
        maml%lines(73) = "  unit: deg"
        maml%lines(74) = "  info: Declination (J2000)"
        maml%lines(75) = "  ucd:"
        maml%lines(76) = "  - pos.eq.dec"
        maml%lines(77) = "  data_type: float64"
        maml%lines(78) = "  array_size:"
        maml%lines(79) = "  col_size:"
        maml%lines(80) = "  qc:"
        maml%lines(81) = "    min: -90"
        maml%lines(82) = "    max: 90"
        maml%lines(83) = "    miss: 'Null'"
    end function parquet_maml_maml_example2