[Thread Prev][Thread Next][Index]
[ferret_users] open ascii file question
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] open ascii file question
- From: Otacilio Leandro <otaciliomneto@xxxxxxxxx>
- Date: Wed, 16 Mar 2011 15:05:48 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ylQYnjDuX36LuZxVOFFYlZnQg11Sp2DnniT0Psk/xYg=; b=Ir3Lt5y+gmu4l596fMWkaT62Zt452i5qmo/f1TmOOoS9KZORKwgi8Kd/lSkETHlVja xO/rszNDOJriFAfUHMAazCxIXBf/91RpiKQx9TYo0iCRl+1iMbG2gosQ28NpSCkTJx/C TikKhv1838ZYG8n0aNaqLgiRUwrLr8kufbvkU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mxTMjGgPYjrt6egKqBfw6lYPOsAtEPn9wqHeBIpTLve/OdImCTFkz5yTDGm1p9cS+u CVnz/7/wB0nRDko0iIA0G4jpWfoaM5Iu0MZRc/P092o2V6Ax9NKtrVF7dupC361YU7dJ 1Kltk13OshQlNDP7ALmeWthenyXrUnUgXDPMQ=
- Sender: owner-ferret_users@xxxxxxxx
Hello,
I've got a data with 2D (x and y) climatological monthly temperature
over continental areas and i got some trouble at using it on ferret.
The data are separated by one file per year and i used the function
scat2gridgauss_xy to correctly read the data over the continent.
My goal with this data is create a cdf file varing at time (each
"timestep" is one month of the data).
I defined the axis this way:
define axis/x=-179.8:179.8:0.5/units=degrees xlon
define axis/y=-89.75:89.75:0.5/units=degrees ylat
define axis/t=1:1:1 axist
define grid/x=xlon/y=ylat/t=axist mygrid
But when i used
file=/g=mygrid/var= lon, lat, value01, value02 ... etc , ascii-file.txt
all values of the orignal data are exchanged for 12.8 as you can see below.
Here is the stat of my variable:
temp-1900-02
LONGITUDE: 179.9E(-180.1) to 179.9E(179.9)
LATITUDE: 90S to 90N
Z: N/A
T: 1
DATA SET: air_temp2009/air_temp.1900
Total # of data points: 259200 (720*360*1*1)
# flagged as bad data: 259194
Minimum value: 12.8
Maximum value: 12.8
Mean value: 12.8 (unweighted average)
Standard deviation: 7.178999E-07
I also tryed to regrid the variable using
let temp = tmp[g=mygrid]
but it also showed problems because the time axis is missing at temp variable.
The way i defined the t axis is correct? The reason that i want a time
axis on my variable is to use NCO to concatened all cdfs that im going
to create. I tested using file without time axis and got an error from
NCO.
I'm using:
FERRET v6.64
Linux rh5 (gfortran) 2.6.18-164.11.1.el5 - 09/20/10
Thanks for the help.
--
Otacilio Leandro de Menezes Neto
Instituto Nacional de Pesquisas Espaciais
Doutorando em Meteorologia
Contato: (12) 3186-9537 / (12) 8194-1455
Email alternativo: otacilio.neto@xxxxxxxxxxxxx
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement