Hi Nadia, A time axis needs several pieces of information, the time coordinates (here, that's just 1, 2, 3, ...), the time units (months), and the time origin - time in time-units since some date. You need to define a time axis that represents the time information correctly, and then regrid the data to that axis, using the @ASN regridding transformation to just assign each point in the time direction to the new axis. (For some axes, you could use SET AXIS to give the existing time axis the right units and time origin. But this is "months", and monthly axes need some special care because months are of different lengths.) Have a look at this example from the documentation about defining a true monthly calendar. http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/DEFINE#_VPINDEXENTRY_1310 It shows how to define the axis so that the months defined so that the time coordinates fall at the middle of the month, which is what you want. Once you have defined your time axis, you can yes? let var_on_months = variable[gt=monthly_axis@ASN] Ansley On 1/21/2015 11:20 PM, nadia rehman
wrote:
|