[Thread Prev][Thread Next][Index]

[las_users] addXML 1.7 sometimes detects few variables



Hi to everybody!

I found a strange addXML (1.7) behavour: it doesn't always detect all 
variables. As an example it follows the ncdump -h of a netcdf file and the 
corresponding xml produced by addXML.  The netcdf file (5MB)  is avaliable at 
ftp://giotto.casaccia.enea.it/emanuele.lombardi/giovanna.nc

As you can see the netcdf variables V, U, TEMP, S, SIGMA, W and ITT are not 
present in the xml file, but this is wrong!

I don't see any reason for that and I can only suppose the problem arises from 
the existance in the netcdf file of two orizontal axes (nxt and nxu) and two 
vertical axes (nyt and nyu). Is it possible there is a bug in addXML ?

Unfortunately I'm not able to program in java so I can't try to solve the 
problem on my own. Can you help me, please?

Thank you very much for any help,
ciao from Italy,

Emanuele



========================= ncdump -h =======================
netcdf giovanna {
dimensions:
	nxt = 197 ;
	nyt = 57 ;
	levelT = 19 ;
	nxu = 197 ;
	nyu = 57 ;
	levelW = 20 ;
	time = UNLIMITED ; // (1 currently)
variables:
	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" ;
	float levelT(levelT) ;
		levelT:long_name = "see depth" ;
		levelT:short_name = "depth" ;
		levelT:units = "m" ;
	float nxu(nxu) ;
		nxu:long_name = "longitude" ;
		nxu:short_name = "lon" ;
		nxu:units = "degrees_east" ;
	float nyu(nyu) ;
		nyu:long_name = "latitude" ;
		nyu:short_name = "lat" ;
		nyu:units = "degrees_north" ;
	float levelW(levelW) ;
		levelW:long_name = "see depth" ;
		levelW:short_name = "depth" ;
		levelW:units = "m" ;
	double time(time) ;
		time:long_name = "time" ;
		time:short_name = "time" ;
		time:units = "days since 1900-02-15 00:00:00" ;
	float TOPOT(nyt, nxt) ;
		TOPOT:long_name = "topography" ;
		TOPOT:short_name = "topo" ;
		TOPOT:units = "m" ;
		TOPOT:_FillValue = 9.96921e+36f ;
	float TOPOU(nyu, nxu) ;
		TOPOU:long_name = "topography" ;
		TOPOU:short_name = "topo" ;
		TOPOU:units = "m" ;
		TOPOU:_FillValue = 9.96921e+36f ;
	float PSI(time, nyu, nxu) ;
		PSI:long_name = "barothropic stream function" ;
		PSI:short_name = "psi" ;
		PSI:units = "cm**2 s-1" ;
		PSI:_FillValue = 9.96921e+36f ;
	float SWSX(time, nyu, nxu) ;
		SWSX:long_name = "zonal surface wind stress" ;
		SWSX:short_name = "zonwindstr" ;
		SWSX:units = "dyn cm-2" ;
		SWSX:_FillValue = 9.96921e+36f ;
	float SWSY(time, nyu, nxu) ;
		SWSY:long_name = "meridional surface wind stress" ;
		SWSY:short_name = "merwindstr" ;
		SWSY:units = "dyn cm-2" ;
		SWSY:_FillValue = 9.96921e+36f ;
	float SHFL(time, nyt, nxt) ;
		SHFL:long_name = "surface heat flux" ;
		SHFL:short_name = "heat" ;
		SHFL:units = "w m-2" ;
		SHFL:_FillValue = 9.96921e+36f ;
	float SSFL(time, nyt, nxt) ;
		SSFL:long_name = "surface salinity flux" ;
		SSFL:short_name = "salflux" ;
		SSFL:units = "ppt y-1" ;
		SSFL:_FillValue = 9.96921e+36f ;
	float V(time, levelT, nyu, nxu) ;
		V:long_name = "total meridional velocity" ;
		V:short_name = "v" ;
		V:units = "cm s-1" ;
		V:_FillValue = 9.96921e+36f ;
	float U(time, levelT, nyu, nxu) ;
		U:long_name = "total zonal velocity" ;
		U:short_name = "u" ;
		U:units = "cm s-1" ;
		U:_FillValue = 9.96921e+36f ;
	float TEMP(time, levelT, nyt, nxt) ;
		TEMP:long_name = "temperature" ;
		TEMP:short_name = "temp" ;
		TEMP:units = "C" ;
		TEMP:_FillValue = 9.96921e+36f ;
	float S(time, levelT, nyt, nxt) ;
		S:long_name = "salinity" ;
		S:short_name = "sal" ;
		S:units = "ppt" ;
		S:_FillValue = 9.96921e+36f ;
	float SIGMA(time, levelT, nyt, nxt) ;
		SIGMA:long_name = "sigma-teta" ;
		SIGMA:short_name = "sigma" ;
		SIGMA:units = "kg m-3" ;
		SIGMA:_FillValue = 9.96921e+36f ;
	float W(time, levelW, nyt, nxt) ;
		W:long_name = "vertical velocity" ;
		W:short_name = "w" ;
		W:units = "mm s-1" ;
		W:_FillValue = 9.96921e+36f ;
	int ITT(time) ;
		ITT:long_name = "computed time steps" ;
		ITT:short_name = "steps" ;
		ITT:units = "n" ;

// global attributes:
		:institution = "ENEA-CLIMA" ;
		:file_created = "2002-05-09 07:22:06" ;
		:user_name = "giovanna" ;
		:data_source = "Mom1" ;
		:experiment_name = "BC:mixed_spinup" ;
		:doc_URL = 
"http://clima.casaccia.enea.it/sdb_doc/model/giovanna_Mom1_BC:mixed"; ;
		:file_contents = "snapshots" ;
		:data_type = "numerical" ;
		:Conventions = "CF-1.0" ;
		:file_type = "grid" ;
}

