[Thread Prev][Thread Next][Index]

Re: [las_users] AddXML : "File parsed. No Lat/Lon grids found."



Emanuele,

The issue here is the automatic detection the vertical axis.  The Java netCDF software (before version 2.2.10) strictly applied the convention which says that the vertical axis should be determined by the presence of the "positive" attribute.  The simplest fix for you will be to add this attribute to your netCDF files.  This is a good idea anyway since it will remove the ambiguity of whether the positive values in the vertical axis go "up" or "down".  The ncatted command (from NCO) can be used to created the attribute:

ncatted -a positive,levelT,a,c,'down' gio2.nc gio3.nc

You levelT will look like this:

        float levelT(levelT) ;
                levelT:long_name = "see depth" ;
                levelT:short_name = "depth" ;
                levelT:units = "m" ;
                levelT:positive = "down" ;

This strict interpretation of the vertical axis has been relaxed in more recent releases of the Java netCDF software.  We will use this new version in a later release, but there have been other changes in the library that we need to test before we can release addXML using this new library.

Roland


emanuele.lombardi@casaccia.enea.it wrote:
Dear Roland,
thank you very much for your kind help

I gzipped the file and placed it into my anon ftp:

ftp://clima.casaccia.enea.it/emanuele.lombardi/gio2.nc.gz

It's only 259539 bytes long.

Thanks again,
Emanuele



On  4 Nov, Roland Schweitzer wrote:
  
Emanuele,

I don't immediately see anything wrong with the CDL either.  Is the file 
available via an OPeNDAP server or and FTP server?  If so, let me know 
where I can get it.  Otherwise, if it's not to big, please email it to 
me.  I'll put it in the debugger and see what I can find.

Thanks,
Roland

emanuele.lombardi@casaccia.enea.it wrote:

    
Good morning/evening/nigth to everybody!

I'm trying to add my netcdf files to LAS 6.5.1.2 but I have troubles
whit AddXML which complains that

 "File parsed.  No Lat/Lon grids found."

But it seems to me that the netcdf file is all right, as you can see
      
>from its CDL:
    
netcdf gio2 {
dimensions:
       time = UNLIMITED ; // (1 currently)
       levelT = 19 ;
       nyt = 57 ;
       nxt = 197 ;
variables:
       float TEMP(time, levelT, nyt, nxt) ;
               TEMP:long_name = "temperature" ;
               TEMP:short_name = "temp" ;
               TEMP:units = "C" ;
               TEMP:_FillValue = 9.96921e+36f ;
       float levelT(levelT) ;
               levelT:long_name = "see depth" ;
               levelT:short_name = "depth" ;
               levelT:units = "m" ;
       float nxt(nxt) ;
               nxt:long_name = "longitude" ;
               nxt:short_name = "lon" ;
               nxt:units = "degrees_east" ;
       float nyt(nyt) ;
               nyt:long_name = "latitude" ;
               nyt:short_name = "lat" ;
               nyt:units = "degrees_north" ;
       double time(time) ;
               time:long_name = "time" ;
               time:short_name = "time" ;
               time:units = "seconds since 1992-10-8 15:15:42.5 -6:00" ;

// global attributes:
               :Conventions = "CF-1.0                                  " ;
}

Can you help me, please?

Thank you from Italy,
Emanuele Lombardi




 

      
    

  


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement