{
  "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_6_1.xsd",
    "_Note": "Nodes prefixed with a _ are not valid SPASE, but are included for debugging. Values prefixed with a x_ are not valid SPASE but may considered for addition for completeness.",
    "Version": "2.6.1",
    "_MasterURL": "https://cdaweb.gsfc.nasa.gov/pub/software/cdawlib/0JSONS/thc_l2_merged_00000000_v01.json (from all.xml)",
    "NumericalData": {
      "ResourceID": "spase://NASA/NumericalData/THEMIS/C/ESA.FGM/PT96S",
      "_ResourceID": "Source: https://github.com/rweigel/cdawmeta-spase/blob/main/ResourceID.json",
      "ResourceHeader": {
        "ResourceName": [
          "This data set contains ARTEMIS P2(THEMIS C) plasma parameters from the Electrostatic Analyzer (ESA), magnetic field data from the FGM instrument, and geocentric and selenocentric spacecraft position data. The data are at 96s or 384s resolution. For more details see ",
          "https://spdf.gsfc.nasa.gov/pub/data/themis/thc/l2/merged/ascii/00readme_themisc.txt"
        ],
        "_ResourceName": "Source: Master/CDFglobalAttributes/Logical_source_description",
        "AlternateName": "thc_l2_merged",
        "_AlternateName": "Source: Master/CDFglobalAttributes/Logical_source",
        "Description": "THEMIS-B: Electrostatic Analyzer (ESA): Electron/Ion Ground-Calculated Energy Fluxes (ions: 5 eV to 25 keV) electrons: 6 eV to 30 keV) and Moments (density, velocity, pressure, and temperature). Includes FULL, REDUCED and BURST modes. FULL: high angular resolution, low (few min) time resolution. REDUCED: degraded angular resolution, high (approx. 3 sec) time resolution. BURST: high angular resolution, high time resolution; only short bursts of data. Note that angular resolution affects moments since they are obtained integrating over the mode-specific angular distribution. Moment Data Quality flags (0: good data; non-zero flags are totals of values; 1: missing S/C potential, 2: Counter saturation, 4: Solar Wind not in Solar Wind Mode, or Solar Wind Mode, not in Solar Wind, 8: (Reduced Mode only) slow survey mode+flows, 16: electron density Gt 2*ion density, 32: ion density Gt 2*electron density, 64: Spacecraft Maneuver).1. Retrieval of CDF files from CDAWeb of of ESA L2 'good' quality, 'full mode, 'ion plasma data [density (N), thermal speed(W), flow velocity GSE Cartesian components (Vx,Vy, Vz)], starting 9/1/2010 when the spacecraft are mostly in the moon's vicinity.  'Full mode' means as determined from 3-sec high-angular-resolution distributions taken once every 96s (Fast Survey Scan - FSS) or 384s (Slow Survey Scan - SSS), where FSS and SSS are mutually exclusively used for several contiguous hours during each of most days.  Data retrieval was followed by creation of ASCII version with N, W, and Vi, and with |V|(flow speed) as computed by us from the Vi.1a.  Despike the plasma data.  A modest number of ESA L2 data points appear to be single-point spurious spikes.  We have attempted to delete these as follows.  We test a point using its two predecessors and two followers. We require that the 1st and last of these 5 points be within 60 mins of each other. The first two and last two points in a data segment separated from its neighbors by intervals of >60 min go untested by the algorithms discussed here.  We visually scanned output data looking for obvious spikes thereby missed, and deleted these.  Any record having a declared spike in any of its physical parameters is rejected. For a parameter value to be declared a spike, it must satisfy two criteria.   Let P represent the value of the physical parameter being tested. Define <P> as the mean value of parameter P over the 1st, 2nd, 4th, and 5th points of the current set, and let sigma(P) be the RMS deviation in this average.  The first test for a spike is to have |P-<P>| > 20 * sigma(P).  As the second test, for P = V, Vi (i = x, y, z), N, W, we require |P-<P>| > k * <P> where k = 0.1, 0.1, 0.3, 0.6 for P = V, Vi, N, W respectively.  For Themis B and C, these tests eliminated 64 and 51 96s or 384s ESA L2 points, respectively, over the interval September 3, 2010 - January 29, 2011.1b.  In addition to retrieving ESA N, W and Vi values from CDAWeb, we also retrieved the ESA ion mode flag, where the values are 0 and 1.  Zero denotes a magnetospheric mode and one a solar wind mode.  The magnetosphere mode involves taking measurements over much broader ranges in energy and look direction than for the solar wind mode.  This optimizes observations of hot, subsonic non-solar wind plasma and of cooler supersonically flowing solar wind plasma.  Usually, but not always, ESA is set to the solar wind mode when the spacecraft is in the solar wind.  Moments of ESA magnetosphere-mode data taken while in the solar wind are not reliable.  For further details, see the ESA documentation accessible through the UCB URL given above. 2. Retrieval of 1-min spacecraft position (GSE) data from SSCWeb3. Retrieval of 29-min lunar position (GSE) data from SSCWeb4. Calculation of moon-centered 1-min spacecraft positions by interpolating 29-min data to 1-min resolution, taking differences between the geocentric spacecraft and moon positions, and changing units from Re to Rm (Moon radii, = 1737 km).5. Merger of geocentric and selenocentric spacecraft position data and plasma data, interpolating the 1-min position data to the times of the plasma data6. Retrieval of CDF files of 3-sec magnetic field FGM data in GSE coordinates from CDAWeb and conversion to ASCII.7. Merger of plasma/position data and magnetic field data.  To each 96s or 384s plasma/position record, we add the 3-s magnetic field data whose time tag is closest to that of the plasma data (because, as noted above, the plasma parameters are based on high-angular-resolution ion plasma distributions each determined over three seconds.8. Creation of FTPBrowser interfaces to these data for (a) plots and listings [http://ftpbrowser.gsfc.nasa.gov/themisb_mrg.html] and (b) parameter value occurrence distributions and other statistics, with filtering [http://ftpbrowser.gsfc.nasa.gov/themisb_mrg_d.html].(These interfaces will soon be LunaSOX-accessible at https://lunasox.gsfc.nasa.gov/Data_browser.html.)",
        "_Description": "Source: Master/CDFglobalAttributes/TEXT",
        "Acknowledgement": "NASA Contract NAS5-02099",
        "_Acknowledgement": "Source: Master/CDFglobalAttributes/Acknowledgement",
        "_Rights": {
          "Name": "SPDX",
          "Description": "Creative Commons Zero v1.0 Universal",
          "URL": "https://spdx.org/licenses/CC0-1.0.html",
          "SchemeURI": "https://spdx.org/licenses/"
        },
        "InformationURL": [
          {
            "Name": "SPDF readme",
            "URL": "https://spdf.gsfc.nasa.gov/pub/data/themis/thc/l2/merged/ascii/00readme_themisc.txt",
            "_Note": "URL also in all.xml, master. Using InformationURL.json."
          },
          {
            "URL": "http://themis.ssl.berkeley.edu/instrument_esa.shtml",
            "Name": "Instrument description including data modes, products and caveats",
            "Description": "ESA",
            "_Note": "URL also in all.xml. Using master."
          },
          {
            "URL": "http://themis.ssl.berkeley.edu/esa_proc_history.shtml",
            "Name": "Processing history and the THEMIS mission website including TDAS s/w",
            "Description": "ESA",
            "_Note": "URL also in all.xml. Using master."
          },
          {
            "URL": "http://themis.ssl.berkeley.edu/instrument_fgm.shtml",
            "Name": "Instrument description including data modes, products and caveats",
            "Description": "FGM",
            "_Note": "URL also in all.xml. Using master."
          },
          {
            "URL": "http://themis.ssl.berkeley.edu/fgm_proc_history.shtml",
            "Name": "Processing history and the THEMIS mission website including TDAS s/w",
            "Description": "FGM",
            "_Note": "URL also in all.xml. Using master."
          }
        ]
      },
      "ProviderResourceName": "Themisc merged ESA, FGM, spacecraft position data",
      "Caveats": "Open Data for Scientific Use",
      "_Caveats": "Source: Master/CDFglobalAttributes/Rules_of_use",
      "DOI": "https://doi.org/10.48322/szem-vt65",
      "_DOI": "Source: https://github.com/rweigel/cdawmeta-spase/blob/main/DOI.json",
      "AccessInformation": [
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "CDF"
          ],
          "Style": "Listing",
          "AccessURL": {
            "Name": "HTTPS from SPDF",
            "URL": "https://cdaweb.gsfc.nasa.gov/pub/data/themis/thc/l2/merged/cdf",
            "Description": "In CDF via HTTP from CDAWeb",
            "AccessFilenameTemplate": "thc_l2_merged_%Y%m%d_%Q.cdf",
            "AccessDirectoryTemplate": "%Y",
            "ProductKey": "THC_L2_MERGED"
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "CDF"
          ],
          "Style": "Listing",
          "AccessURL": {
            "Name": "FTPS from SPDF",
            "URL": "ftps://cdaweb.gsfc.nasa.gov/pub/data/themis/thc/l2/merged/cdf",
            "Description": "In CDF via HTTP from CDAWeb",
            "AccessFilenameTemplate": "thc_l2_merged_%Y%m%d_%Q.cdf",
            "AccessDirectoryTemplate": "%Y",
            "ProductKey": "THC_L2_MERGED"
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "CDF",
            "CSV",
            "GIF",
            "NetCDF",
            "PNG",
            "PS",
            "PDF",
            "XML",
            "x_Script.IDL",
            "x_Script.Python",
            "Text.ASCII",
            "x_WAV"
          ],
          "AccessURL": {
            "Name": "CDAWeb Web Service",
            "URL": "https://cdaweb.gsfc.nasa.gov/WebServices/",
            "Style": "WebService",
            "Description": "Instructions for using web services to access this dataset an other other metadata and options for CDAWeb datasets. The ProductKey here corresponds to the query parameter 'dataset' in the tables at the AccessURL in a dataset-related request can be made.",
            "ProductKey": "THC_L2_MERGED"
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "CDF",
            "GIF",
            "PDF",
            "Text.ASCII",
            "x_WAV"
          ],
          "AccessURL": {
            "Name": "CDAWeb Web Service user interface",
            "URL": "https://cdaweb.gsfc.nasa.gov/cgi-bin/eval2.cgi?index=sp_phys&dataset=THC_L2_MERGED",
            "Style": "WebService",
            "ProductKey": "THC_L2_MERGED",
            "Description": "Web service user interface for this product."
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "x_Script.IDL",
            "x_Script.Python"
          ],
          "AccessURL": {
            "Name": "CDAWeb Python Script",
            "URL": "https://cdaweb.gsfc.nasa.gov/WS/cdasr/1/dataviews/sp_phys/datasets/THC_L2_MERGED/clientLibraryExample/",
            "ProductKey": "THC_L2_MERGED",
            "Style": "WebService",
            "Description": "Web service that generates a Python script to access this product."
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/SSCWeb. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "HTML"
          ],
          "AccessURL": {
            "Name": "4D Orbit Viewer",
            "URL": "https://sscweb.gsfc.nasa.gov/4dorbit/?sc=THC_L2_MERGED",
            "ProductKey": "THC_L2_MERGED",
            "Style": "x_Visualization",
            "Description": "Web Service to this product."
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb and the HAPI project. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "CSV",
            "JSON",
            "Binary"
          ],
          "AccessURL": {
            "Name": "CDAWeb HAPI Server",
            "URL": "https://hapi-server.org/servers/#server=CDAWeb&dataset=THC_L2_MERGED",
            "Style": "HAPI",
            "ProductKey": "THC_L2_MERGED",
            "Description": "Web Service to this product using the HAPI interface."
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb and the HAPI project. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "x_Script.IDL",
            "x_Script.Javascript",
            "x_Script.MATLAB",
            "x_Script.Python",
            "x_Script.Autoplot",
            "x_Script.curl",
            "x_Script.wget"
          ],
          "AccessURL": {
            "Name": "CDAWeb HAPI Script in Multiple Languages",
            "URL": "https://hapi-server.org/servers/#server=CDAWeb&dataset=THC_L2_MERGED&return=script",
            "Style": "HAPI",
            "ProductKey": "THC_L2_MERGED",
            "Description": "Web Service user interface that generates scripts in IDL, Javascript, MATLAB, Python, Autoplot, curl, wget to access this product. See https://hapi-server.org/servers/api for the API."
          }
        },
        {
          "RepositoryID": "spase://SMWG/Repository/NASA/GSFC/SPDF",
          "Availability": "Online",
          "AccessRights": "Open",
          "Acknowledgement": "SPDF/CDAWeb and the HAPI project. Please also acknowledge the data producer: N. Papatashvilli, J.H. King at SPDF, NASA/GSFC",
          "Format": [
            "PNG",
            "PDF",
            "SVG"
          ],
          "AccessURL": {
            "Name": "HAPI visualizations",
            "URL": "https://hapi-server.org/plot/?server=https://cdaweb.gsfc.nasa.gov/hapi&dataset=THC_L2_MERGED&format=gallery",
            "Style": "x_Visualization",
            "ProductKey": "THC_L2_MERGED",
            "Description": "Web Service that generates plots. See https://hapi-server.org/plot/ for the API."
          }
        }
      ],
      "_AccessInformation": "Source: https://github.com/rweigel/cdawmeta-spase/blob/main/AccessInformation.json",
      "TemporalDescription": {
        "TimeSpan": {
          "StartDate": "2010-01-01T00:04:14Z",
          "StopDate": "2026-06-30T23:56:09Z"
        },
        "_TemporalDescription": "Generated from all.xml/@timerange_start and all.xml/@timerange_stop",
        "Cadence": "PT7M0.174S",
        "_Cadence": "Counts based on variable 'Epoch' in https://cdaweb.gsfc.nasa.gov/sp_phys/data/themis/thc/l2/merged/cdf/2010/thc_l2_merged_20100101_v01.cdf. The most common cadence, 420174 [ms] = PT7M0.174S, occurred for 15.2732% of the 1012 timesteps. "
      },
      "Keyword": [
        "Themis Probe B (from all.xml/observatory/description/@short)",
        "L2 DATA (from all.xml/instrument/description/@short)",
        "Space Physics (from Master/CDFglobalAttributes/Discipline)",
        "Magnetospheric Science (from Master/CDFglobalAttributes/Discipline)",
        "THC (from Master/CDFglobalAttributes/Source_name)",
        "Themis Probe B (from Master/CDFglobalAttributes/Source_name)",
        "MERGED (from Master/CDFglobalAttributes/Data_type)",
        "L2 (from all.xml/instrument/@ID)"
      ],
      "ObservedRegion": [
        "Earth.Magnetosphere.Plasmasphere",
        "Earth.Magnetosphere.Magnetotail",
        "Earth.Magnetosphere",
        "Earth.Magnetosheath",
        "Earth.Moon",
        "Earth.Magnetosphere.Main",
        "Heliosphere.NearEarth",
        "Earth.Magnetosphere.RadiationBelt"
      ],
      "_ObservedRegion": "Source: https://github.com/rweigel/cdawmeta-spase/blob/main/ObservedRegion.json",
      "ProcessingLevel": null,
      "_ProcessingLevel": "Processing level is not available in the master file; it should be there instead of, say, https://github.com/rweigel/cdawmeta-spase/blob/main/ProcessingLevel.json",
      "InstrumentID": [
        "spase://SMWG/Instrument/THEMIS/C/ESA",
        "spase://SMWG/Instrument/THEMIS/C/FGM"
      ],
      "MeasurementType": [
        "ThermalPlasma",
        "MagneticField"
      ],
      "Parameter2": [
        {
          "Name": "Epoch Time",
          "ParameterKey": "Epoch",
          "Description": "CATDESC: 'Epoch Time'. Notes not in Master CDF: 'The units are the units in CDF files. For other web services, this variable is may be represented as a time string.'",
          "Units": "DD-MMM-YYYY_hr:mm",
          "Support": {
            "Qualifier": "Scalar",
            "SupportQuantity": "Temporal"
          }
        },
        {
          "Name": "FGS-B Magnetic Field, nT units",
          "ParameterKey": "thc_fgs_btotal",
          "Description": "Master CDF CATDESC: 'FGS (spin-resolution/~3 sec) magnetic field B magnitude '. Master CDF VAR_NOTES: 'Units are in nanotesla'. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "1/N SUM |B|, nT",
          "FillValue": -1e+31
        },
        {
          "Name": "BXYZ GSE Coordinate, nT units",
          "ParameterKey": "thc_fgs_gse",
          "Description": "Master CDF CATDESC: 'FGS magnetic  field B in XYZ GSE Coordinates'. Master CDF VAR_NOTES: 'Units are in nanotesla'. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "nT",
          "FillValue": -1e+31,
          "Structure": {
            "Size": [
              3
            ]
          }
        },
        {
          "Name": "N_ion Full ESA-B",
          "ParameterKey": "thc_peif_densityQ",
          "Description": "Master CDF CATDESC: '(Good data only) ESA Full (High Angular Resolution, few minute time res.) Mode, Ion Density '. Master CDF VAR_NOTES: ''. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "n/cc",
          "FillValue": -1e+31
        },
        {
          "Name": "Vth_ion Full ESA-B",
          "ParameterKey": "thc_peif_vthermalQ",
          "Description": "Master CDF CATDESC: '-----Ion Thermal Velocity '. Master CDF VAR_NOTES: ''. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "km/s",
          "FillValue": -1e+31
        },
        {
          "Name": "Vth_ion Full ESA-B",
          "ParameterKey": "thc_peif_vflowspeedQ",
          "Description": "Master CDF CATDESC: '-----Plasma flow speed '. Master CDF VAR_NOTES: ''. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "km/s",
          "FillValue": -1e+31
        },
        {
          "Name": "Ion Velocity Vector in GSE",
          "ParameterKey": "thc_peif_velocity_gseQ",
          "Description": "Master CDF CATDESC: '-----Ion Velocity Vector in GSE '. Master CDF VAR_NOTES: ''. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "km/s",
          "FillValue": -1e+31,
          "Structure": {
            "Size": [
              3
            ]
          }
        },
        {
          "Name": "XYZ_GSE",
          "ParameterKey": "XYZ_GSE",
          "Description": "Master CDF CATDESC: 'XYZ in GSE coordinates (time-series)'. Master CDF VAR_NOTES: '.'. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "Re",
          "FillValue": -1e+31,
          "Structure": {
            "Size": [
              3
            ]
          }
        },
        {
          "Name": "XYZ_SSE",
          "ParameterKey": "XYZ_SSE",
          "Description": "Master CDF CATDESC: 'XYZ in SSE coordinates (time-series)'. Master CDF VAR_NOTES: '.'. Notes not in Master CDF: 'The time index (the ISTP DEPEND_0 variable) for this parameter is Epoch.'",
          "Units": "Rm",
          "FillValue": -1e+31,
          "Structure": {
            "Size": [
              3
            ]
          }
        }
      ]
    }
  }
}