Comments (10)
I am going to be that Windows user...
Any fixes/workarounds for this yet?
from siphon.
Well, the workaround would be to use get_data_raw
to get the content of the netcdf file, and save it to a local file (temp or otherwise) yourself.
However, if fixing this would be a boon to your use of siphon, I'm much more inclined to fix it if know I have actual, not hypothetical, user(s) needing it.
from siphon.
@dopplershift See this pvlib-python issue for more info on how we want to use Siphon for solar power forecasts. We can also help address Siphon problems relevant to our work.
from siphon.
also, @dopplershift, many thanks to you and Unidata for developing Siphon!
from siphon.
Wow, that looks really cool. I'm glad you're finding Siphon so useful. In general, if you guys just open issues for problems you find (or better yet, PRs for fixes!), that will be great.
For this issue, the big problem is that we're not windows devs on Siphon. I made windows 7 VM, but it was painful. It will definitely go faster if you can find a fix that works for you and make a PR. Otherwise, I can make a pass at a fix, but the testing loop on that will probably be much slower.
from siphon.
I am not sure how you want to proceed but I have made a universal fix within the siphon code that deletes the temporary file upon exit, after setting the NamedTemporaryFile argument "delete" to False. This is also possible to do with less modifications to the Siphon code by deleting the temporary file using dataset.filepath() within our own code but it still requires that the "delete" argument equal False. However, both approaches require that the dataset be closed first.
from siphon.
The sounds like the approach I took originally (never committed), until I realized that I could re-open the file (which made the code much cleaner); it's a shame that approach doesn't work on windows.
I'll take a PR with your changes to add the exit handler
from siphon.
Looks like another approach to solving this problem is here:
http://stackoverflow.com/a/15235559
which apparently lets you open the temp file multiple times on windows, so you don't need to set delete=False
and then delete the file explicitly.
from siphon.
Thanks @rsignell-usgs, that's very helpful.
from siphon.
Fixed in #56.
from siphon.
Related Issues (20)
- Server Error (403: Forbidden) HOT 9
- issues getting CFS point data
- Update dataset in Wyoming upper air example
- ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) HOT 2
- Endian-ness issues when selecting on a coordinate HOT 3
- Datasets in nested catalogs have empty access_urls
- TDSCatalog does not include base path in access_url HOT 2
- No access urls created for Dataset HOT 4
- NDBC Mid Great Lakes Station Do Not Show Up HOT 1
- WyomingUpperAir Missing Station Information
- Requesting a new release HOT 1
- Exception handling needed in _get_data method of WyomingUpperAir for missing or erroneous metadata HOT 2
- Protobuf module started making it impossible to access the UCAR THREDDS server using siphon TDSCatalog HOT 4
- TDSCatalog misses the last months entry HOT 2
- Add a walk function for navigating THREDDS catalogue HOT 2
- how to add the Specify additional variables you want to include HOT 1
- Descriptors cannot be created directly
- Wyoming Upper Air Data Request fails for 4/19/2024 00Z, returning only data for OUN HOT 1
- TDSCatalog not returning all datasets HOT 2
- CDMRemote xarray wrapper broken with xarray 2024.03.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siphon.