Hi -
I'm glad you found a good answer. Just one more comment. When first opening a dataset, it's worth reading the notes or warnings that Ferret issues, and trying to understand what they're telling you. I think that you would have seen,
yes? use data.nc
*** NOTE: Coordinates out of order or missing on axis time_counter at subscript 2
*** NOTE: A dummy axis of subscripts will be used
yes? show data
currently SET data sets:
1> ./data.nc (default)
name title I J K L
TIME_COUNTER
Time axis ... ... ... 1:389
(invalid coordinate axis)
TOTAL_SOIL_CARB
total soil and litter carbon 1:1 1:1 1:13 1:389
When invalid coordinate valuse are used, Ferret puts them into a variable and lists it with the notation (invalid coordinate axis). It contains the numbers that were listed in the coordinate variable of the file - sometimes they can be used to create a valid axis using Ferret DEFINE AXIS commands.
Ansley
On 5/4/2011 12:29 AM, Yue Chao wrote:Much thanks to Patrick and Hein! Yes, the bad time axis of the file caused this problem.
It seems that replacing the broken time_counter axis by doing "define axis /t=1:389:1 time_counter" in ferret didn't change the sequence.
I used ncks as suggested by Patrick to remove the time axis before reading it into ferret, and define other time axis as I want, then it's OK.
Again thanks for the help,
Chao
2011/5/3 Brockmann Patrick <Patrick.Brockmann@xxxxxx>
Hi,
I think you should correct the time axis of your file.-47390400, -110462400, -47390400, ...
time_counter = 15768000, -78926400, 15768000, 15768000, -78926400,
-15854400, -47390400, -15854400, -110462400, -78926400, -78926400,
-47390400, -78926400, -15854400, -110462400, 15768000, 15768000,
is not a correct axis (whatever the reason) because it is neither increasing or decreasing.
You could remove this wrong axis by using ncks (from nco commands)
ncks -Oh -C -x -v time_counter file1.nc file2.nc
ferret will then open your file in the right order and presents it as indices.
Then, define a new axis if needed.
Patrick
--
LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
Data Analysis and Visualization Engineer
ICMC - IPSL Climate Modelling Centre
--
--
***********************************************************************************Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE CedexTel: (33) 01 69 08 77 30Portable Phone (Mobil phone) : (33) 07 60 54 23 71************************************************************************************