[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[python #HIY-308608]: siphon filter_time_nearest w/ "day of year" (for GOES ABI & GLM)
- Subject: [python #HIY-308608]: siphon filter_time_nearest w/ "day of year" (for GOES ABI & GLM)
- Date: Tue, 29 Sep 2020 16:43:10 -0600
Greetings!
Yes, the filter functions in the last release of Siphon do not work with the
GOES products. On the Siphon master branch, we've added the ability to specify
your `strptime` format string, as well as adjusting the regex with a `strptime`
named group to allow for that very use case. The Pull Request adding it is:
https://github.com/Unidata/siphon/pull/272/files
If you'd like to install master yourself, you can do that with:
python -m pip install git+https://github.com/Unidata/siphon.git
Hope that helps,
Ryan
> Ryan :
>
> FYI, GOES ABI & GLM use "day of year" in their file name time stamps.
>
> I hacked a patch to siphon/catalog.py to handle "day of year" (attached).
>
> Should I open an "issue" for this ?
>
>
> PS, here's the regex :
>
> re0 =
> r'_s(?P<year>\d{4})(?P<doy>[0123]\d{2})(?P<hour>[012]\d)(?P<minute>[0-5]\d)(?P<second>[0-5]\d)._e'
>
Ticket Details
===================
Ticket ID: HIY-308608
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.