Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can monthly data be used? #100

Open
zhanghan12345 opened this issue Sep 21, 2023 · 6 comments
Open

Can monthly data be used? #100

zhanghan12345 opened this issue Sep 21, 2023 · 6 comments

Comments

@zhanghan12345
Copy link

When using PySplit, I noticed the following description in the generate_bulktraj function:
meteo_bookends : tuple of lists of ints
Default ([4, 5], [1]). To calculate a month of trajectories, files
from the previous and month must be included. The default is optimized
for weekly meteorology and indicates that weeks 4 and 5 from the
previous month and the first week of the next month must be included
to run the entire current month of trajectories. The user is
responsible for making sure the correct bookends for their trajectory
length and meteorology file periods are provided.

So I want to know if it's necessary to import weekly data in order to generate trajectories? Because I plan to use ERA5 data and convert it to ARL format, so I'd like to know if monthly data can be used instead?

@zhanghan12345
Copy link
Author

I have resolved this question, thank you

@xli3111
Copy link

xli3111 commented Mar 14, 2024

I have resolved this question, thank you
Hi, Han, May I ask how did you solve this question, and how did you use ERA5 data to run the Pysplit? Hope for your reply, thanks.

@zhanghan12345
Copy link
Author

@xli3111 There seems to be some error in the font format of the email, here is the full answer:
Hello, xli
Did you have converted monthly data from ERA5 to ARL format?
If the ARL file have been created, you need to change the name of the file to a specific format, like gdas1_aug21.m1. The most important point in the file name format is the date ("aug21" in this example) and "m1".
Now you got several files (named gdas1_aug21.m1 gdas1_sep21.m1 gdas1_oct21.m1 ), then change the parameters in function generate_bulktraj from the Default ([4, 5], [1]) to ([1],[1]), and now run your program that generates trajectories based on Pysplit and the monthly data you generate will be read correctly.

Default ([4, 5], [1]) indicating ([last month week4,last month week5],[current month week1])
Now ([1],[1]) indicating ([last month1],[current month1])

@xli3111
Copy link

xli3111 commented Mar 14, 2024 via email

@zhanghan12345
Copy link
Author

@xli3111
I haven't had that problem. I have downloaded and successfully run both the 3-hour interval and the 6-hour interval data. The whole downloading, processing, and running process is very complicated, so I don't know where you are going, and which step may be the problem. Please provide me with your email address and I can provide you with my data download script so that you can visually observe the data structure. Now my time here is 00:50, so I should reply to your email tomorrow.

@xli3111
Copy link

xli3111 commented Mar 14, 2024

@xli3111 I haven't had that problem. I have downloaded and successfully run both the 3-hour interval and the 6-hour interval data. The whole downloading, processing, and running process is very complicated, so I don't know where you are going, and which step may be the problem. Please provide me with your email address and I can provide you with my data download script so that you can visually observe the data structure. Now my time here is 00:50, so I should reply to your email tomorrow.

Thank you very much again, my email address is [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants