slv.measurements.mobile.obs.load_trax_obs#
- slv.measurements.mobile.obs.load_trax_obs(cache=None, include_uncalibrated=True, include_low_pressure=True, epoch_offset=True, location='on_track', rebuild=False, time_range=None, **build_kwargs)[source]#
Load the cached TRAX CH4 record (
$SLV_USER_DATA_DIR/trax/obs.parquet), building it if needed.include_uncalibrated=Falsedrops the tank-out windows so their effect can be tested; thecal_sourcecolumn is always present for finer filtering.locationselects where the train was (LOCATION_SETS):"on_track"(default) keeps route / line / stopped,"outdoor"also keeps yard-parked minutes,"all"keeps everything (indoor shed air and untrusted positions included); thestate,indoorandyard_namecolumns are always present.include_low_pressure=Falsedrops the manual-cal rows measured at low cavity pressure (low_pressurecolumn, seebuild_trax_obs()).time_range=(start, end)reads onlystart <= Time_UTC < endfrom the cache (a parquet row-group filter: the file is time-ordered, so one year of the 92 M rows costs a few seconds and a few GB rather than the whole record).- Return type:
GeoDataFrame