mscross / pysplit

A package for HYSPLIT air parcel trajectory analysis.
BSD 3-Clause "New" or "Revised" License
144 stars 79 forks source link

FileNotFoundError: [WinError 2] The system cannot find the file specified #83

Open conaghili opened 2 years ago

conaghili commented 2 years ago

Hi all,

I googled this as well. So example data and my own data from gdas are giving this error in the title. I do not know why

import pysplit
working_dir = r'C:/hysplit/working'
storage_dir = r'T:/trajectories/July17'
meteo_dir = r'T:/Globus/gdasJuly17'
basename = 'island'
years = [2017]
months = [7]
hours = [6] #UTC
altitudes = [2000] 
location = (-7, -15)  
runtime = -48 

pysplit.generate_bulktraj(basename, working_dir, storage_dir, meteo_dir,
                          years, months, hours, altitudes, location, runtime,

                         )

Troubleshooting: 1) Reinstalled the entire python environment -- using recommended 3.7 settings from main page 2) Change forward to backward slashes 3) Reinstalled hysplit 4) Changed directories again 5) Ran sfc /scannow 6) added .BIN

I dont understand this error pysplit was working fine end of last week on my windows PC with the example .py bulk trajectory example. I checked the file directories they are correct. The troubleshooting took awhile and now I am still kind of stuck.

Now even with the example this occurs image

This is what the control file says: image

File directory if needing to inspect the size of the files. I guess I could run hysplit but I would rather run pysplit image

I was able to do this previously. I have no idea why the program breaks. image

conaghili commented 2 years ago

https://github.com/mscross/pysplit/issues/82#issuecomment-901345234

^This suggestion worked. I ended up installing a copy of hysplit again with hysplit4, so to have two, as the name but what is really strange is that my previous run did not need hysplit4 so a bit baffling