[Thread Prev][Thread Next][Index]

Re: [ferret_users] Reading ascii file



Hi Patrick
G'day
You may also like to know about this package that can help to convert the various file formats to netcdf.

http://cms.ncas.ac.uk/documents/xconv/

Cheers, Saurabh

On Wed, Jan 20, 2021 at 3:05 AM Patrick Brockmann <patrick.brockmann@xxxxxxxxxxxx> wrote:
Re,

Replace
def axis/t/units=years tyears=v1[i=1]
by
def axis/t=01-JUL-`v1[i=1,l=1]`:01-JUL-`v1[i=1,l=($nblines)]`:1/units=years/cal=360_day tyears
for a correct time definition axis.

Patrick

--
Data Analytics and Visualization Engineer / Project Manager
LSCE/IPSL, CEA-CNRS-UVSQ laboratory
LSCE - Climate and Environment Sciences Laboratory
IPSL - Institut Pierre Simon Laplace
--


De: "Patrick Brockmann" < 027 -0.1360
1962 0.1392  0.1059 -0.0192  0.0475  0.1448 -0.1352  0.0794  0.0687  0.3754  0.0063  0.2532 -0.0055 -0.0132  0.1012  0.0167  0.0619  0.1222  0.0242
1963 0.0146  0.1110  0.0093  0.0423 -0.2498  0.0166  0.0950  0.1127  0.2832  0.1909  0.0421  0.0049  0.0688  0.0115  0.0124  0.0391 -0.0151  0.1944


When I do this I get the following, which is obviously not right.

yes? show data
     currently SET data sets:
    1> ./nbp.txt  (default)
 name     title                             I         J         K         L
 16   / 16:  0.2416
 17   / 17:  0.2037
 18   / 18: -0.0313



Thanks for you help.
Pierre






--


REGARDS

Saurabh Rathore
Attachment: xconv1.94_linux_x86_64.tar.gz
Description: application/gzip


[Thread Prev][Thread Next][Index]