Re: [netcdfgroup] Export netcdf by mathematica(dimensions problems)

  • To: =?gb18030?q?=22=BB=C6=BD=A8=C6=BD=22?= <1486268124@xxxxxx>
  • Subject: Re: [netcdfgroup] Export netcdf by mathematica(dimensions problems)
  • From: Roy Mendelssohn - NOAA Federal <roy.mendelssohn@xxxxxxxx>
  • Date: Sat, 2 Nov 2013 22:22:27 -0700
Sure.  look at the Mathematica help  (there is a less polite internet 
abbreviation for this, but I have refrained from using it), such as at:

erence.wolfram.com/mathematica/ref/format/NetCDF.html

or more importantly built into Mathematica.  Notice that the "export" command 
can take elements, and among other things the elements can define dimensions.

HTH,

-Roy


On Nov 2, 2013, at 10:14 PM, "»Æ½¨Æ½" <1486268124@xxxxxx> wrote:

>     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.
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: