From abf34206f05eb8ea3ac313dbec608e638dc0af8c Mon Sep 17 00:00:00 2001
From: Quentin Brzustowski <quentin.brzustowski@irap.omp.eu>
Date: Mon, 9 Dec 2019 15:10:43 +0100
Subject: [PATCH] added SPC flag

---
 NumericalData/AMDA/PSP/SPC/psp-spc-flag.xml | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 124 insertions(+), 0 deletions(-)
 create mode 100644 NumericalData/AMDA/PSP/SPC/psp-spc-flag.xml

diff --git a/NumericalData/AMDA/PSP/SPC/psp-spc-flag.xml b/NumericalData/AMDA/PSP/SPC/psp-spc-flag.xml
new file mode 100644
index 0000000..873590f
--- /dev/null
+++ b/NumericalData/AMDA/PSP/SPC/psp-spc-flag.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Spase xmlns="http://www.spase-group.org/data/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.spase-group.org/data/schema http://www.spase-group.org/data/schema/spase-2_3_0.xsd">
+   <Version>2.3.0</Version>
+   <NumericalData>
+      <ResourceID>spase://CDPP/NumericalData/AMDA/PSP/SPC/psp-spc-flag</ResourceID>
+      <ResourceHeader>
+          <ResourceName>quality flags</ResourceName>
+          <AlternateName>SWEAP Level 3 data quality flags</AlternateName>      
+          <ReleaseDate>2019-11-12T10:48:29Z</ReleaseDate>
+         <Description>
+             This data set contains annotative quality flags to signify whether a given measurement has been made under ideal conditions. The list of flags is:
+             * (0) general flag                                                      
+             * (1) primary peak low signal                                           
+             * (2) no primary peak detected                                          
+             * (3) cold primary peak or current spike detected                       
+             * (4) sensor saturated                                                  
+             * (5) primary peak not bound                                            
+             * (6) poor Maxwellian fit to primary peak                               
+             * (7) flow direction poorly constrained or undetermined                 
+             * (8) alpha peak low signal/not identified                              
+             * (9) poor Maxwellian fit to alpha peak                                 
+             * (10) alpha peak not bound                                             
+             * (11) wind speed off scale high                                        
+             * (12) wind speed off scale low                                         
+             * (13) wind speed off scale unknown                                     
+             * (14) likely proton-alpha confusion                                    
+             * (15) unusually high noise levels detected                             
+             * (16) proton full-scan mode (not peak-tracking)                        
+             * (17) reduced data quality: anomalous periodic noise type A, (above 1Hz)   
+             * (18) reduced data quality: anomalous periodic noise type B (under 1Hz)    
+             * (19) temperature/survival heater cycling: potential fluctuations      
+             * (20) reduced data quality: broadband or other anomalous noise (type C)
+             * (21) fragmented or incomplete spectrum measured                       
+             * (22) energy ranging/peak tracking error                               
+             * (23) spacecraft maneuver                                              
+             * (24) not used/TBD                                                     
+             * (25) not used/TBD                                                     
+             * (26) not used/TBD                                                     
+             * (27) not used/TBD                                                     
+             * (28) not used/TBD                                                     
+             * (29) not used/TBD                                                     
+             * (30) not used/TBD                                                     
+             * (31) not used/TBD                                                    
+         </Description>
+         <Acknowledgement>
+             Please acknowledge the NASA Parker Solar Probe Mission and SWEAP team
+             led by Justin Kasper for use of data.
+         </Acknowledgement>
+         <Contact>
+           <PersonID>spase://SMWG/Person/Justin.C.Kasper</PersonID>
+           <Role>PrincipalInvestigator</Role>
+         </Contact>
+          <Contact>
+              <PersonID>spase://SMWG/Person/Anthony.W.Case</PersonID>
+              <Role>SPCInstrumentScientist</Role>
+          </Contact>
+          <InformationURL>
+           <Name>User Guide</Name>
+             <URL>https://spdf.sci.gsfc.nasa.gov/pub/data/psp/sweap/sweap_data_user_guide.pdf</URL>
+           <Description>
+               User Guide for Parker Solar Probe SWEAP-SPC Investigation Data Products
+           </Description>
+         </InformationURL>
+      </ResourceHeader>
+      <AccessInformation>
+         <RepositoryID>spase://SMWG/Repository/CDPP/AMDA</RepositoryID>
+         <Availability>Online</Availability>
+         <AccessRights>Open</AccessRights>
+         <AccessURL>
+            <Name>AMDA at CDPP</Name>
+            <URL>
+                http://amda.cdpp.eu
+            </URL>
+         </AccessURL>
+         <Format>Text</Format>
+         <Acknowledgement>
+                AMDA is a science analysis system provided by the Centre de Donnees de la 
+                Physique des Plasmas (CDPP) supported by CNRS, CNES, Observatoire de Paris and 
+                Universite Paul Sabatier, Toulouse
+         </Acknowledgement>
+      </AccessInformation>
+      <ProviderName>SPDF</ProviderName> 
+       <ProviderResourceName>psp/sweap/spc/l3/l3i/</ProviderResourceName>
+      <ProviderAcknowlegment> 
+          Please acknowledge the CDAWeb team at GSFC/SPDF.</ProviderAcknowlegment>
+      <InstrumentID>spase://CDPP/Instrument/AMDA/PSP/MAG</InstrumentID>
+      <MeasurementType>Spectrum</MeasurementType>
+      <TemporalDescription>
+         <TimeSpan>
+            <StartDate>2018-09-02T00:00:12Z</StartDate>
+             <StopDate>2025-08-12T23:59:55Z</StopDate>
+         </TimeSpan>
+          <CadenceMin>PT0.002S</CadenceMin>
+          <CadenceMax>PT250S</CadenceMax>
+      </TemporalDescription>
+      <ObservedRegion>Heliosphere.Inner</ObservedRegion>
+      <ObservedRegion>Sun.Corona</ObservedRegion>
+       
+      <Parameter>
+         <Name>data quality flag</Name>
+         <ParameterKey>psp_scp_dqf</ParameterKey>
+         <Description>
+         </Description>
+         <RenderingHints>
+              <DisplayType>TimeSeries</DisplayType>
+         </RenderingHints>
+      </Parameter>
+       <Parameter>
+           <Name>general_flag</Name>
+           <ParameterKey>psp_scp_gf</ParameterKey>
+           <Description>
+               The “GENERAL FLAG” variable signifies, as broadly as possible, whether a given measurement
+               has been made under ideal conditions and can be used without caveat. When this variable is
+               set to 1, there is a condition present of which the user must be made aware    
+           </Description>
+           <Units>m-3</Units>
+           <RenderingHints>
+               <DisplayType>TimeSeries</DisplayType>
+           </RenderingHints>
+       </Parameter>
+       
+       
+</NumericalData>
+</Spase>
--
libgit2 0.21.2