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

[IDV #XVZ-374785]: Error loading Grads file into IDV



> Full Name: Basit Khan
> Email Address: address@hidden
> Organization: KAUST
> Package Version: 4.0u1 build date:2013-03-29 18:10 UTC
> Operating System: Linux
> Hardware: Java: home: /opt/share/idv/4.0u1/x86_64/jre version: 1.6.0_41 
> j3d:1.6.0-pre3-daily-experimental daily
> Description of problem: I created a GRADS file from a WRF output file using 
> the ARWpost routine.   When I attempt to load the file using the Data Chooser 
> and set the Files of  Type (GrADS Binary Grid Files) , IDV gives me the 
> following error:
> There was an error loading the data:
> Error creating data source:file.grads with: 
> /project/k14/basit/wrf-sims/wrf_170/auxhist7_d02_2013-06-25.ctl
> Grid data source failed making data set: 
> /project/k14/basit/wrf-sims/wrf_170/auxhist7_d02_2013-06-25.ctl
> Cant read /project/k14/basit/wrf-sims/wrf_170/auxhist7_d02_2013-06-25.ctl: 
> not a valid CDM file.
> 
> I have exactly the same issue as mentioned in the following ticket.
> [IDV #QYZ-487766]: Error loading Grads file into IDV
> 
> Although the email stating the problem is there on the web but no solution is 
> available/provided. There are actually more than one emails that were stating 
> the same problem. I would appreciate if you could help fixing this problem. 
> ALSO please release the solution to the web community so that it would be 
> available when other people have the same problem. It will save time for both 
> IDV support and users.
> 

Hi Basit,
     The problem of the previous support email is the level setting of the 
control file. If you have the similar problem, I would suggest you check the 
control file and specially the level of the dataset. For example, if you have 
only 24 levels in the model output, you need to make sure the variable levels 
set to 24.  After that, it should work in the IDV.

Regard,

Yuan

> 
> 
> ******************
> Stack trace:
> java.io.IOException: Cant read 
> /project/k14/basit/wrf-sims/wrf_170/auxhist7_d02_2013-06-25.ctl: not a valid 
> CDM file.
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:776)
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:395)
> at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:687)
> at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:418)
> at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:513)
> at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:104)
> at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:90)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.doMakeDataSet(GeoGridDataSource.java:1113)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.getDataset(GeoGridDataSource.java:1135)
> at 
> ucar.unidata.data.grid.GeoGridDataSource.initAfterCreation(GeoGridDataSource.java:499)
> at ucar.unidata.data.DataManager.createDataSource(DataManager.java:1597)
> at 
> ucar.unidata.idv.IntegratedDataViewer.createDataSource(IntegratedDataViewer.java:1980)
> at 
> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1897)
> at 
> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1831)
> at 
> ucar.unidata.idv.IntegratedDataViewer.makeDataSource(IntegratedDataViewer.java:1804)
> at ucar.unidata.idv.chooser.IdvChooser.makeDataSource(IdvChooser.java:943)
> at ucar.unidata.idv.chooser.FileChooser.selectFilesInner(FileChooser.java:656)
> at ucar.unidata.idv.chooser.FileChooser.selectFiles(FileChooser.java:525)
> at ucar.unidata.idv.chooser.FileChooser.doLoadInThread(FileChooser.java:547)
> 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:1221)
> at ucar.unidata.util.Misc$3.run(Misc.java:1249)
> 
> 
> 


Ticket Details
===================
Ticket ID: XVZ-374785
Department: Support IDV
Priority: High
Status: Closed