[Thread Prev][Thread Next][Index]

Re: [ferret_users] DAYS1900 function not working as I expect




Thanks to Billy and Ainsley. I had a mental block and couldn't see the problem.

I've got the data the way I want. Thanks!


On Thu, Feb 23, 2023 at 11:56 AM William Kessler - NOAA Federal <william.s.kessler@xxxxxxxx> wrote:

The very first thing to do would be to test your read by listing the first few values of mon,day,hour,minute,data:
LIST/I=1:30 mon,day,hour,minute,data   ! Noting more than 24 points to test HR. Is this correct?

Two possibilities come to mind:

1) Since you do not specify the axes/grid of the input, Ferret is taking it along the x-axis, not the time axis as you want. Apparently DAYS1900 is just reading the numbers so it works at least partly but I think everything would be smoother (especially later if you want to plot on a time axis) if you defined the time axis and grid right at the start with DEFINE AXIS and then DEFINE GRID, then read the data with FILE/.../GRID=

If you know the time range and axis exactly - and since you have a small number of records - you can define the time axis from looking at the raw data. Otherwise, if you know that the time axis is regular you could use t onically increasing.

What am I missing?

Thanks!

--
Gary Strand, CESM Data Manager
ORCID 0000-0001-9740-0104
strandwg@xxxxxxxx


--
Gary Strand, CESM Data Manager
ORCID 0000-0001-9740-0104
strandwg@xxxxxxxx

[Thread Prev][Thread Next][Index]