Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uplat/lon of grid points #159
Comments
|
This feature has not been implemented in pysteps. Implementing an utility function for doing this could be useful. In the meanwhile, you can use the following example: import numpy as np xr = np.arange(geodata["x1"], geodata["x2"], geodata["xpixelsize"]) pr = pyproj.Proj(geodata["projection"]) |
|
Correction: a similar piece of code is used in io.exporters.initialize_forecast_exporter_netcdf. It's not too much effort to implement that in a separate utility function. |
|
Hello @juanpablosimarro, @pulkkins already provided you with some good answers to your problem. Let us know should you need more support. @pulkkins, maybe what you suggest could be flagged as a good first issue? @juanpablosimarro would you be interested in having a go at it? |
|
Hello, |
|
Hello again, |
Hello,
I wonder if there is a method to get the longitudes and latitudes of all grid points. From this code:
importer = io.get_method(importer_name, "importer")
Z, _, metadata = io.read_timeseries(fns, importer, **importer_kwargs)
Given Z and metadata from the file (HDF5 or other format), is there a method to get the longitude and latitude of the grid points of Z given the information kept in metadata?
Thank you
Juan Simarro