flow icon indicating copy to clipboard operation
flow copied to clipboard

How to read a nc file ?

Open szukiyu opened this issue 7 years ago • 6 comments

I tried executing the program. But I couldn’t read nc file of CMEMS Data Access Portal.

In SSTseq class, data is read as a .pkl file. https://github.com/emited/flow/blob/master/flow/datasets/nc.py#L31

Could you tell me how to convert the .nc file to .pkl file ?

szukiyu avatar Jun 10 '18 12:06 szukiyu

Agree -- it would be good to have the pkl files for reproducibility, or else a set of instructions/source files to obtain the pkl files from the original source.

andrewzm avatar Mar 03 '19 07:03 andrewzm

Hello, may i ask you if you successfully transform the nc file into the pkl file, I also have some troubles and hope to get your help. Many thanks!

chenxiaodanhit avatar Apr 26 '21 03:04 chenxiaodanhit

No, sorry, I ended up doing everything from scratch in TensorFlow, which worked great.

On Mon, Apr 26, 2021 at 1:18 PM chenxiaodanhit @.***> wrote:

Hello, may i ask you if you successfully transform the nc file into the pkl file, I also have some troubles and hope to get your help. Many thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/emited/flow/issues/1#issuecomment-826473503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3KLC5EJ6MXAJTUAGNTTKTLQ7ANCNFSM4FEGYPAQ .

andrewzm avatar Apr 26 '21 03:04 andrewzm

Is there any tips for preprocessing the nc file? @andrewzm @szukiyu @chenxiaodanhit

toddwyl avatar May 02 '21 06:05 toddwyl

I ended up extending this work to the more realistic case of when data are gappy and noisy, using a statistical modelling approach. I then illustrated our method on the same data set, so I preprocessed it. You can see all my code here:

https://github.com/andrewzm/deepIDE

The pre-processing is done in the folder 1_Preproc_data https://github.com/andrewzm/deepIDE/tree/master/1_Preproc_data ... in R I'm afraid! But the resulting data is in the arrays required for training your network, which can be easily exported and converted to some Python format if need be.

If you are interested in the actual paper, see here: https://www.sciencedirect.com/science/article/pii/S2211675320300026

On Sun, 2 May 2021, 16:18 Wen YongLiang, @.***> wrote:

Is there any tips for preprocessing the nc file? @andrewzm https://github.com/andrewzm @szukiyu https://github.com/szukiyu @chenxiaodanhit https://github.com/chenxiaodanhit

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/emited/flow/issues/1#issuecomment-830758032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3LYY52B2ZGEUMSA6E3TLTVBPANCNFSM4FEGYPAQ .

andrewzm avatar May 02 '21 22:05 andrewzm

I ended up extending this work to the more realistic case of when data are gappy and noisy, using a statistical modelling approach. I then illustrated our method on the same data set, so I preprocessed it. You can see all my code here: https://github.com/andrewzm/deepIDE The pre-processing is done in the folder 1_Preproc_data https://github.com/andrewzm/deepIDE/tree/master/1_Preproc_data ... in R I'm afraid! But the resulting data is in the arrays required for training your network, which can be easily exported and converted to some Python format if need be. If you are interested in the actual paper, see here: https://www.sciencedirect.com/science/article/pii/S2211675320300026 On Sun, 2 May 2021, 16:18 Wen YongLiang, @.***> wrote: Is there any tips for preprocessing the nc file? @andrewzm https://github.com/andrewzm @szukiyu https://github.com/szukiyu @chenxiaodanhit https://github.com/chenxiaodanhit — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3LYY52B2ZGEUMSA6E3TLTVBPANCNFSM4FEGYPAQ .

Thanks a lot!

toddwyl avatar May 03 '21 08:05 toddwyl