@@ -0,0 +1,62 | |||
|
1 | # ----------- | |
|
2 | # AMDA INFO : | |
|
3 | # ----------- | |
|
4 | # AMDA_ABOUT : Created by CDPP/AMDA(c) | |
|
5 | # AMDA_VERSION : 3.5.0 | |
|
6 | # AMDA_ACKNOWLEDGEMENT : CDPP/AMDA Team | |
|
7 | # | |
|
8 | # -------------- | |
|
9 | # REQUEST INFO : | |
|
10 | # -------------- | |
|
11 | # REQUEST_STRUCTURE : one-file-per-parameter-per-interval | |
|
12 | # REQUEST_TIME_FORMAT : ISO 8601 | |
|
13 | # REQUEST_OUTPUT_PARAMS : tha_ion_sp | |
|
14 | # | |
|
15 | # ----------------- | |
|
16 | # BASE PARAMETERS : | |
|
17 | # ----------------- | |
|
18 | # | |
|
19 | # MISSION_ID : NONE | |
|
20 | # | |
|
21 | # INSTRUMENT_ID : NONE | |
|
22 | # | |
|
23 | # DATASET_ID : tha-esa-l2i | |
|
24 | # DATASET_NAME : ion full mode | |
|
25 | # DATASET_SOURCE : CDPP/DDServer | |
|
26 | # DATASET_GLOBAL_START : 2007-03-07T18:53:59.134 | |
|
27 | # DATASET_GLOBAL_STOP : 2017-11-04T18:35:25.907 | |
|
28 | # DATASET_MIN_SAMPLING : 96 | |
|
29 | # DATASET_MAX_SAMPLING : 240 | |
|
30 | # | |
|
31 | # PARAMETER_ID : tha_ion_sp | |
|
32 | # PARAMETER_NAME : tha_ion_sp | |
|
33 | # PARAMETER_SHORT_NAME : spectra | |
|
34 | # PARAMETER_UNITS : eV/(cm^2-s-sr-eV) | |
|
35 | # PARAMETER_TENSOR_ORDER : 0 | |
|
36 | # PARAMETER_TABLE[0] : energy | |
|
37 | # PARAMETER_TABLE_UNITS[0] : eV | |
|
38 | # PARAMETER_TABLE_MIN_VALUES[0] : 14234.4,18737.3 | |
|
39 | # PARAMETER_TABLE_MAX_VALUES[0] : 18737.3,23254.9 | |
|
40 | # PARAMETER_FILL_VALUE : nan | |
|
41 | # PARAMETER_UCD : phys.flux.density;phys.energy;phys.atmol.ionStage | |
|
42 | # | |
|
43 | # | |
|
44 | # --------------- | |
|
45 | # INTERVAL INFO : | |
|
46 | # --------------- | |
|
47 | # INTERVAL_START : 2011-12-10T12:00:00.000 | |
|
48 | # INTERVAL_STOP : 2011-12-10T13:00:00.000 | |
|
49 | # | |
|
50 | # ------ | |
|
51 | # DATA : | |
|
52 | # ------ | |
|
53 | # DATA_COLUMNS : AMDA_TIME, tha_ion_sp[0], tha_ion_sp[1] | |
|
54 | # | |
|
55 | 2011-12-10T12:10:54.000 2577578.000 2336016.000 | |
|
56 | 2011-12-10T12:17:23.000 2314121.500 1712093.125 | |
|
57 | 2011-12-10T12:23:51.000 2063608.750 1614491.625 | |
|
58 | 2011-12-10T12:30:19.000 2234525.500 1764516.500 | |
|
59 | 2011-12-10T12:35:04.000 1670215.250 1688078.500 | |
|
60 | 2011-12-10T12:36:41.000 1689243.250 1743183.500 | |
|
61 | 2011-12-10T12:38:18.000 1654617.125 1733603.250 | |
|
62 | 2011-12-10T12:39:55.000 1504983.750 1708356.500 No newline at end of file |
@@ -452,6 +452,80 void TestAmdaResultParser::testReadSpectrogramTxt_data() | |||
|
452 | 452 | 1733603.250, // |
|
453 | 453 | 1708356.500}}); |
|
454 | 454 | |
|
455 | QTest::newRow( | |
|
456 | "Valid file (containing data holes at the beginning and the end, resolution = 4 minutes)") | |
|
457 | << QStringLiteral("spectro/ValidSpectrogramDataHoles2.txt") | |
|
458 | << ExpectedResults<SpectrogramSeries>{} | |
|
459 | .setParsingOK(true) | |
|
460 | .setXAxisUnit(Unit{"t", true}) | |
|
461 | .setXAxisData({ | |
|
462 | dateTime(2011, 12, 10, 12, 2, 54), // Data hole | |
|
463 | dateTime(2011, 12, 10, 12, 6, 54), // Data hole | |
|
464 | dateTime(2011, 12, 10, 12, 10, 54), // | |
|
465 | dateTime(2011, 12, 10, 12, 14, 54), // Data hole | |
|
466 | dateTime(2011, 12, 10, 12, 17, 23), // | |
|
467 | dateTime(2011, 12, 10, 12, 21, 23), // Data hole | |
|
468 | dateTime(2011, 12, 10, 12, 23, 51), // | |
|
469 | dateTime(2011, 12, 10, 12, 27, 51), // Data hole | |
|
470 | dateTime(2011, 12, 10, 12, 30, 19), // | |
|
471 | dateTime(2011, 12, 10, 12, 34, 19), // Data hole | |
|
472 | dateTime(2011, 12, 10, 12, 35, 04), // | |
|
473 | dateTime(2011, 12, 10, 12, 36, 41), // | |
|
474 | dateTime(2011, 12, 10, 12, 38, 18), // | |
|
475 | dateTime(2011, 12, 10, 12, 39, 55), | |
|
476 | dateTime(2011, 12, 10, 12, 43, 55), // Data hole | |
|
477 | dateTime(2011, 12, 10, 12, 47, 55), // Data hole | |
|
478 | dateTime(2011, 12, 10, 12, 51, 55), // Data hole | |
|
479 | dateTime(2011, 12, 10, 12, 55, 55), // Data hole | |
|
480 | dateTime(2011, 12, 10, 12, 59, 55) // Data hole | |
|
481 | }) | |
|
482 | .setYAxisEnabled(true) | |
|
483 | .setYAxisUnit(Unit{"eV"}) | |
|
484 | .setYAxisData({16485.85, 20996.1}) // middle of the intervals of each band | |
|
485 | .setValuesUnit(Unit{"eV/(cm^2-s-sr-eV)"}) | |
|
486 | .setValuesData(QVector<QVector<double> >{{ | |
|
487 | nan, // Data hole | |
|
488 | nan, // Data hole | |
|
489 | 2577578.000, // | |
|
490 | nan, // Data hole | |
|
491 | 2314121.500, // | |
|
492 | nan, // Data hole | |
|
493 | 2063608.750, // | |
|
494 | nan, // Data hole | |
|
495 | 2234525.500, // | |
|
496 | nan, // Data hole | |
|
497 | 1670215.250, // | |
|
498 | 1689243.250, // | |
|
499 | 1654617.125, // | |
|
500 | 1504983.750, // | |
|
501 | nan, // Data hole | |
|
502 | nan, // Data hole | |
|
503 | nan, // Data hole | |
|
504 | nan, // Data hole | |
|
505 | nan // Data hole | |
|
506 | }, | |
|
507 | { | |
|
508 | nan, // Data hole | |
|
509 | nan, // Data hole | |
|
510 | 2336016.000, // | |
|
511 | nan, // Data hole | |
|
512 | 1712093.125, // | |
|
513 | nan, // Data hole | |
|
514 | 1614491.625, // | |
|
515 | nan, // Data hole | |
|
516 | 1764516.500, // | |
|
517 | nan, // Data hole | |
|
518 | 1688078.500, // | |
|
519 | 1743183.500, // | |
|
520 | 1733603.250, // | |
|
521 | 1708356.500, // | |
|
522 | nan, // Data hole | |
|
523 | nan, // Data hole | |
|
524 | nan, // Data hole | |
|
525 | nan, // Data hole | |
|
526 | nan // Data hole | |
|
527 | }}); | |
|
528 | ||
|
455 | 529 | // Invalid files |
|
456 | 530 | QTest::newRow("Invalid file (inconsistent bands)") |
|
457 | 531 | << QStringLiteral("spectro/InvalidSpectrogramWrongBands.txt") |
General Comments 0
You need to be logged in to leave comments.
Login now