Project

General

Profile

Using seltimestep with a list stored as a dataframe in python

Added by Lewis Dorling about 2 years ago

Hello,
I currently have a dataframe in python that contains a column with both dates and times in it.
I also have a netcdf file containing hourly data across a forty year period.

What I want to do is use the column of date and times in the dataframe to filter the netcdf file so that it produces a new netcdf file with just the timestamps contained in the dataframe.

I then want to be able to assign a name to each timestep in the netcdf file from another column in the dataframe.

Any help is greatly appreciated