Commit 16ce9268a2f93c5698d22432e1de05efbd1f9854

Authored by Erdogan Furkan
1 parent 9c24bc6a
Exists in master

Ajout de Helios/E6

Showing 1 changed file with 12 additions and 6 deletions   Show diff stats
scripts/helios_e6.py
... ... @@ -3,6 +3,12 @@ from amda_data_generator.get import LocalFileContainer
3 3 from amda_data_generator.convert.cdf import CDF2NetCDF
4 4 import os
5 5  
  6 +#https://cdaweb.gsfc.nasa.gov/pub/data/helios/helios1/e6_particle_flux/1hour_cdf/1974/helios1_e6_1hour_particle_flux_19741212_v01.cdf
  7 +#https://cdaweb.gsfc.nasa.gov/pub/data/helios/helios2/e6_particle_flux/1hour_cdf/1976/helios2_e6_1hour_particle_flux_19760117_v01.cdf
  8 +
  9 +def remove_fillValue(real_var):
  10 + real_var[real_var==-9999.90] = -1e+31
  11 + return real_var
6 12  
7 13 datasets = {"helios1" : LocalFileContainer(LocalFileItem(source="/home/amda_admin/AMDA/amda_data_generator/helios1_e6_1hour_particle_flux_19741212_v01.cdf")),
8 14 "helios2" : LocalFileContainer(LocalFileItem(source="/home/amda_admin/AMDA/amda_data_generator/helios2_e6_1hour_particle_flux_19760117_v01.cdf"))
... ... @@ -13,14 +19,14 @@ converter = CDF2NetCDF()
13 19  
14 20 common_mapping= {
15 21 "Time": "Epoch",
16   - "p_flux": "p_flux",
17   - "p_flux_sd": "p_flux_sd",
  22 + "p_flux": ("p_flux", remove_fillValue),
  23 + "p_flux_sd": ("p_flux_sd", remove_fillValue),
18 24 # "p_flux_yaxis": "p_flux_yaxis",
19   - "e_flux": "e_flux",
20   - "e_flux_sd": "e_flux_sd",
  25 + "e_flux": ("e_flux", remove_fillValue),
  26 + "e_flux_sd": ("e_flux_sd", remove_fillValue),
21 27 # "e_flux_yaxis": "e_flux_yaxis",
22   - "He_flux": "He_flux",
23   - "He_flux_sd": "He_flux_sd",
  28 + "He_flux": ("He_flux", remove_fillValue),
  29 + "He_flux_sd": ("He_flux_sd", remove_fillValue),
24 30 # "He_flux_yaxis": "He_flux_yaxis"
25 31 }
26 32  
... ...