Filtering file search by polarization constants generates no results even when files with those polarizations exist
To Reproduce
import os
import asf_search as asf
from datetime import datetime
from getpass import getpass
session = asf.ASFSession()
#session.auth_with_creds(input('EDL Username'), getpass('EDL Password'))
start_date = datetime(2026, 1, 1)
end_date = datetime(2026, 4, 20)
area_of_interest = "POLYGON((40.9131 12.3904,41.8891 12.3904,41.8891 13.2454,40.9131 13.2454,40.9131 12.3904))" # POINT or POLYGON as WKT (well-known-text)
opts=asf.ASFSearchOptions(**{
"maxResults": 250,
"polarization": ["HH"],
"intersectsWith": area_of_interest,
"start": start_date,
"end": end_date,
"processingLevel": [
"GCOV"
],
"dataset": [
"NISAR"
],
"productionConfiguration": [
"PR"
],
'session': session,
})
response = asf.search(opts=opts)
hdf5_files = response.find_urls(extension='.h5', directAccess=False)
hdf5_files
**Expected behavior**
If I remove the polarization opt, several file names are returned with "*SHSH" indicating single pol HH is available during these dates
**Desktop (please complete the following information):**
- OS: Mac OS Tahoe 26.4
- python 3.14
** Additional Context
Using the constants listed in Polarization.py as filters does not result in the expected behavior https://github.com/asfadmin/Discovery-asf_search/blob/master/asf_search/constants/POLARIZATION.py
Filtering file search by polarization constants generates no results even when files with those polarizations exist
To Reproduce
import os
import asf_search as asf
from datetime import datetime
from getpass import getpass
session = asf.ASFSession()
#session.auth_with_creds(input('EDL Username'), getpass('EDL Password'))
start_date = datetime(2026, 1, 1)
end_date = datetime(2026, 4, 20)
area_of_interest = "POLYGON((40.9131 12.3904,41.8891 12.3904,41.8891 13.2454,40.9131 13.2454,40.9131 12.3904))" # POINT or POLYGON as WKT (well-known-text)
opts=asf.ASFSearchOptions(**{
"maxResults": 250,
"polarization": ["HH"],
"intersectsWith": area_of_interest,
"start": start_date,
"end": end_date,
"processingLevel": [
"GCOV"
],
"dataset": [
"NISAR"
],
"productionConfiguration": [
"PR"
],
'session': session,
})
response = asf.search(opts=opts)
hdf5_files = response.find_urls(extension='.h5', directAccess=False)
hdf5_files