kellykochanski / rescal-snow

A model of dunes and snow-waves
GNU General Public License v3.0
12 stars 5 forks source link

What determines how often ALT files are printed? #10

Closed r-barnes closed 5 years ago

r-barnes commented 5 years ago

Files such as ALTI00002_t0.log are demonstrated as being useful for making pretty pictures, but it's unclear what controls the frequency of their generation and whether or not this is tied to the generation of PNG and CSP files. Could you clarify?

kellykochanski commented 5 years ago

@defaziogiancarlo can you clarify the work you did on output frequency + controls? I don't remember seeing it in the docs.

Last I worked on it, the "run" script had flags that control output frequency, e.g.:

./rescal -dpng 20t0 -dcsp 10t0

and I believe but am not certain that the ALTI frequency was tied to -dcsp.

defaziogiancarlo commented 5 years ago

Hi Kelly,

I looked over the Python style comments from last week.

As for ALTI file output frequency controls, there aren't any. Rescal was set up to output both a .csp and an ALTI file at whatever interval is set for the .csp files using -dcsp or -dcsphpp. All I did was add the flag -altionly which disables the .csp output, so you just get the ALTI file. The frequency is still determined by the -dcsp or -dcsphpp flags.

If you're trying to output .csp and ALTI files at different frequencies, I don't think there's any way to do that without modifying rescal more. The other way would be to add functionality to datarun.py.

I you want to get just ALTI files, you can modify example_pyrescal.py.

Add the -altionly flag by adding

'alti only' : True,

to the parameters_run_1 dict

at the bottom, comment out the line

dr.run_simulation()

and uncomment the line

dr.run_without_piping()

Then when you run example_pyrescal.py, the data_runs directory should contain only ALTI files.

The only documentation for this is in rescal itself. There's a small description about the -altionly flag when you do ./rescal -h

Hope this helps, If you want I can modify rescal so that you can do something like output a .csp file with every nth ALTI file.

Gian-Carlo DeFazio


From: Kelly Kochanski notifications@github.com Sent: Tuesday, September 24, 2019 10:43 AM To: kellykochanski/rescal-snow rescal-snow@noreply.github.com Cc: Gian-Carlo DeFazio defazig@wwu.edu; Mention mention@noreply.github.com Subject: Re: [kellykochanski/rescal-snow] What determines how often ALT files are printed? (#10)

@defaziogiancarlohttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdefaziogiancarlo&data=02%7C01%7Cdefazig%40wwu.edu%7C454a50a78bb041bf08c108d74116a73e%7Cdc46140ce26f43efb0ae00f257f478ff%7C0%7C0%7C637049437875486595&sdata=AR%2FDxp65LuXAMlBo5NHBHDTAMQf49g08F3P11AySn98%3D&reserved=0 can you clarify the work you did on output frequency + controls? I don't remember seeing it in the docs.

Last I worked on it, the "run" script had flags that control output frequency, e.g.:

./rescal -dpng 20t0 -dcsp 10t0

but the ALTI frequency could not be explicitly controlled (?).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkellykochanski%2Frescal-snow%2Fissues%2F10%3Femail_source%3Dnotifications%26email_token%3DAD6YFE7HZNVPRC5KDHXGCELQLJGSPA5CNFSM4IG7NIK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7PGREY%23issuecomment-534669459&data=02%7C01%7Cdefazig%40wwu.edu%7C454a50a78bb041bf08c108d74116a73e%7Cdc46140ce26f43efb0ae00f257f478ff%7C0%7C0%7C637049437875496586&sdata=%2Bg%2F0tmOOrIvXTY4EbcwHEc9XWE%2BPd9%2FF4q7hf%2F%2FskDg%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD6YFE3YKMTHL7J5BPS3QATQLJGSPANCNFSM4IG7NIKQ&data=02%7C01%7Cdefazig%40wwu.edu%7C454a50a78bb041bf08c108d74116a73e%7Cdc46140ce26f43efb0ae00f257f478ff%7C0%7C0%7C637049437875496586&sdata=bNoynis6AInsYG6T5fe1Mk3LrM8mp4gPN7X%2Bo1zCwWs%3D&reserved=0.

kellykochanski commented 5 years ago

@defaziogiancarlo Thank you for clarifying.

kellykochanski commented 5 years ago

@r-barnes in light of this comment, I've added a line to the tutorial explaining that ALTI files are produced at intervals set by the -dcsp flag, and have added a note to the performance docs explaining that large csp file output can be suppressed with -altionly.

Closing the issue.