Aqua MODIS Calcite product

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
larteaga
Posts: 9
Joined: Fri Sep 22, 2017 3:28 pm America/New_York
Answers: 0

Aqua MODIS Calcite product

by larteaga » Fri Sep 22, 2017 3:36 pm America/New_York

Hi all,
There seems to be an issue with the PIC (SMI) product (Balch and Gordon) for monthly 9km files, after July 2014. I only find negative (<0) retrievals for all global grids from this period on. I have also downloaded monthly files for 2013, and those seem to work fine. Is there a problem with the algorithm after July, 2014?

Cheers,
Lionel

Tags:

OB WebDev - norman
Subject Matter Expert
Subject Matter Expert
Posts: 143
Joined: Tue Feb 09, 2021 8:19 am America/New_York
Answers: 0

Aqua MODIS Calcite product

by OB WebDev - norman » Fri Sep 22, 2017 4:23 pm America/New_York

Hi Lionel,

Are you applying the scale (slope) and offset (intercept) to the data?
Compare, for example, August 2013 with August 2014.

h5dump -a /pic/scale_factor A20132132013243.L3m_MO_PIC_pic_9km.nc
HDF5 "A20132132013243.L3m_MO_PIC_pic_9km.nc" {
ATTRIBUTE "scale_factor" {
   DATATYPE  H5T_IEEE_F32LE
   DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   DATA {
   (0): 1
   }
}
}

h5dump -a /pic/add_offset A20132132013243.L3m_MO_PIC_pic_9km.nc
HDF5 "A20132132013243.L3m_MO_PIC_pic_9km.nc" {
ATTRIBUTE "add_offset" {
   DATATYPE  H5T_IEEE_F32LE
   DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   DATA {
   (0): 0
   }
}
}

h5dump -a /pic/scale_factor A20142132014243.L3m_MO_PIC_pic_9km.nc
HDF5 "A20142132014243.L3m_MO_PIC_pic_9km.nc" {
ATTRIBUTE "scale_factor" {
   DATATYPE  H5T_IEEE_F32LE
   DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   DATA {
   (0): 2e-06
   }
}
}

h5dump -a /pic/add_offset A20142132014243.L3m_MO_PIC_pic_9km.nc
HDF5 "A20142132014243.L3m_MO_PIC_pic_9km.nc" {
ATTRIBUTE "add_offset" {
   DATATYPE  H5T_IEEE_F32LE
   DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   DATA {
   (0): 0.065
   }
}
}

Regards,
Norman

larteaga
Posts: 9
Joined: Fri Sep 22, 2017 3:28 pm America/New_York
Answers: 0

Aqua MODIS Calcite product

by larteaga » Mon Sep 25, 2017 10:37 am America/New_York

Hi Norman,

Many thanks for your reply. I was not aware that these two parameters needed to be applied. This seems to solve the problem.
As a follow up, Is there a reason why they are not automatically applied to the data?

Cheers,
Lionel

OB WebDev - norman
Subject Matter Expert
Subject Matter Expert
Posts: 143
Joined: Tue Feb 09, 2021 8:19 am America/New_York
Answers: 0

Aqua MODIS Calcite product

by OB WebDev - norman » Mon Sep 25, 2017 11:14 am America/New_York

Hi Lionel,

I believe that SeaDAS should automatically apply the scaling.
Other packages would not necessarily be coded to do that.

Norman

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Aqua MODIS Calcite product

by gnwiii » Mon Sep 25, 2017 3:10 pm America/New_York

You should mention what software you are using.   Current NetCDF4-CF libraries should handle scaling and missing value coding "automagically".  Older libraries often manual intervention.  You should avoid using hard-coded values in your own software, as the values may change.

larteaga
Posts: 9
Joined: Fri Sep 22, 2017 3:28 pm America/New_York
Answers: 0

Aqua MODIS Calcite product

by larteaga » Mon Sep 25, 2017 5:25 pm America/New_York

I see. I use mostly MATLAB, and thus, I write all the processing code manually. I don't know how relevant this is, but I initially wanted to use the BIN files (of the same PIC product), and was not able to open them with MATLAB's Netcdf library. Have you got any thoughts on that?

Cheers,
Lionel

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Aqua MODIS Calcite product

by gnwiii » Tue Sep 26, 2017 7:53 am America/New_York

You might get better answers posting your MATLAB code in the "Non-SeaDAS Packages (e.g. MATLAB, ENVI, GIS, etc)" Section.   You should mention your MATLAB version and the error you get when you try to open a binned file.  NetCDF4 actually uses the HDF5 library, so Using NASA NetCDF binned data with MATLAB's HDF5 functions uses hdf5 to get around problems with unsupported data types in MATLAB's ncread.   NetCDF-4 (Network Common Data Form, version 4) has some notes on support for NetCDF4-CF in older software.  I have also had good results with Unidata's NetCDF-Java in MATLAB and also R.

larteaga
Posts: 9
Joined: Fri Sep 22, 2017 3:28 pm America/New_York
Answers: 0

Aqua MODIS Calcite product

by larteaga » Tue Sep 26, 2017 10:20 am America/New_York

Ok, many thanks for your prompt help!
Cheers,
Lionel

Post Reply