Hi Cintia, Thanks for getting in touch. Sorry about my lack of knowledge with this stuff. Am I able to simply edit the netCDF file with ToolsUI or another editor and specify the units?
Change the :units = "day"; to :units = "days since 1950-1-1 0:0:0; Or do I need to add a separate 'reftime' property? Thanks again, Phil ________________________________ From: Cintia Pereira <[email protected]> Sent: Thursday, September 20, 2018 2:26:13 PM To: Phil Neville Cc: GeoServer Mailing List List Subject: Re: [Geoserver-users] NetCDF import error - Failed to create reader Hi Phil Neville, Is reftime set in your file? Em qui, 20 de set de 2018 às 16:17, Phil Neville <[email protected]<mailto:[email protected]>> escreveu: Hello, I'm trying to import a netCDF file to GeoServer (version 2.13.2) with the NetCDF extension. I've been able to import other netCDF files but not this precipitation info. This is my first time dealing with netCDF files so any help at all would be greatly appreciated. When I try to import, I get the following error: Could not list layers for this store, an error occurred retrieving them: Failed to create reader from file:netcdf/Reference_Daily_AB_pr_1950.nc and hints Hints: REPOSITORY = org.geoserver.catalog.CatalogRepository@5d1c94b8 EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@24199b09[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] System defaults: FORCE_AXIS_ORDER_HONORING = http LENIENT_DATUM_SHIFT = true GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null FORCE_LONGITUDE_FIRST_AXIS_ORDER = true STYLE_FACTORY = StyleFactoryImpl FEATURE_FACTORY = org.geotools.feature.LenientFeatureFactoryImpl@3be10dfe FILTER_FACTORY = FilterFactoryImpl COMPARISON_TOLERANCE = 1.0E-8 Here's the NCDump for the file: netcdf C:/geoserver_data/netcdf/Reference_Daily_AB_pr_1950.nc { dimensions: lat = 114; lon = 109; time = 365; variables: double lat(lat=114); :units = "degree"; :long_name = "Latitude"; float latitude(lat=114); :units = "degrees_north"; :_FillValue = NaNf; // float :standard_name = "latitude"; :axis = "Y"; double lon(lon=109); :units = "degree"; :long_name = "Longitude"; float longitude(lon=109); :units = "degrees_east"; :_FillValue = NaNf; // float :standard_name = "longitude"; :axis = "X"; double time(time=365); :units = "day"; :long_name = "Day in a year"; :standard_name = "time"; :axis = "T"; float pr(time=365, lat=114, lon=109); :units = "mm/day"; :_FillValue = NaNf; // float :long_name = "Daily prcp [mm/day]"; :standard_name = "Reference daily pr"; :coordinates = "[lon,lat]"; } Thanks so much for your time. Phil Neville _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
