[Thread Prev][Thread Next][Index]

[ferret_users] listing to ASCII file without missing values

Dear Ferreters,


I would like to suppress the output data that contains missing values when listing to an ASCII file. I have a three dimensional netcdf file which contains plenty of missing values.

Yes? Sh grid my_var

            Name   axis                  #pts      start     end

            XAX      LONGITUDE     111       30W     80E

            YAX      LATITUDE         61        30s       30n

            NORMALl         Z

            TAX                  T          12        1          12


I want to have an ASCII file with 3 columns only at the locations with good values of “my_var” (not a missing value): latitude, longitude and the value my_var. I tried to list all the missing values at the end, and then repeat the function for each longitude and month. This works in principle OK, but the problem is that the index (the corresponding longitude) does not coincide anymore with the original value.


Yes? List/x=-30/l=1/nohead compressi(my_var)

The ASCII file looks like that:


1          /           1:         0.00

2          /           2:         1.12

3          /           3:         2.22

4          /           4:         1.34

5          /           5:         ….

6          /           6:         ….


Does anyone know how to list only the good values without losing the longitude and latitude information?


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement