You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example when one fetches data for isotachs or windswath, is there an easy way to write it to disk as Shapefile? Of course one can always use Geopandas or Fiona or OGR to do it, but it would be nice if part of that functionality could be added into this package.
Maybe add Geopandas is too much since it has a lot of dependencies when you install it in the environment, but Fiona is already installed for your current dependencies and a method could be added to write out the fetched Shapely objects in case it doesn't already exist.
The text was updated successfully, but these errors were encountered:
that's a good idea, but the default environment doesn't currently have fiona or geopandas.
However, we could maybe add an optional dependency for fiona / geopandas, such as importing locally within the writing function and raising an error like "fiona must be installed in order to write to a spatial file" if the user calls the writing function without having it installed.
I think xarray does something very similar if you try to read a NetCDF file and don't have netcdf4 installed
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/zrb/environments/test/lib/python3.10/site-packages/xarray/backends/api.py", line 479, in open_dataset
engine = plugins.guess_engine(filename_or_obj)
File "/home/zrb/environments/test/lib/python3.10/site-packages/xarray/backends/plugins.py", line 155, in guess_engine
raise ValueError(error_msg)
ValueError: found the following matches with the input file in xarray's IO backends: ['netcdf4', 'h5netcdf']. But their dependencies may not be installed, see:
http://xarray.pydata.org/en/stable/user-guide/io.html
http://xarray.pydata.org/en/stable/getting-started-guide/installing.html
For example when one fetches data for isotachs or windswath, is there an easy way to write it to disk as Shapefile? Of course one can always use Geopandas or Fiona or OGR to do it, but it would be nice if part of that functionality could be added into this package.
Maybe add Geopandas is too much since it has a lot of dependencies when you install it in the environment, but Fiona is already installed for your current dependencies and a method could be added to write out the fetched Shapely objects in case it doesn't already exist.
The text was updated successfully, but these errors were encountered: