-
Notifications
You must be signed in to change notification settings - Fork 21
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
Quick-question board. #23
Comments
Hi Jaime, I am testing some of it for my super fine scale local (small geo region) grid and not sure how to properly specify ERA5 subsetting bounding box. If using standard way with bbox = hgrid.get_bbox('EPSG:4326', output_type='bbox') then I have only 1 ERA5 lon stripe point saved in sflux file. However, I belive we need at least 2 for proper convex hull interpolation. Tried to change in era.py condition which use predefined xoffset/yoffset (set to era5 grid resolution 0.25 deg): er.inventory.lon, er.inventory.lat but netcdf file is: lon = lat = Cheers, |
Are there any plans for publishing |
@cuill if you don't have plans for publishing on PyPI can I create a fork and publish with a name such as |
Hi there, thanks very much for releasing this package, it's incredibly useful. Are there any plans to release some more updated and complete documentation in the near future? Cheers, Tom |
Also the example scripts are incomplete and outdated. Does anyone have an example script they could share with me that just show's the implementation of the model using Pyschism? Thanks |
@TPCollings |
@cuill Ah thanks, I've already found, they are really useful. I'm more looking for some examples of how to initiate the model once the input files have been generated. |
@TPCollings |
@cuill I see that |
@SorooshMani-NOAA https://github.com/schism-dev/pyschism/blob/main/examples/examples_sflux/gen_sflux_gfs2.py https://github.com/schism-dev/pyschism/blob/main/examples/examples_sflux/gen_sflux_hrrr3.py |
@cuill I just returns a hrrr3.HRRR(start_date=datetime.now()-timedelta(days=15), pscr='/tmp/testhrrr3', rnday=2, record=1, bbox=Bbox([[-80, 20], [-75, 35]])) and gfs2.GFS(start_date=datetime.now()-timedelta(days=15), pscr='/tmp/testgfs2', rnday=2, record=1, bbox=Bbox([[-80, 20], [-75, 35]])) For GFS I get:
Should I create a ticket for it? |
The file name hrrr_.nc follows Dan's workflow, so that he doesn't need to change his shell scripts. Users can link the needed files to the run directory. I don't have issues running gfs2.GFS. Are you using the latest version of pyschism? Line 116 should be this: |
@cuill yes, I'm using the latest. The reason behind difference in line no is that I added some print statements to see what is going on. So right now you can execute the gfs2 line I wrote above without any issues? That's strange! About the |
No, I was using the example script. I think the issue with your script is start_date format. |
@SorooshMani-NOAA date = datetime.now() - timedelta(days=1) |
@cuill Thanks for your help. By the way, I just tested the same gfs2 code from above on a different machine and it worked without any changes to the In any case, would it be possible to share the script that Dan is using to convert |
Actually it was pure lucky timing. But the easier way is to just send |
@SorooshMani-NOAA |
@cuill thank you. So it's OK if |
@SorooshMani-NOAA |
@cuill I'm trying to use HRRR original implementation for 2 day forecast setup and I'm running into an issue. Without getting into details about my issue, I was wondering why the following lines were modified? Was pyschism/pyschism/forcing/nws/nws2/hrrr.py Lines 521 to 525 in 2ecf326
My issue will be resolved if temporary directory location (i.e. /tmp ) is used (e.g. by using tempfile.TemporaryDirectory ) instead of current directory (i.e. ./{self.start_date.strftime('%Y%m%d')} ) for _tmpdir creation
|
Hi @josephzhang8, PyPi hosts over 350,000 packages, and from those, security firms have identified a solid 20 of them containing malicious code. [Edit]: See comment below for a relatively recent PyPi purge of ~3000 typosquatting packages. A PyPi package that has been initially published by a trusted author cannot be hijacked and changed by an untrusted source. This is because all of the packages in PyPi have unique names, and once a name has been registered, no one except the person holding the authority keys to that name can change the content hosted in PyPi. So you can rest assured that if you trust the authors of the ``numpy'' PyPi name registration, you will always get packages that have been published exclusively by those authors. Having said this, one of the ways people inject malicious code is by using similar names for a package, but it's very unlikely to fall into that trap for two reasons: first, packages like pyschism have a So bottom line is, anyone can in principle publish anything to PyPi, including malware, but they cannot do it under names that have already been registered, so trusted authors (pypi names) can remain trusted indefinitely. So, as with every other piece of software, using common sense is your first line of defense. |
For example, on this report https://www.theregister.com/2021/03/02/python_pypi_purges/ they talk about a malicious package named This technique of using similar, but different names to deploy malicious code is called |
Please use this issue tracker to post "quick" questions about pyschism.
For bug reports please open a new issue.
The text was updated successfully, but these errors were encountered: