[Thread Prev][Thread Next][Index]
Re: [ferret_users] how to map date strings from a csv file onto a ferret time axis
- To: "Albert;J. Hermann" <albert.j.hermann@xxxxxxxx>
- Subject: Re: [ferret_users] how to map date strings from a csv file onto a ferret time axis
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Mon, 31 Jan 2022 14:09:56 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b="fud2/PBZ"; 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=REJECT 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="fud2/PBZ"; 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=REJECT 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 :references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:dkim-signature; bh=arIgd+7UIMVRyNMqgoeOlBSZ3V5ARD7wNc5+0khmw34=; b=x7KPu7PhPDR99vQMutcqoZwb1XBMtRM0H9rYgrdvaYr6z+OQcie9icywxl236rMIsH PSFDZ10Xr6aRtv63Y53zULEUW9ZafF9rhqcHyGvEmL8TBKz9BmIGPMG3GpT3feMwfzuE qpmNb7E9RoCq7pvZJhZXYuYTUhm6f7FuSfI1YyuhCcSDsXZ/dWAjTU7wuXiHcHFd4OEp FMcIPHgICfy0zhZ73C6omYmYkZuKU/YNeJtYLtT3+TIRs+JYkSAVwGSvb92pIXMjhuxx TkDNarlGGe/gzH8nWlKqAkwqpnsRFmvolsb0l3L3ZYVgXwDcjXjOC0A76EiEZb9ra8Mh Ik5w==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:dkim-signature; bh=arIgd+7UIMVRyNMqgoeOlBSZ3V5ARD7wNc5+0khmw34=; b=t0RO2hue0IBu71W3xm1jVz5cvUGBRH6IXUGTM1jJ8Oj2mvXQjihse8xPHc+Ga/HiCS dHUtnG+23BfOt8ep7npCXQAvecpA0L4VuhF+erGQl84Fetzv01hWCurzbgyKAKeDixZn vJadF3oCCr3pWzWW2qNy3sSNUcfvIA9PfqP+AozL46vSSquGv/Vtv1myza4UXj31R0Qx xsohvgpFA4v2zZ7sV9FP97cClU3M+wqekpExdT9BVrvW6Bh8k9ro0KE4FmU6Uhrve8T6 QY+o2R6KXec3KPzglY+2c5NOQY6OhdTYZFPTnOT8sopzs/+MGF+k0srVDNBf/XJtBwdr DCtg==
- Arc-seal: i=2; a=rsa-sha256; t=1643666998; cv=pass; d=google.com; s=arc-20160816; b=CRzUpAeNCfSRBp/qN/q6/WP89fsDK7OhIcrq2+R5ApshWeygkYpMRFggBX/HKU31RO sJHGk7LRGcRb3FzDergStBCO9xBQHrXrWOSdwp/Ouh50GTkop3doDOr0+o3DN+mtzinu jH0dyg5uoeE0K2gse7I1YlwAaLoWB1q0M6liISYrPIp80KmycjcAUJsDZuYW7cL/bPiD h4HnX0Wr+5Nsg/PZj4UPQMPGgjyJw7xrv6MQd4n9lAiF/6tbBPdsfjaqCa/SgZxmsK7d /XTIkbWIivaRgPpQ1Q60eMApmN6jb2vUBLZQ6VXqwac29muAb6UYap5hKN2cNucAMP1F I36A==
- Arc-seal: i=1; a=rsa-sha256; t=1643666997; cv=none; d=google.com; s=arc-20160816; b=BWvPKMYVSJNpsQvxGJY77/pl0mUz0a2PxOUs7s261fWo8yID3jESjoZcSwy1wq/Ig+ ttJCfKuomcVdiOOS5MVFyQqCsC9HhAE6ACVoWFSzCEeCeZj2jBFiekPcF7EwNDgHcKZf mKVrCRHwqnuGSqP/AQ8LdNmMqEQlDE2PelSmhbsbf5kFMSt1I9IWnB45A3CnKKawR8VB 9Jbe9rA0E83yXGlElxXFmdP84qsb6tgDL1kGJbtFHK0N7rNs8Q1cOKPMRJKPB/h4g7Jg knf9qBvlTPiAQQI+FksMF5APlbmtiqQe98ODWQM216iHfM9i/udeHA3OEd/mczITjsIQ tiPw==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive; bh=arIgd+7UIMVRyNMqgoeOlBSZ3V5ARD7wNc5+0khmw34=; b=KGm9g9sNOYYzHk6ZgDDZkvk4MvuuSUyOWLws/nS1xVsl+T3t5wRLMCwYxd0GywUkPB A8eYsCeQIPjEiyZn9ZbYvR4yHIWYTa3gmwveonNZ3NHLWO6g/oIL3RMilG8qr0pTmZgc 2DDoPwYst9CxsMTLqb3tRnE7VJD89T3ORI4whcqL33msmSGpCxdTnKOgOzqD5iRJHRyr 6vC5e6aEJr99oPlYlNLfjZMEyjZjN+ZmZR3wjgUkyvetdjSx7TJXYUFDk7zl06BjxMqj asulOn13vwdCVzjCpGZ1Q7IXQRBztbgsJDnsbMxC2ZJaeq5zzF+x2Jl3aO6ghmOA7tPL Yecg==
- In-reply-to: <CAEsMs0RhnnK8GV4gH7pexES106YDm=Sn+f0FVH4AzKjGNz=92Q@mail.gmail.com>
- 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
- References: <CAEsMs0RhnnK8GV4gH7pexES106YDm=Sn+f0FVH4AzKjGNz=92Q@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
CSV is a pain!
I have done this kind of thing once, using a unix shell script to sort and extract each variable, writing each variable into (separate) files that Ferret can read. Yes, a pain!!!
I've attached the shell script as an example. If there aren't too many values, and if they are more or less regular in the csv file, it might be possible to do this kind of thing in a text editor.
Billy
> On Jan 31, 2022, at 1:44 PM, Albert Hermann - NOAA Affiliate <albert.j.hermann@xxxxxxxx> wrote:
>
> Hi,
> Does anyone know how to easily map dates like the ones shown below (contained as a variable in a csv file) onto a time axis in ferret? The file contains one date string and temperature value (plus other variables) per line. So far I have not found any ferret function that can interpret these strings - does one exist? Thanks.
> -Al Hermann
>
>
> yes? list/i=1:10 time
> VARIABLE : TIME
> FILENAME : 2021_SpringDeployed_BS_BioPUFFS_POPS0001_bottomdata.csv
> SUBSET : 10 points (X)
> 1 / 1:"2021-05-13T00:10:00Z"
> 2 / 2:"2021-05-13T01:10:00Z"
> 3 / 3:"2021-05-13T02:10:00Z"
> 4 / 4:"2021-05-13T03:10:00Z"
> 5 / 5:"2021-05-13T04:10:00Z"
> 6 / 6:"2021-05-13T05:10:00Z"
> 7 / 7:"2021-05-13T06:10:00Z"
> 8 / 8:"2021-05-13T07:10:00Z"
> 9 / 9:"2021-05-13T08:10:00Z"
> 10 / 10:"2021-05-13T09:10:00Z"
>
> --
> albert.j.hermann@xxxxxxxx
> Pacific Marine Environmental Laboratory
> 7600 Sand Point Way NE
> Seattle WA 98115
> 206-526-6495
Attachment:
convert_ADCP_csv_files_to_readable
Description: Binary data
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement