[Thread Prev][Thread Next][Index]

[ferret_users] Spatial average from multiple files;



Hi,

I tried to derive spatial average of KD490 from four different files (1.nc, 2.nc, 3.nc and 4.nc downloaded from giovanni database)

\\I used the following stpes

yes? use 1.nc , 2.nc , 3.nc , 4.nc 
yes? sh da
     currently SET data sets:
    1> ./1.nc
 name     title                             I         J         K         L         M         N
 MODISA_L3M_KD_2014_KD_490
          Diffuse attenuation coefficient  1:156     1:96      ...       ...       ...       ...
 
    2> ./2.nc
 name     title                             I         J         K         L         M         N
 MODISA_L3M_KD_2014_KD_490
          Diffuse attenuation coefficient  1:156     1:96      ...       ...       ...       ...
 
    3> ./3.nc
 name     title                             I         J         K         L         M         N
 MODISA_L3M_KD_2014_KD_490
          Diffuse attenuation coefficient  1:156     1:96      ...       ...       ...       ...
 
    4> ./4.nc  (default)
 name     title                             I         J         K         L         M         N
 MODISA_L3M_KD_2014_KD_490
          Diffuse attenuation coefficient  1:156     1:96      ...       ...       ...       ...
 

yes? fill MODISA_L3M_KD_2014_KD_490[d=1]
yes? frame/file=Figure1.gif                              //Figure1 in the attachement
yes? fill MODISA_L3M_KD_2014_KD_490[d=2]
yes? frame/file=Figure2.gif                              //Figure2 in the attachement
yes? fill MODISA_L3M_KD_2014_KD_490[d=3]
yes? frame/file=Figure3.gif                              //Figure3 in the attachement
yes? fill MODISA_L3M_KD_2014_KD_490[d=4]
yes? frame/file=Figure4.gif                              //Figure4 in the attachement

yes? fill (MODISA_L3M_KD_2014_KD_490[d=1]+MODISA_L3M_KD_2014_KD_490[d=2]+MODISA_L3M_KD_2014_KD_490[d=3]+MODISA_L3M_KD_2014_KD_490[d=4])/4

yes? frame/file=Figure5.gif                              //Figure5 in the attachement


//In the image, most of the regions were empty while taking the average (the method read from ferret user group).
//It was because of the missing data in any of the file (eg. 4.nc), led the empty regions, though other files having values.

I should take the average from these files.
How can I solve this?
Is it possible to replace the 'no data (....)' as 'zero (0)'?
or Is it possible to feed K and L axis with some values like L value = 1,2,3 and 4 for each .nc files, respectively? May it be useful to take average like
"yes? fill MODISA_L3M_KD_2014_KD_490 [l=1:4@AVE]".

The sample data files attached here.

Thanks.
--
C. Karnan, CSIR - SRF
National Institute of Oceanography (CSIR)
India.

Attachment: Figure1.gif
Description: GIF image

Attachment: Figure2.gif
Description: GIF image

Attachment: Figure3.gif
Description: GIF image

Attachment: Figure4.gif
Description: GIF image

Attachment: Figure5.gif
Description: GIF image

Attachment: 1.nc
Description: Cdf file

Attachment: 2.nc
Description: Cdf file

Attachment: 3.nc
Description: Cdf file

Attachment: 4.nc
Description: Cdf file

Attachment: Steps
Description: Binary data


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

Privacy Policy | Disclaimer | Accessibility Statement