-
Notifications
You must be signed in to change notification settings - Fork 90
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
make: f2py: 没有那个文件或目录 #48
Comments
As I've said before, I have totally given up on scrip. Even if it compiles, it doesn't load. Instead, use xesmf and the Arctic_HYCOM_GLBy example. |
Wow, Kate, thanks for your quick reply and your contrubutions in roms or pyroms which really help me a lot in roms learning. You have absolutely lighten the world! haha.. I used the HYCOM_GLBY example to create my input file before, but recently my hard drive broke, so I had to reinstall Pyroms. I didn't encounter this error during my previous installation, so I'm worried it's a version issue. I used to think that you had to install Scrip before you could install pyroms. But after I import pyroms, the terminal did not report an error. So it seems that installing pyroms is not related to installing Scrip? If I successfully imprt pyroms, it means that I have successfully installed pyroms and can use it normally, right? |
Did you download a fresh pyroms? I told it to stop loading scrip when loading pyroms. Yes, you can use pyroms, but not the scrip remapping part of it. |
Yes, I download the new pyroms by clone git.... And I need remapping. because I remember that when I create the input files (bc, ic, and clm), I fixed the remap*.py scripts to create input files. How can I download the scrip...Or can I copy the whole pyroms directory to my new hard drive from the broke one. I am afraid the copied directory cannot build the connection with my new hard drive. Dear Kate, could you please give me some suggestions? Thank you! |
You need a fresh conda environment with xesmf in it. At least sometimes, it has worked best to ask for that package first. It will allow you to do remapping, along the lines of the HYCOM_GLBy example. That's what I use now. If you can get xesmf to work, you don't need scrip ever again. |
Thank you, Kate, but I wanna know, do I need modify the remap*.py? Because One neccessary library has changed from SCRIP to XESMF. Or, I can just run my previous remap*.py scripts and then they will create the input files directly, right? |
Well, no, you do have to change your scripts. |
Dear Kate, is there some documentations which can guide me how to modify the code? Because I am also the new in python...Sorry to bother you with these simple questions. |
What can I say? I asked the original pyroms author for more documentation and he said no. He has since moved on, no longer works with ROMS. |
Thank you ,Kate, I didn't ues the JUPYTER before, but ater I searched it in the Internet, I know it.s kind of python IDE, seems like it can help you with solving error and coding? I will try to use it, thank you again. But before this, I'd like to downgrade the NUMPY. Because in my new OS, is UBUNTU22.04 and all the libraries I use are the latest, which may lead a crash to pyroms.... There is no reason why I can install SCRIP successfully befor, but it didn't work now.. So I guess creat the same environment is also kind of solution.. If everything is usefulless.. I can noly use the XESMF and modify the code which is a bit difficult for me. |
Dear Kate, I am trying to use the xESMF and example Arctic_HYCOM_GLBy now. I used the example Palau_HYCOM beore, and I got the merged .nc file: HYCOM_GLBy0.08_2022_188.nc by running the scripts in Palau_HYCOM. I wanna ask that can I use the .nc file directly and then run scripts in Arctic_HYCOM_GLBy for remapping and creating bdry/ic/clm files? |
Yes, you download HYCOM on the HYCOM grid, then remap to your grid using the Arctic_HYCOM_GLBy example. This example should not have the make_remap_weights.py - if it does, I forgot to delete it. |
Dear Kate, I'm sorry to bother you again, I encountered a problem..I want to use ROMS do the simulations from 2022-7-1 to 2022-7-7, but at the first step of the simulation, it shows the simulation time is 2022-7-7. After simulating July 7th, the mode was terminated at 2022-7-8 00:00:00. After I checked the input files, I found the initial .nc file only has data for July 7th. So I try to re-create the input files with Pyroms, when I run the python get_hycom_GLBy0.08_salt/ssh/temp/u/v_2022.py, the terminal display:
But when I checked the HYCOM_GLBy0.08_temp_2022_188.nc, I found that the .nc file has only one ocean_time which is 44747.0 (which means 2022-7-7), and I think it should contain seven ocean_time values, from 44741.0 to 44747.0.
|
Where did that script come from? I can't debug random scripts. The script I used to download HYCOM is in that Arctic_HYCOM_GLBy directory. The initial file should have just one time - the initial time. What needs to have multiple times is the boundary file. The HYCOM scripts download a lot of individual files. I would have day 188 for each field, then day 189 for each field, etc. I guess I didn't include the bash script to merge all the files for each day into one file for each day - but there are still separate daily files.
|
Dear Kate,
After downloading data for 1st July , It reported an error. When I re-run it, it can download the data for 2nd July. But there is no data in the both two output file, dear Kate, could you please tell what the matter? Many thanks for your kind and warm help.
I am very sorry to trouble you with reading so much content, and I just want to express my sincere gratitude once again. |
Time for some debugging, right? What is in these variables?
As for the other, I can run each get_hycom... script for a whole year at a time. I let each day stay as its own file in the hycom directory. Then the script to make the OBC files can loop over them. Somehow on the ROMS side, I get one OBC file per year. If it takes doing ncrcat from the NCO package to do that, then that's what I do. The https://nco.sourceforge.net/ NCO package is worth learning to use. The chunking you see is it getting the file in parts because my Arctic domain is so very big that I can't download one day in one fetch - Rob worked out how to do the chunking for me. You probably don't need to do that. |
Sorry, I added these variables into the code based my ideas. Because I want to limit the latitude range which I didn't found the corresponding content in get_hycom_GLBy0.08_salt_2019_rob.py, but it may leads the bug.. Should I limit the latitude range for my simulation domain? Thank you for your suggestions, I will try to merge these bdry files with NCO and annotate the content about chunking. The initial files still confuse me..The simulation time from 2022-7-1 to 7-7, and my understanding is that I only need data of 1st July to create the initial file. Is it right? I will take some tests later.. Thank you so much! Hope you have a nice day! |
Yes, initial conditions are simply the model state at the beginning of the run. You only need the one time. The code as is on github is the way it is for downloading a huge Arctic domain. It has the lat-lon ranges hard-coded, including needing all the longitudes. You can download a smaller patch, picking the lat-lon range however you like, as |
Dear Kate, thank you sooooo much! It's late in your city, take a good care of yourself and have a good night! I am surprise about your picture, as it contains the LION DANCE, which is one kind of traditional art of my country, China. |
You like that? Yes, I know a little about lion dance, also dragon dance. I'm too slow to be a dragon leg! |
Haha it's interesting. I like them, they all represent our culture. I do think they are the sports which needs high level coorperations, skills, and physical strength. Perhaps due to competitiveness, Chinese young people prefers the sports such like basketball football badminton and table tennis. We can only watch the performance at traditional festival and we have almost no chance of encountering dragon and lion dances. Hope you enjoy them, haha |
Hello YoungEnzo, I've encountered some problems during the installation of scrip, can I ask you for some advice. Can I add your contact information, such as QQ or WeChat? Thank you very much!! |
不好意思,没看到你的回复,你加我Q把,471245551
Streak Lafeal
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2023年8月28日(星期一) 下午2:22
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [ESMG/pyroms] make: f2py: 没有那个文件或目录 (Issue #48)
Hello YoungEnzo, I've encountered some problems during the installation of scrip, can I ask you for some advice. Can I add your contact information, such as QQ or WeChat? Thank you very much!!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I encountered a problem while installing Pyroms, please help me! Thank you! I have already installed all the necessary libraries, but I encountered a problem when installing Scrip after downloading Pyroms.
the neccessary libraries:
I found an error while making sudo:
(base) zeng@zeng-virtual-machine:~/zeng/pyroms/pyroms/external/scrip/source$ sudo make
f2py --fcompiler=gnu95 --f90exec=gfortran --f90flags='-g -fdefault-real-8 -ffixed-form -O2 -fPIC'
-L. -L/usr/lib -lnetcdf -lnetcdff -ljpeg -lmfhdf -ldf -lhdf5 -lhdf5_fortran -lhdf5_hl -lhdf5hl_fortran -I. -I/usr/include -m scrip -c kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o ./pyscrip.f90
make: f2py: 没有那个文件或目录 (There is no such file or directory)
make: *** [makefile:120:scrip_ext] 错误 127
To my knowledge, f2py is included in numpy, and I have also provided variables:
export f2py=/home/zeng/anaconda3/envs/py2/lib/python2.7/site-packages/numpy/f2py/
but it didn't work..
I am not very familiar with Linux, so this error has made me crazy. Is anyone willing to help me? Thank you very much!!
The text was updated successfully, but these errors were encountered: