Re: [gdal-dev] NetCDF and EASE-2

2020-02-03 Thread Marsh, Chris
Hi Even, I see, Ok I think that all makes sense. Thanks very much! Cheers Chris Chris Marsh, PhD University of Saskatchewan chrismarsh.ca On Mon, Feb 3, 2020 at 12:45 PM Even Rouault mailto:even.roua...@spatialys.com>> wrote: CAUTION: This email originated from outside

Re: [gdal-dev] NetCDF and EASE-2

2020-02-03 Thread Even Rouault
On lundi 3 février 2020 17:36:45 CET Marsh, Chris wrote: > Yup, forgot to enable netcdf. Sorry about that. > > Otherwise your directions worked perfectly, thank you very much! > > In terms of understanding, exactly, these steps for the next time: > > 0) How would I have known the data were trans

Re: [gdal-dev] NetCDF and EASE-2

2020-02-03 Thread Marsh, Chris
Yup, forgot to enable netcdf. Sorry about that. Otherwise your directions worked perfectly, thank you very much! In terms of understanding, exactly, these steps for the next time: 0) How would I have known the data were transposed lon, lat? 0b) How would I have known the spacing of the lat varia

Re: [gdal-dev] NetCDF and EASE-2

2020-02-02 Thread Even Rouault
On dimanche 2 février 2020 00:34:46 CET Marsh, Chris wrote: > HI Even, > > Thanks for the detailed response. I have compiled master 3.1dev however > strangest thing when I try to run it > $ export PATH=`pwd`/gdal-install/bin:$PATH > $ which gdal_translate > /Users/chris/Documents/science/analysi

Re: [gdal-dev] NetCDF and EASE-2

2020-02-01 Thread Marsh, Chris
Thanks this may be a good option 2 if I can't get even's solution to work. Seems straightforward, agreed on mask! On Sat, Feb 1, 2020 at 15:52 Markus Metz mailto:markus.metz.gisw...@gmail.com>> wrote: CAUTION: This email originated from outside of the University of Saskatchewan. Do not click li

Re: [gdal-dev] NetCDF and EASE-2

2020-02-01 Thread Marsh, Chris
HI Even, Thanks for the detailed response. I have compiled master 3.1dev however strangest thing when I try to run it $ export PATH=`pwd`/gdal-install/bin:$PATH $ which gdal_translate /Users/chris/Documents/science/analysis/gdal-install/bin/gdal_translate $ gdal_translate NETCDF:"`pwd`/SD_20160

Re: [gdal-dev] NetCDF and EASE-2

2020-02-01 Thread Markus Metz
Regarding this EASE-2 grid (https://nsidc.org/ease/ease-grid-projection-gt), I found that On Sat, Feb 1, 2020 at 1:22 PM Even Rouault wrote: > - the spacing of the lat variable is not constant the spacing of the lat variable increases drastically towards the poles. You could convert the netcdf

Re: [gdal-dev] NetCDF and EASE-2

2020-02-01 Thread Even Rouault
Chris, There are 2 issues with this netCDF file: - the lon,lat indexing is done in a transposed way w.r.t the netCDF conventions. That is in this file the fastest varying dimension is the latitude, instead of longitude - the spacing of the lat variable is not constant I've a somewhat complicate

[gdal-dev] NetCDF and EASE-2

2020-01-31 Thread Marsh, Chris
Hi, I'm trying to pull some data out of a netcdf and convert it to a geotiff. The data are the snowdepths from this paper https://www.nature.com/articles/s41467-019-12566-y with one of the data files here for testing: https://drive.google.com/open?id=1qZBYJ4UEbYYHXpSV4gyFBkZYdYKtZGTR The data