Cannot get find_files_and_readers() working

Skip to first unread message

Jan 29, 2022, 5:24:45 AMJan 29
to pytroll
Hi all,

I try to use this function for the first time with the test data V2 distributed for EPS-SG.
Whatever I do I always get the full directory listing of orbit3. Example code used:
bestfiles = find_files_and_readers(base_dir = '/home/eumetcast/VII_L1B/orbit3',
         reader = 'vii_l1b_nc',
         start_time = datetime(2008,2,23,8,45),
         end_time   = datetime(2008,2,23,8,47))
print (bestfiles)

Did I miss something? Any ideas?

Best regards,

David Hoese

Jan 29, 2022, 4:30:10 PMJan 29

I would consider this a bug in the 'vii_l1b_nc' reader. We can see in
the YAML that the file patterns are defined with "sensing_start_time"
and "sensing_end_time", but Satpy's finding functionality assumes
"start_time" and "end_time". We'll have to see what others say about
this as I'm not very familiar with this reader, but this seems like
something that should be fixed/updated.

> --
> You received this message because you are subscribed to the Google
> Groups "pytroll" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> <>.
> To view this discussion on the web, visit
> <>.

David Hoese

Jan 29, 2022, 4:40:09 PMJan 29
to pytroll

Jan 30, 2022, 5:37:04 AMJan 30
to pytroll
Hi Dave,

yes this vii reader is a "work in progress" with a PR under review. I tried find_files_and_readers() with Meteosat 'seviri' files and it worked.
Going through the file patterns of a couple of other readers these normally use "start_time" and "end_time" as you mentionned above.

I have replaced find_files_and_readers() for my 'vii_l1b_nc' script with a couple of own lines.  It's still about TestDataV2 anyway ...

Best regards,
Reply all
Reply to author
0 new messages