I have been trying to download subsets of ASCAT data using Python and the podaac library. As these data are L2, I use the l2ss module of the library to query the data.
I had no problems with the Metop-A (dataset Id: PODAAC-ASOP2-25X01) data, but today I can not download data from Metop-B (dataset Id: PODAAC-ASOP2-25B01) and I never could download a subset from Metop-C (datasetId: PODAAC-ASOP2-25C01).
Ascat Metop-B
For Metop-B, last week was ok, but today when I query the data, I receive an error:
"Unexpected error occured for the subset job you have requested"
It is just 9 files. If I try to download just one, the script never finishes the request.
code to query:
- Code: Select all
# Period to download
start_date = '2020-06-20T00:00:00Z'
#
end_date = datetime.now().strftime("%Y-%m-%dT%H:%M:%SZ")
lat_max = 7
lat_min = -35
lon_max = -20
lon_min = -55
coords = [str(lon_min), str(lat_min), str(lon_max), str(lat_max)]
box = ','.join(coords)
query = {
"email": '',
'query':
[
{
"compact": "true",
"datasetId": "PODAAC-ASOP2-25B01",
"bbox": box,
"variables": ["lat","lon","time","wind_speed","wind_dir","wvc_quality_flag"],
"granuleIds": list_granules
}
]
}
l.granule_download(query_string = query)
# The list_granules with the files is:
list_granules = ['ascat_20200619_223600_metopb_40238_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_001800_metopb_40239_eps_o_250_3202_ovw.l2.nc',
'ascat_20200621_013600_metopb_40254_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_235700_metopb_40253_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_221500_metopb_40252_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_203300_metopb_40251_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_120600_metopb_40246_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_102400_metopb_40245_eps_o_250_3202_ovw.l2.nc',
'ascat_20200620_084500_metopb_40244_eps_o_250_3202_ovw.l2.nc']
Ascat Metop-C
It is the same problem, however, differently from the data of the Metop-B satellite, I never could download the data.
My scripts for the 3 satellites (A, B, C) are pretty much the same, just changing the dataset ID.
Also, I would like to ask if is there any function in the l2ss that could break or stop the request if the request takes to much time to complete. I have searched in the documentation but I didn't find an answer to this question.
Thank you!!