Closed npucino closed 4 years ago
Hi Nicolas,
Could you send over your url_file so I can try to replicate the error?
Cheers T
Hi again @npucino,
I have updated the code and created a new version 1.0.2 which fix the problem. You will need to use the following command: wa.processAltimeterData(max_qc=5, altimeter_pick='all', saveCSV = 'altimeterData.csv')
where max_qc is the quality flag number. By default it was set to 1 and in your cases the flags where always over it. In this case the result was an empty data frame. The significant wave height control flag is defined in the netcdf files as the SWH_KA_quality_control or SWH_KU_quality_control depending on the different satellites. I have also "SENTINEL-3B" in the list of all as I didn't see it before.
It should fix your issues...
Cheers T
Perfect, thx Tristan-salles!
It is good that you kept the highest quality flag default. I found some sig.wh in Port Phillip Bay to be 8m high! That would be a disaster! Cheers
I am trying to extract wave data from Port Philip Bay (VIC).
Not all the satellites are there, so I used a subset of sats as list (ppb_sats, see below code). However, the function fails when is trying to save a CSV with Pandas .to_csv method.
I suspect there is a problem with the previous steps of extracting information from NetCDFs but I cannot understand where. Here is what happens:
and the error is the following:
If I add a list of sats (ppb_sats) in the altimeter_pick parameter, it prints: "No altimeter data found...".
Any idea where is the error?