Hello,
I’m working through the RUS Copernicus tutorial on regridding Sentinel-5P data using harp in Python. I’ve been able to successfully regrid and download the modified NetCDF, but when I open up the NetCDF in Python Xarray, I don’t see the time as a coordinate (only latitude and longitude). However, in the RUS Copernicus tutorial, the time shows up under the ‘coordinate’ category.
Here is the harp command I used:
harp_op = "tropospheric_NO2_column_number_density_validity>75; \
derive(tropospheric_NO2_column_number_density [Pmolec/cm2]); \
derive(datetime_stop {time}); \
bin_spatial(340, 40, 0.05, 420, -95, 0.05); \
derive(latitude {latitude}); derive(longitude {longitude}); \
keep(NO2_column_number_density, tropospheric_NO2_column_number_density, NO2_slant_column_number_density,latitude_bounds, longitude_bounds, latitude, longitude)"
for i in file_names:
print(i)
no2_l3 = harp.import_product(i,operations=harp_op)
export_filename = "{output_path}{name}".format(output_path=output_path,name=i.split('/')[-1].replace('L2','L3'))
harp.export_product(no2_l3,export_filename,file_format='netcdf')
print(i.split('/')[-1])
Can someone tell me if I made an error? Or how I can get time as a coordinate? This is very important to me as I plan on stacking multiple months worth of data by time.