Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMeasureCSV ¶
FetchMeasureCSV retrieve past measures in CSV format https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/Archive/synop.${DATE}.csv.gz with ${DATE} a string as YYYYMM or https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/synop.${DATE}.csv with ${DATE} a string as YYYYMMDDHH
func FetchStationCSV ¶
FetchStationCSV retrieve station lists as csv from https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/postesSynop.csv
Types ¶
type CSV ¶
type CSV struct {
// contains filtered or unexported fields
}
CSV is a simple CSV structure to hold tabular data
type Measure ¶
type Measure struct { StationID string // numer_sta Date time.Time // date SeaPressure *int // pmer, in Pa PressureVariation *int // tend, in Pa BarometricTrend *int // cod_tend, code 0200 WindDirection *int // dd, in degrees for 10 min WindSpeed *float64 // ff, in m/s for 10 min Temperature *float64 // t, in K DewPoint *float64 // td, in Humidity *int // u, in % HorizontalVisibility *float64 // vv, in m PresentTime *int // ww, code 4677 PastTime1 *int // w1, code 4561 PastTime2 *int // w2, code 4561 TotalNebulosity *float64 // n, in % LowerLevelCloudNebulosity *int // nbas, in octa LowerLevelCloudHeight *int // hbas, in m LowerLevelCloudType *int // cl, code 0513 MiddleLevelCloudType *int // cm, code 0515 HigherLevelCloudType *int // ch, code 0509 PressureStation *int // pres, in Pa BarometricLevel *int // niv_bar, in Pa Geopotential *int // geop, in m2/s2 PressureVariation24Hours *int // tend24, in Pa MinimalTemperatureOverLast12Hours *float64 // tn12, in K MinimalTemperatureOverLast24Hours *float64 // tn24, in K MaximalTemperatureOverLast12Hours *float64 // tx12, in K MaximalTemperatureOverLast24Hours *float64 // tx24, in K MinimalGroundTemperatureOver12Hours *float64 // tminsol, in K TwMeasureMethod *int // sw, code 3855 WetBulbTemperature *float64 // tw, in K Last10MinutesGust *float64 // raf10, in m/s GustOverPeriod *float64 // rafper, in m/s GustPeriod *float64 // per, min GroundState *int // etat_sol, code 0901 SnowHeight *float64 // ht_neige, in m FreshSnowHeight *float64 // ssfrai, in m FreshSnowPeriod *float64 // perssfrai, in 1/10 hour PrecipitationOverLastHour *float64 // rr1, in mm PrecipitationOverLast3Hours *float64 // rr3, in mm PrecipitationOverLast6Hours *float64 // rr6, in mm PrecipitationOverLast12Hours *float64 // rr12, in mm PrecipitationOverLast24Hours *float64 // rr24, in mm SpecialPhenomenon1 *string // phenspe1, code 3778 SpecialPhenomenon2 *string // phenspe2, code 3778 SpecialPhenomenon3 *string // phenspe3, code 3778 SpecialPhenomenon4 *string // phenspe4, code 3778 LevelCloudNebulosity1 *int // nnuage1, in octa LevelCloudNebulosity2 *int // nnuage2, in octa LevelCloudNebulosity3 *int // nnuage3, in octa LevelCloudNebulosity4 *int // nnuage4, in octa LevelCloudType1 *int // ctype1, code 0500 LevelCloudType2 *int // ctype2, code 0500 LevelCloudType3 *int // ctype3, code 0500 LevelCloudType4 *int // ctype4, code 0500 LevelBaseHeight1 *int // hnuage1, in m LevelBaseHeight2 *int // hnuage2, in m LevelBaseHeight3 *int // hnuage3, in m LevelBaseHeight4 *int // hnuage4, in m }
Measure as defined in https://donneespubliques.meteofrance.fr/client/document/doc_parametres_synop_168.pdf Names are in english for code mapping Code list is available at https://library.wmo.int/pmb_ged/wmo_306-v1_1-2012_fr.pdf
func ParseMeasureCSV ¶
ParseMeasureCSV parses measures from a CSV file formated as https://donneespubliques.meteofrance.fr/client/document/doc_parametres_synop_168.pdf
type Station ¶
Station as defined in Synop
func ParseStationsCSV ¶
ParseStationsCSV parses stations from a CSV file formated as "https://donneespubliques.meteofrance.fr/donnees_libres/Txt/Synop/postesSynop.csv"