Extract Date from Data

Hello

I want to extract date of that particular nc file from the CH4 data. Is it possible? I am following the usecase 3 while converting the nc data to geodataframe. But I need date in the final geodataframe.

operations_trop = ";".join([
    "CH4_column_volume_mixing_ratio_dry_air_validity>95",
    "latitude>31.254333999914312",
    "latitude<31.74162156648225",
    "longitude>74.00684949990466",
    "longitude<74.64111329724102",
    "keep(latitude_bounds,longitude_bounds,CH4_column_volume_mixing_ratio_dry_air)",
    "derive(CH4_column_volume_mixing_ratio_dry_air [ppbv])",
    "derive(area {time} [km2])",
])
1 Like

This easiest is to just add datetime_start to the keep operation: keep(datetime_start,latitude_bounds,longitude_bounds,CH4_column_volume_mixing_ratio_dry_air)

@sander.niemeijer It is giving date in this format which is not readable I need it in the string format like 2020-11-01

image

I have solved it Thank you!

Can you tell me how did you solve it?