[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #KQC-444299]: I probably don't have my NetCDF file setup correctly...



Hi Tim:

Thanks for your reply, it helps a lot to understand what your process is in 
figuring out your problems. I understand how frustrating this can be. It 
usually takes a dialogue. If you post to an email list, others can follow along 
and learn also, plus there people like Rich who can help. So keeping the list 
cc'ed is helpful. (note we are now in the support system, not the email list).

I can often figure out problems with projections quite quickly if I have a 
sample file, the bundle is not that useful to me. Send one ( or post URL) and 
Ill have a look.

Regards,
John

> Rich Signell has been very helpful and I think I am much closer to a final 
> product.
> 
> My questions come from spending an embarrassing (and frustrating) amount of 
> time trying to get my data into a NetCDF file that works with the tools at 
> hand - specifically IDV/netcdf-java.  Discovering that gather compression 
> wasn't supported by many tools was quite a relief, but it didn't allow me to 
> recover the time spent.  Perhaps I didn't search the Internet thoroughly, but 
> something very helpful would be a list of which CF conventions are supported.
> 
> Because of Rich Signell's help I discovered the problem with the CDL below, 
> though what I am working with now is very different and modeled slavishly 
> after the ROMS output NetCDF.  IDV now brings in my dataset with only one 
> remaining problem having to do with the projection (incredibly large latitude 
> and 'NA' for longitude).  ROMS isn't projected and so I don't have an example 
> of combining 2-D lat/lon coordinates with a projection. What I am going to do 
> is to calculate the lat/lon outside of NetCDF instead of trying to puzzle out 
> how to have a projection.  Not the best solution, but workable and something 
> that I can finish today.
> 
> Are you John Caron?  If so thank you very much for the information on gather 
> compression and I will indeed use the NetCDF4 compression.  I apologize for 
> not posting a reply, but I felt that I needed to first put in the effort to 
> get everything working.
> 
> Kindest regards,
> Tim Cera
> 
> 
> -----Original Message-----
> From: Unidata netCDF Java Support [mailto:address@hidden]
> Sent: Sunday, April 19, 2009 11:25 PM
> To: Tim Cera
> Cc: address@hidden
> Subject: [IDV #KQC-444299]: I probably don't have my NetCDF file setup 
> correctly...
> 
> Tim, you've asked 4 questions on 4 different lists; all of them come to me. 
> Ive answered you twice, with some questions to you that you havent answered. 
> Rich Signell also took time to answer you, with no response from you ASAIK. 
> Can you explain yourself?
> 
> 
> > Full Name: Tim Cera
> > Email Address: address@hidden
> > Organization: St. Johns River Water Management District
> > Package Version: 2.6u2 build date:2009-02-13 19:03 UTC
> > Operating System: Windows XP
> > Hardware: Java: home: c:\Program Files\Java\jre6 version: 1.6.0_13 
> > j3d:1.5.2 fcs (build4)
> > Description of problem: There was an error loading the data:
> > Error creating data source:netcdf.grid with: 
> > T:\work\efdc_src\test\efdcout.nc
> > GridCoordSystem.findXYindexFromCoord
> >
> > Here is my CDL:
> >
> > netcdf efdcout {
> > dimensions:
> > IC = 259 ;
> > JC = 121 ;
> > xc = 259 ;
> > yc = 121 ;
> > nv = 4 ;
> > time = UNLIMITED ; // (2 currently)
> > variables:
> > int transverse_mercator ;
> > transverse_mercator:grid_mapping_name = "transverse_mercator" ;
> > transverse_mercator:latitude_of_projection_origin = 0. ;
> > transverse_mercator:longitude_of_central_meridian = -81. ;
> > transverse_mercator:false_easting = 500000. ;
> > transverse_mercator:false_northing = 0. ;
> > transverse_mercator:scale_factor_at_central_meridian = 0.9996 ;
> > float WSElevation(time, yc, xc) ;
> > WSElevation:standard_name = "height_above_reference_ellipsoid" ;
> > WSElevation:units = "m" ;
> > WSElevation:coordinates = "x y" ;
> > WSElevation:grid_mapping = "transverse_mercator" ;
> > float x(yc, xc) ;
> > x:standard_name = "projection_x_coordinate" ;
> > x:units = "m" ;
> > x:bounds = "x_bnds" ;
> > float y(yc, xc) ;
> > y:standard_name = "projection_y_coordinate" ;
> > y:units = "m" ;
> > y:bounds = "y_bnds" ;
> > float x_bnds(yc, xc, nv) ;
> > float y_bnds(yc, xc, nv) ;
> > double time(time) ;
> > time:standard_name = "time" ;
> > time:units = "days since 1995-1-1 0:0:0" ;
> >
> > // global attributes:
> > :Conventions = "CF-1.0" ;
> > }
> >
> >
> > ******************
> > Stack trace:
> > java.lang.IllegalStateException: GridCoordSystem.findXYindexFromCoord
> > at ucar.nc2.dt.grid.GridCoordSys.findXYindexFromCoord(GridCoordSys.java:697)
> > at 
> > ucar.nc2.dt.grid.GridCoordSys.findXYindexFromLatLon(GridCoordSys.java:712)
> > at ucar.nc2.dt.grid.GridCoordSys.getLatLonBoundingBox(GridCoordSys.java:997)
> > at 
> > ucar.unidata.data.grid.GeoGridDataSource.makeDataChoiceFromGeoGrid(GeoGridDataSource.java:1593)
> > at 
> > ucar.unidata.data.grid.GeoGridDataSource.doMakeDataChoices(GeoGridDataSource.java:1128)
> > at ucar.unidata.data.DataSourceImpl.getDataChoices(DataSourceImpl.java:1725)
> > at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1472)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1948)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1865)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1799)
> > at 
> > ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1772)
> > at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:839)
> > at 
> > ucar.unidata.idv.chooser.FileChooser.selectFilesInner(FileChooser.java:646)
> > at ucar.unidata.idv.chooser.FileChooser.selectFiles(FileChooser.java:515)
> > at ucar.unidata.idv.chooser.FileChooser.doLoadInThread(FileChooser.java:537)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at ucar.unidata.util.Misc$2.run(Misc.java:1010)
> > at ucar.unidata.util.Misc$3.run(Misc.java:1038)
> >
> >
> >
> 
> 
> Ticket Details
> ===================
> Ticket ID: KQC-444299
> Department: Support netCDF Java
> Priority: Normal
> Status: Open
> 
> 


Ticket Details
===================
Ticket ID: KQC-444299
Department: Support netCDF Java
Priority: Normal
Status: Open