[Thread Prev][Thread Next][Index]

Re: [ferret_users] Extra dimensions in NetCDF Files



Hi,
There are two issues here.  To change the output of SHOW commands, you can say,
   yes? CANCEL MODE 6D_LAB
(See the release notes here for the details of 6D Ferret: http://ferret.pmel.noaa.gov/Ferret/documentation/release-notes/version-6-8-release-notes)

I don't see anything in your script that would explain the error message you are seeing however.  We may need to work outside the Ferret list to find out what's happening, and report back with our results.

Let me just summarize what happens with 6D Ferret and defining grids. The M and N dimensions are not created by the grid you defined. They are listed as ABSTRACT by the SHOW commands.  This is similar to what would happen in 4D Ferret, if you defined an XYT grid: the Z axis would be listed as ABSTRACT, and show up with a ... in the output of SHOW DATA.  Abstract axes have no role in reading data from a dataset or any other operation.

If 6D Ferret writes data to a netCDF file with a grid such as you have defined, it does NOT write anything having to do with the M and N axes to that file. (try ncdump -h to list the header of the file you have written).  6D Ferret can append data to files written with 4D Ferret so long as the grids are defined in xyzt as long as that append would have worked in previous versions of Ferret - the grids are compatible.

What commands were you doing when you saw **ERROR: Size of file doesn't match size specified by variables/grid"?  Is that when you go to load the data from the prof.dat file?  Our test suite does include ascii and binary datasets with 4 dimensions.  6D Ferret successfully reads those using the same scripts as for 4D Ferret.

-Ansley

On 12/12/2012 7:50 PM, ROHITHmuzik wrote:
Dear Ferreters,

Recently i have upgraded my Ferret to the latest version 6.8.2. After this i started to experience some thing peculiar. I am trying to create a netcdf file with 4 dimensions and while saving 2 additional dimensions are created. Due to these additional dimensions, while appending/saving the netcdf file i am getting an error as follows: **ERROR: Size of file doesn't match size specified by variables/grid"
The JNL i am using is given below: (Note: just for example i have created this)
==============================
yes? define axis/x=65:65:1/units=degrees xaxis
yes? define axis/y=15:15:1/units=degrees yaxis
yes? define axis/z=10:70:10/units=meters zaxis
yes? define axis/t="15-jan-2010":"15-Jan-2010":1/units=days taxis
yes? define grid/x=xaxis/y=yaxis/z=zaxis/t=taxis mygrid
yes? file/order=xyzt/grid=mygrid/var="dep,temp" prof.dat
yes? show data
     currently SET data sets:
    1> ./prof.dat  (default)
 name     title                             I         J         K         L         M         N
 DEP      DEP                              1:1       1:1       1:7       1:1       ...       ...
 TEMP     TEMP                             1:1       1:1       1:7       1:1       ...       ...
yes? show grid temp
    GRID MYGRID
 name       axis              # pts   start                end
 XAXIS     LONGITUDE            1mr   65E                  65E
 YAXIS     LATITUDE             1 r   15N                  15N
 ZAXIS     Z (METERS)           7 r   10                   70
 TAXIS     TIME                 1 r   15-JAN-2010 00:00    15-JAN-2010 00:00
 normal    E
 normal    F
===================================
in the above one can see the M and N dimensions created even though there are only 4 dimensions defined. 
Can some one clarify if this is bug and point out where i am going wrong.

Thanks in advance.
rohith




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement