[netcdfgroup] Export netcdf by mathematica(dimensions problems)

  • To: "=?gb18030?b?bmV0Y2RmZ3JvdXA=?=" <netcdfgroup@xxxxxxxxxxxxxxxx>
  • Subject: [netcdfgroup] Export netcdf by mathematica(dimensions problems)
  • From: "=?gb18030?b?u8a9qMa9?=" <1486268124@xxxxxx>
  • Date: Sun, 3 Nov 2013 13:14:09 +0800
I'm trying to create .nc files by Mathematica and meet problems. Mathematica 
will automatically set the "dimensions" term in the netcdf exported. It looks 
like(by ncdump):
  
 netcdf E:\netcdf\ncdump\my3gpi20090101-20130531 {
dimensions:
 year_dayDim1 = 1581 ;
 f107dDim1 = 1581 ;
 f107aDim1 = 1581 ;
 kpDim1 = 1581 ;
 kpDim2 = 8 ;
variables:
 int year_day(year_dayDim1) ;
  year_day:long_name = "4-digit year followed by 3-digit day" ;
 double f107d(f107dDim1) ;
  f107d:long_name = "daily 10.7 cm solar flux" ;
 double f107a(f107aDim1) ;
  f107a:long_name = "81-day average 10.7 cm solar flux" ;
 double kp(kpDim1, kpDim2) ;
  kp:long_name = "3-hourly kp index" ;

 where year_dayDim1,f107dDim1,f107aDim1,kpDim1,kpDim2 are created by 
Mathematica automatically. However, the "right" form  excepted should be:
  
 netcdf E:\netcdf\ncdump\gpi_2000001-2013120 {
dimensions:
 ndays = 1581 ;
 nkp = 8 ;
variables:
 int year_day(ndays) ;
  year_day:long_name = "4-digit year followed by 3-digit day" ;
 double f107d(ndays) ;
  f107d:long_name = "daily 10.7 cm solar flux" ;
 double f107a(ndays) ;
  f107a:long_name = "81-day average 10.7 cm solar flux" ;
 double kp(ndays, nkp) ;
  kp:long_name = "3-hourly kp index" ;

 There is only 2 terms in "dimensions":ndays and nkp. The "Data" of this two 
netcdf file is similar.Is there any way for mathematica to create netcdf file 
like the second example? Or is there any software may do this easily?
 The .nc file is maded for TIEGCM running.
  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: