[Thread Prev][Thread Next][Index]

[ferret_users] format ASCII output



Hi Ferreters,

 

Referring to http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/LIST

We got one NetCDF File as following:

 

netcdf test {

dimensions:

        LON = 1 ;

        LAT = 1 ;

        TIME = UNLIMITED ; // (1009 currently)

variables:

        double LON (LON) ;

                LON:units = "degrees_east" ;

                LON:long_name = "Longitude" ;

                LON:modulo = 360. ;

                LON:point_spacing = "even" ;

                LON:axis = "X" ;

        double LAT (LAT) ;

                LAT:units = "degrees_north" ;

                LAT:long_name = "Latitude" ;

                LAT:point_spacing = "uneven" ;

                LAT:axis = "Y" ;

        double TIME(TIME) ;

                TIME:long_name = "coordinate variables of time" ;

                TIME:units = "second since 2011-08-09 00:00:00" ;

                TIME:time_origin = "09-AUG-2011 00:00:00" ;

                TIME:axis = "T" ;

        float VA(TIME, LAT506_506, LON483_483) ;

                VA:_FillValue = -999.f ;

                VA:units = "meter/second" ;

                VA:long_name = "depth-averaged y-velocity of currents" ;

                VA:figure = "vector_y" ;

                VA:history = "From tmh_forecast" ;

 

When use list without format option, such as

Ferret> use test.nc

Ferret> list va

We could get something similar as:

10-AUG-2011 00:00:00 / 1000: -0.12345

10-AUG-2011 00:30:00 / 1001: -0.23456

 

But when using following command,

Ferret> use test.nc

Ferret> list/format=comma VA

We only got:

10-AUG-2011 00,-0.12345

10-AUG-2011 00,-0.23456

 

The same will happen when use tab format.

 

It is a bug or how should I generate the output such as

10-AUG-2011 00:00:00, -0.12345

10-AUG-2011 00:30:00, -0.23456

 

Thanks in advance.

 

Regards,

Jiqin

 

--Boundary_(ID_geoYlk9tX+lt4FM/NGLHZg)--

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

Privacy Policy | Disclaimer | Accessibility Statement