[Thread Prev][Thread Next][Index]
[ferret_users] How to find the number of seconds in a timestep
- To: Ferret <ferret_users@xxxxxxxx>
- Subject: [ferret_users] How to find the number of seconds in a timestep
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Sun, 1 Dec 2019 14:20:13 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=BtdEfE+w; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=BtdEfE+w; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :cc:date:message-id:subject:mime-version:content-transfer-encoding :from:dkim-signature; bh=jJ4nKRNSah622VnYX/EPztN75k9uuYEpDEWYUXIuFnE=; b=crR5025FJ25EML9gIYt6chz3feXfBN30xDzUJ02tj+X3SE9BRuTW7l6XLjbDnafFOk M9/0509sUtXEvhXvTT757dnFja5lGps27XGUv/D2dMwdxuqMYQI+zFgYaI7wxK8DVOib ujy5NHDjylDa1d3SDOzVzltLO6VLdQeatdX90sEvkfgwZNaVrM3tHCOoBN11Y/kuH+40 3aN+y9rGvHdb4im7Y2EhuE615Guvsi+v+CzFqjfk8vfKfiMlt5qZHqJFsfU2N2Snu/OP ch0BXzNwXaVdbMcojnnkrkoLWR9dmaAQjhQ4bzIZzBORGVgLk9vE9jdO/U9rWKZ3hd+f QQFA==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=jJ4nKRNSah622VnYX/EPztN75k9uuYEpDEWYUXIuFnE=; b=uaXDbr/FyjlWhR3gjcqZ8/ryH4QH7D5vrXnoQVO1ahsONQBBcjpYnCKN3qBSOhOb1t qJa3eo0IyoKi5GYhfw1J8CsFN9r//MkEOIzeBT9nBLkzdOoKVB59YEPufRAkg0VHdLil jAmGyKptla95puuyODFkVylDI5aVr4ILYpxV5ImIjLYXn4B6IA/SOV9jqFouy4kha9cg ANFOKLR3MgC7FWw02o2GQI37l+7ieuFabkem/xY0M3hJ1iQDpqM+Y07VxU6HCmChSCbx tB5axPG4SLXhohM5zz0MLLcb330TOfzivAZLbH8AxCmwKjzHhv2Z68RpP0132FtQe1Y2 aNzg==
- Arc-seal: i=2; a=rsa-sha256; t=1575238816; cv=pass; d=google.com; s=arc-20160816; b=vaLujnPF259QkRkOKHDM38ZbOTXM6s5mP8qWg1DUgVIPim8G9y5eVBFiNhMkDSAAu5 LnCT/lMlv8YG1GzdFrQzNG/C5uCjDiQuNxp62qb2BMfadn/naF+6Zcvk4ICDzW7NXV7q yAOEFWK9rWWNe6Tn7QBkFyWdK2od7vqAoMB7bSaC7Ib2tH1GzBUEkS9bTlkTKK0uYex7 guUQIwN+arfzBnYyUP0ifG2F1g220dBbg7ofMYem0LhOuLN1eSPRJbBlkwc9tHfPvrlE 6M+Ylo/62eACD/eAxcLI6EVsfu7rMR/sFWrucLQW0g8BGkgwJIPs1OVQYNWBr/m6yv6n jr8Q==
- Arc-seal: i=1; a=rsa-sha256; t=1575238815; cv=none; d=google.com; s=arc-20160816; b=Ol0Fl7RnwPmW+YihiS9ewukYMtneW3Wq6h4o2QL+8ZhF4EmIvrGR4hTs2QlMEa+vOy smqzm4mvxFW0kvzmoI0fHjJNbhhFWeD4I34PDJanqVw16hLZsTpcOC5DWQpv+NtUJGZm vq7eNl04wfanTKrw438QxcZKPmyTLWuUJsNGkgATHc4LYLNfFUWxnYFpkYq1ZGPcNIY6 22hpX1GbYEdsHsObXUKaold0YI+i4u3pUgLivtmIm1nLRchpUwUDCUhyNqZ4nD/g+C12 lDic7EAXR3iK5s7D2wCirUgLiJRPLm5q22s50OKJuiXSkw7DrvhdvgGqfsR1MzRedehu 3WaQ==
- Cc: "William S. Kessler" <william.s.kessler@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive; bh=jJ4nKRNSah622VnYX/EPztN75k9uuYEpDEWYUXIuFnE=; b=BSMARXY6XwnfEO43qnaoRD4Xqt5NCXW1NlVpMFLZ17kMfoIIpnKK0oYgTJnLozYcvL AKPbeia0ynIqEGxkXNJ5ppS1nvbXI31ZjH5pMWPADzkEon9IJq0DI20BblDTyMZVRBE1 X/EgJqx3c5n60ujtYzgP7r6RR7lyTXCLNlkj+YpCxzt1t+z6KL2qkNkC0lxhCbil0c2L z/Xs8krXcXYOx5bDv6j6zGiif0z1UUxzhqREadikSr/BDX8Irv6AchhGDvSAPSgXVgTA xCGCWyJ9q57dxDH5/5IE3fxl2wDkVuHd/QNlPtqpiK2z74ZUw+hR5PCDMxu89mMU8vmg tXCQ==
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- Sender: owner-ferret_users@xxxxxxxx
I'm sure I'm just missing something here ....
I'm reading variables from a netcdf file that has a regular time axis in days (as I know by listing a few timesteps).
I can also see by this listing that the timesteps are 2 hours, but neither the axis unit nor the timestep length is a number I can use (without listing and looking each time).
How can I reliably find the number of seconds in a timestep?
Alternately, how can I find the units of the time axis?
yes? sho axis time
name axis # pts start end
TIME TIME 7149 r 17-JUL-2012 04:00 04-MAR-2014 20:00
T0 = 01-JAN-1970 00:00:00
let TT = t[gt=u] ! listing a few TT values shows by eye that the time axis is days, and the timestep 2 hours, but these are not numbers I can use except manually
list TBOX[gt=u] ! shows that TBOX=1/12 of the time axis unit, but I don't know that unit length except by eye-balling a listing
let TAXIS_UNIT = 1/TT[l=@ddf] ! length of a time axis unit in seconds (because Ferret takes time derivatives in seconds)
let TSEC = TBOX[gt=u] * TAXIS_UNIT ! this calculation finally tells me the length of a timestep, in seconds
Clearly Ferret knows this information but won't tell me without a calculation. Am I missing something obvious?
It seems that TAXIS_UNIT should be a keyword like TBOX, TBOXLO, TBOXHI. Those are all similar to index units in that they are only meaningful once you know what the geophysical time axis unit is. TAXIS_UNIT (or equivalently TSEC) would make these available for calculations.
And note that my method above fails at the final timestep (because of @ddf). In the present case that doesn't matter because I know that the axis is regular, but if it wasn't I would have a hard time getting this information.
Thanks ... Billy K
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement