I have a large collection of netcdf files which I need to crop with specific latitudes and longitudes and rewrite it as a new file.
What I'm having trouble to do is: when writing this new netcdf file I want to name it with its respective date and time, something like "yyyymmddhhmm".nc, but I don't know how to extract the file's date. Below are some of the file's info:
processing_level: National Aeronautics and Space Administration (NASA) L2
date_created: 2020-01-01T14:10:01.2Z
cdm_data_type: Image
time_coverage_start: 2020-01-01T14:00:21.7Z
time_coverage_end: 2020-01-01T14:09:52.5Z
timeline_id: ABI Mode 6
production_data_source: Realtime
id: e9ac2711-c550-4b8a-9c27-babcd1fc49f6
dimensions(sizes): lon(5777), lat(5777)
variables(dimensions): |S1 crs(), float64 lat(lat), float64 lon(lon), int16 CMI(lat, lon)