Good morning Sander,
In the ingestion file for the S5P PAL product of CHOCHO, the fitted slant columns are not included. While it is not an official recommendation for the product, some the SCDs should be used to filter the data in the case of fire events. The fitted columns have a third dimension to include all SCDs, 14 in total.
I found a round-about way to perform the coda ingestion, with your amazing help all these years, but I am wondering if there is an even faster way.
My operations are:
*operations = ";".join([*
-
"latitude>33.5;latitude<42.5",\*
-
"longitude>19;longitude<29",\*
-
'C2H2O2_column_number_density_validity==100;\*
-
keep(latitude, longitude, solar_zenith_angle, \*
-
absorbing_aerosol_index, \*
-
cloud_fraction,\*
-
C2H2O2_column_number_density, \*
-
C2H2O2_column_number_density_uncertainty,\*
-
orbit_index, datetime_start, index)'])*
and then I first ingest the product
*try: *
-
product = harp.import_product(infile,operations)*
and then I coda ingest the fitted SCDs.
*with coda.open(infile) as pf:*
-
# variables are not in the ingestion definition, so we need to ingest them by hand*
-
temp_product = harp.Variable(coda.fetch(pf, "PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/fitted_slant_columns"), ["time"])*
-
product.NO2_220K = temp_product.data[:,product.index.data // 450,product.index.data % 450,2].squeeze()*
-
product.NO2_296K = temp_product.data[:,product.index.data // 450,product.index.data % 450,3].squeeze()*
Is there a way to avoid ingesting first the whole orbit via the temp_product so as to save time in the algorithm? I’m using python 3.11.6 and harp 1.20.2 [don’t ask…]
Many thanks,
MariLiza