HaroldMills / Vesper

Open source software for acoustic monitoring of nocturnal bird migration.
MIT License
55 stars 6 forks source link

Audio import shows wrong date #215

Closed RichardLitt closed 1 year ago

RichardLitt commented 1 year ago

I am having some issues importing audio set in GMT format with the right time stamp.

    - name: Queens
      description: >
         Recording station in a Queens apartment building near this park.
      time_zone: US/Eastern
      latitude: 40.75
      longitude: -73.91
      elevation: 32

Recording names:

Recordings/Queens_20230502_010000_Z.WAV Recordings/Queens_20230502_033000_Z.WAV Recordings/Queens_20230502_060000_Z.WAV
Recordings/Queens_20230502_013002_Z.WAV Recordings/Queens_20230502_040000_Z.WAV Recordings/Queens_20230502_063000_Z.WAV
Recordings/Queens_20230502_020000_Z.WAV Recordings/Queens_20230502_043000_Z.WAV Recordings/Queens_20230502_070000_Z.WAV
Recordings/Queens_20230502_023000_Z.WAV Recordings/Queens_20230502_050000_Z.WAV Recordings/Queens_20230502_073000_Z.WAV
Recordings/Queens_20230502_030000_Z.WAV Recordings/Queens_20230502_053000_Z.WAV Recordings/Queens_20230502_080000_Z.WAV

The timestamps in Vesper are not switching to local, EST, time. Any ideas?

HaroldMills commented 1 year ago

Thanks for pointing out this issue. To specify UTC times in recording file names, you currently must use names like "Queens_2023-05-02_01.00.00_Z.WAV", i.e. with dashes in the dates and dots in the times. The form you tried gets handled by an outdated MPG-Ranch-specific parser that interprets the "Z" as a comment instead of as a time zone indicator, and so interprets the time as local instead of UTC. I will aim to support the form you tried in the near future, and have created issue #216 for that task.

RichardLitt commented 1 year ago

Thank you! Let's close this for now, then. However - the note in https://vesper.readthedocs.io/en/latest/tutorial.html doesn't say that you need this. Should we update it? I'm not sure how I can.

HaroldMills commented 1 year ago

Good idea. I've updated the note.

RichardLitt commented 1 year ago

Thank you!