================================== produced xml

<datasets>
  <id-2341c9d660 name="giovanna.nc" url="giovanna.nc">
    <variables>
      <TOPOT-id-2341c9d660 name="topography" units="m" url="#TOPOT">
        <link match="/lasdata/grids/grid-nxt-nyt-id-2341c9d660" />
      </TOPOT-id-2341c9d660>
      <TOPOU-id-2341c9d660 name="topography" units="m" url="#TOPOU">
        <link match="/lasdata/grids/grid-nxu-nyu-id-2341c9d660" />
      </TOPOU-id-2341c9d660>
      <PSI-id-2341c9d660 name="barothropic stream function" units="cm**2 s-1" 
url="#PSI">
        <link match="/lasdata/grids/grid-nxu-nyu-time-id-2341c9d660" />
      </PSI-id-2341c9d660>
      <SWSX-id-2341c9d660 name="zonal surface wind stress" units="dyn cm-2" 
url="#SWSX">
        <link match="/lasdata/grids/grid-nxu-nyu-time-id-2341c9d660" />
      </SWSX-id-2341c9d660>
      <SWSY-id-2341c9d660 name="meridional surface wind stress" units="dyn 
cm-2" url="#SWSY">
        <link match="/lasdata/grids/grid-nxu-nyu-time-id-2341c9d660" />
      </SWSY-id-2341c9d660>
      <SHFL-id-2341c9d660 name="surface heat flux" units="w m-2" url="#SHFL">
        <link match="/lasdata/grids/grid-nxt-nyt-time-id-2341c9d660" />
      </SHFL-id-2341c9d660>
      <SSFL-id-2341c9d660 name="surface salinity flux" units="ppt y-1" 
url="#SSFL">
        <link match="/lasdata/grids/grid-nxt-nyt-time-id-2341c9d660" />
      </SSFL-id-2341c9d660>
    </variables>
  </id-2341c9d660>
</datasets>
<grids>
  <grid-nxt-nyt-id-2341c9d660>
    <link match="/lasdata/axes/nxt-x-id-2341c9d660" />
    <link match="/lasdata/axes/nyt-y-id-2341c9d660" />
  </grid-nxt-nyt-id-2341c9d660>
  <grid-nxu-nyu-id-2341c9d660>
    <link match="/lasdata/axes/nxu-x-id-2341c9d660" />
    <link match="/lasdata/axes/nyu-y-id-2341c9d660" />
  </grid-nxu-nyu-id-2341c9d660>
  <grid-nxu-nyu-time-id-2341c9d660>
    <link match="/lasdata/axes/nxu-x-id-2341c9d660" />
    <link match="/lasdata/axes/nyu-y-id-2341c9d660" />
    <link match="/lasdata/axes/time-t-id-2341c9d660" />
  </grid-nxu-nyu-time-id-2341c9d660>
  <grid-nxt-nyt-time-id-2341c9d660>
    <link match="/lasdata/axes/nxt-x-id-2341c9d660" />
    <link match="/lasdata/axes/nyt-y-id-2341c9d660" />
    <link match="/lasdata/axes/time-t-id-2341c9d660" />
  </grid-nxt-nyt-time-id-2341c9d660>
</grids>
<axes>
  <nxt-x-id-2341c9d660 type="x" units="degrees_east">
    <arange start="-13" size="197" step="0.25" />
  </nxt-x-id-2341c9d660>
  <nyt-y-id-2341c9d660 type="y" units="degrees_north">
    <arange start="30.5" size="57" step="0.25" />
  </nyt-y-id-2341c9d660>
  <nxu-x-id-2341c9d660 type="x" units="degrees_east">
    <arange start="-12.875" size="197" step="0.25" />
  </nxu-x-id-2341c9d660>
  <nyu-y-id-2341c9d660 type="y" units="degrees_north">
    <arange start="30.625" size="57" step="0.25" />
  </nyu-y-id-2341c9d660>
  <time-t-id-2341c9d660 type="t" units="day">
    <arange start="0110-02-15 00:00:00" size="1" step="1" />
  </time-t-id-2341c9d660>
</axes>








[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement