"phase" -> "amplitude" - Errore nella conversione da ARC a JSON
Con @andrea.bono abbiamo evidenziato questo problema.
In base all'issue:
il campo "amplitude" viene letto da: "amplitude" col 55 7 F7.2
Dato il seguente ARC di input: hypo.arc
La stazione NRCA.HHE alla colonna 55 il valore e': 0.45000:
NRCA IV EHHE 0201903220310 0-999 0 0 0 00.45000 0 0 0 0 18411400 0 330 0155 0 0 -- 1
Tale valore non e' presente nel JSON di uscita:
Click here to view OUTPUT JSON file.
{
"ewMessage" : {
"rms" : 0.23999999999999999,
"e0" : 2.48,
"mdtype" : "D",
"e1" : 0.60999999999999999,
"e2" : 0.37,
"erh" : 1.04,
"gap" : 92,
"numberOfAmpMagWeightCode" : 8,
"e1az" : 289,
"version" : "ew prelim",
"geoidDepth" : 12.130000000000001,
"Md" : 0,
"mdmad" : 0,
"nPfm" : 0,
"quakeId" : 66028875,
"dmin" : 11,
"e1dp" : 24,
"erz" : 2.25,
"wtpref" : 0,
"longitude" : 13.23,
"ingvQuality" : "AB",
"codeOfCrustAndDelayModel" : "Ita",
"modelDepthType" : "M",
"dominantCrustModelType" : "H",
"labelpref" : " ",
"originTime" : "2019-03-22 03:10:40.780000",
"e0az" : 113,
"depth" : 13.15,
"nph" : 13,
"Mpref" : 0,
"preferredMag" : 0,
"numberOfPreferredMags" : 0,
"nphS" : 4,
"earthquakeDepthDatum" : 1028,
"phases" : [
{
"ampMag" : 1.21,
"Pwt" : 0,
"dist" : 10.9,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 133,
"sta" : "SMA1",
"ampType" : 1,
"Swt" : 1.4399999999999999,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
3300,
0
],
"Sres" : 0.28999999999999998,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:46.889999",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : "S",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
91,
0
],
"azm" : 127,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0.65300000000000002,
"amplitude" : 0,
"comp" : "EHE"
},
{
"ampMag" : 1.21,
"Pwt" : 0,
"dist" : 10.9,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 133,
"sta" : "SMA1",
"ampType" : 1,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
3300,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 7,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
91,
0
],
"azm" : 127,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHN"
},
{
"ampMag" : 0,
"Pwt" : 0.35999999999999999,
"dist" : 10.9,
"codawt" : 0,
"Pqual" : 3,
"takeoff" : 133,
"sta" : "SMA1",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:44.270000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
2000,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.012999999999999999,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
551,
0
],
"azm" : 127,
"Pres" : 0.22,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHZ"
},
{
"ampMag" : 1.1899999999999999,
"Pwt" : 0,
"dist" : 15.5,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 120,
"sta" : "MTRA",
"ampType" : 1,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
4,
0,
2000,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 736,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
14,
0,
551,
0
],
"azm" : 61,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHE"
},
{
"ampMag" : 1.0700000000000001,
"Pwt" : 0,
"dist" : 15.5,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 120,
"sta" : "MTRA",
"ampType" : 1,
"Swt" : 1.4399999999999999,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
2000,
0
],
"Sres" : -0.33000000000000002,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:47.360001",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : "S",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
551,
0
],
"azm" : 61,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0.41699999999999998,
"amplitude" : 0,
"comp" : "EHN"
},
{
"ampMag" : 0,
"Pwt" : 1.4399999999999999,
"dist" : 15.5,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 120,
"sta" : "MTRA",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:44.799999",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1400,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.307,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 8,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
841,
0
],
"azm" : 61,
"Pres" : 0.14000000000000001,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHZ"
},
{
"ampMag" : 0,
"Pwt" : 1.4399999999999999,
"dist" : 18.399999999999999,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 114,
"sta" : "LNSS",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:45.180000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1400,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.66700000000000004,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
841,
0
],
"azm" : 238,
"Pres" : 0.089999999999999997,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHZ"
},
{
"ampMag" : 1.55,
"Pwt" : 0,
"dist" : 18.399999999999999,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 114,
"sta" : "NRCA",
"ampType" : 1,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1400,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
841,
0
],
"azm" : 330,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHE"
},
{
"ampMag" : 1.4299999999999999,
"Pwt" : 0,
"dist" : 18.399999999999999,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 114,
"sta" : "NRCA",
"ampType" : 1,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1400,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 4,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
841,
0
],
"azm" : 330,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHN"
},
{
"ampMag" : 0,
"Pwt" : 0.35999999999999999,
"dist" : 18.399999999999999,
"codawt" : 0,
"Pqual" : 3,
"takeoff" : 114,
"sta" : "NRCA",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:44.840000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1100,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.056000000000000001,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
31,
0
],
"azm" : 330,
"Pres" : -0.25,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHZ"
},
{
"ampMag" : 1.1499999999999999,
"Pwt" : 0,
"dist" : 20.300000000000001,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 111,
"sta" : "RM33",
"ampType" : 1,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
4,
0,
1100,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 862,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
14,
0,
31,
0
],
"azm" : 184,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHE"
},
{
"ampMag" : 1.28,
"Pwt" : 0,
"dist" : 20.300000000000001,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 111,
"sta" : "RM33",
"ampType" : 1,
"Swt" : 1.4399999999999999,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
1100,
0
],
"Sres" : -0.33000000000000002,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:48.619999",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 6,
"Sonset" : "S",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
31,
0
],
"azm" : 184,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0.48999999999999999,
"amplitude" : 0,
"comp" : "EHN"
},
{
"ampMag" : 0,
"Pwt" : 1.0800000000000001,
"dist" : 20.300000000000001,
"codawt" : 0,
"Pqual" : 1,
"takeoff" : 111,
"sta" : "RM33",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:45.459999",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
4,
0,
500,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.28199999999999997,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 2,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
14,
0,
451,
0
],
"azm" : 184,
"Pres" : 0.089999999999999997,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHZ"
},
{
"ampMag" : 0,
"Pwt" : 0,
"dist" : 24.5,
"codawt" : 0,
"Pqual" : 0,
"takeoff" : 105,
"sta" : "MMO1",
"ampType" : 0,
"Swt" : 1.4399999999999999,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:00.000000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
500,
0
],
"Sres" : -0.12,
"ampUnitsCode" : 0,
"importanceP" : 0,
"Plabel" : " ",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:50.020000",
"Slabel" : " ",
"Ponset" : " ",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 1,
"Sonset" : "S",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
451,
0
],
"azm" : 18,
"Pres" : -9.9900000000000002,
"net" : "IV",
"importanceS" : 0.52600000000000002,
"amplitude" : 0,
"comp" : "EHN"
},
{
"ampMag" : 0,
"Pwt" : 0.71999999999999997,
"dist" : 24.5,
"codawt" : 0,
"Pqual" : 2,
"takeoff" : 105,
"sta" : "MMO1",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:46.209999",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
0,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.090999999999999998,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 8,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
161,
0
],
"azm" : 18,
"Pres" : 0.17000000000000001,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHZ"
},
{
"ampMag" : 0,
"Pwt" : 0.35999999999999999,
"dist" : 31.600000000000001,
"codawt" : 0,
"Pqual" : 3,
"takeoff" : 100,
"sta" : "TERO",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:47.080002",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
9700,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.151,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 9,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
79,
0
],
"azm" : 103,
"Pres" : -0.12,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHZ"
},
{
"ampMag" : 0,
"Pwt" : 0.71999999999999997,
"dist" : 37.899999999999999,
"codawt" : 0,
"Pqual" : 2,
"takeoff" : 97,
"sta" : "MF5",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:48.790001",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
9700,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.20399999999999999,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 2,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
1,
0
],
"azm" : 29,
"Pres" : 0.55000000000000004,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "EHZ"
},
{
"ampMag" : 0,
"Pwt" : 0.71999999999999997,
"dist" : 40.100000000000001,
"codawt" : 0,
"Pqual" : 2,
"takeoff" : 97,
"sta" : "FDMO",
"ampType" : 0,
"Swt" : 0,
"codalen" : 0,
"Pat" : "2019-03-22 03:10:48.520000",
"Pfm" : " ",
"Md" : 0,
"caav" : [
0,
0,
0,
0,
0,
0
],
"Sres" : 0,
"ampUnitsCode" : 0,
"importanceP" : 0.13600000000000001,
"Plabel" : "P",
"datasrc" : " ",
"Squal" : 0,
"pamp" : 0,
"Sat" : "2019-03-22 03:10:00.000000",
"Slabel" : " ",
"Ponset" : "P",
"Sfm" : " ",
"ampMagWeightCode" : 0,
"codalenObs" : 0,
"Sonset" : " ",
"loc" : "--",
"ccntr" : [
0,
0,
0,
0,
0,
0
],
"azm" : 344,
"Pres" : -0.080000000000000002,
"net" : "IV",
"importanceS" : 0,
"amplitude" : 0,
"comp" : "HHZ"
}
],
"nphtot" : 13,
"reg" : " ",
"medianAbsDiffAmpMag" : 0.65000000000000002,
"e0dp" : 65,
"mdwt" : 0,
"preferredMagLabel" : " ",
"latitude" : 42.691001999999997
}, "ewLogo" : { "user" : "ew", "instance" : "INST_UNKNOWN", "module" : "MOD_WILDCARD", "type" : "TYPE_HYP2000ARC", "hostname" : "3d360c022afb", "installation" : "INST_WILDCARD" } }
Anzi, mi sembra che tutte le "amplitude" sino a "0":
$ grep "amplitude" ~/tmp/hypo.json
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
"amplitude" : 0,
$