Commit f8260d7e authored by Jeff Piollé's avatar Jeff Piollé

removed debug messages

parent 870c19b3
......@@ -37,7 +37,6 @@ class PointCollection(AbstractFeature):
latitudes=latitudes,
depths=depths,
times=times)
print "WRITE", self._fields.keys()
def extract_subset(self, boundaries=None, slices=None, indices=None):
"""Extract a subset from the trajectory. The created subset is a new
......@@ -156,7 +155,7 @@ class PointCollection(AbstractFeature):
for geof in self._geolocation_fields:
if self._geolocation_fields[geof]:
output.write_field(self._geolocation_fields[geof])
for dataf in self._fields.keys():
output.write_field(self._fields[dataf])
output.close()
......@@ -1044,7 +1044,6 @@ class NCFile(AbstractMapper):
'dtime' in self.get_handler().variables):
ncvar = self.get_handler().variables['time']
# start time is set as reference by convention
logging.debug('ahahahh ncfile.py %s',self.get_handler().variables)
ncvar[0] = values.min()
ncvar = self.get_handler().variables['dtime']
ncvar[0, ...] = values - values.min()
......@@ -1056,10 +1055,12 @@ class NCFile(AbstractMapper):
or ncvar.shape == values.shape\
or (ncvar.shape == (1,) and values.size == 1):
ncvar[...] = values
elif (len(ncvar.shape) - 1 == len(values.shape) and
(ncvar.shape[0] == 1 or ncvar.shape[0] == 0)):
# case of grids
ncvar[0, ...] = values
else:
raise IndexError(
str(
......@@ -1073,6 +1074,7 @@ class NCFile(AbstractMapper):
if field.qc_levels is not None:
self.get_handler().variables[field.name + '_qc_level'][:]\
= field.qc_levels.values[:]
if field.qc_details is not None:
fieldname = field.name + '_qc_details'
self.get_handler().variables[fieldname].set_auto_maskandscale(True)
......
Tested datasets
===============
**cerbere** has been tested with the following list of products:
**cerbere** mappers and data models have been tested with the following list of
products, ordered here by mapper:
NCFile
------
+------------------------------------------------------+---------------+
| Dataset + Datamodel |
+======================================================+===============+
| SMOS SSS by CEC-OS (N. Reul) | Grid |
+------------------------------------------------------+---------------+
| MLD climatology by Ifremer (Boyer) | Grid |
+------------------------------------------------------+---------------+
| WaveWatch3/Hindcast by Ifremer | Grid |
+------------------------------------------------------+---------------+
Example::
>>> from cerbere.datamodel.grid import Grid
>>> from cerbere.mapper.ncfile import NCFile
>>>
>>> ncf = NCFile(url='/home/salinity1/public/data/cecos/sss_smos_l3_V02/2012/Daily_composite/Half_degree/SSS_SMOS_L3_Daily_0.5deg_CATDS_CECOS_2012.12.30_V02.nc')
>>> g = Grid()
>>> g.load(ncf)
Generic mapper for a large collection of CF compliant NetCDF datasets.
Grid
++++
* **SMOS SSS** by CATDS CEC-OS (N. Reul)
.. code-block:: python
from cerbere.datamodel.grid import Grid
from cerbere.mapper.ncfile import NCFile
ncf = NCFile(url='SSS_SMOS_L3_Daily_0.5deg_CATDS_CECOS_2012.12.30_V02.nc')
g = Grid()
g.load(ncf)
* **Mixed Layer Depth climatology** by Ifremer (Boyer)
* **WaveWatch3/Hindcast** model output by Ifremer
Swath
+++++
* **AVISO L2 GDR** products for CryoSat-2, Saral/AltiKa
GHRSSTNCFile
------------
+------------------------------------------------------+---------------+
| Dataset + Datamodel |
+======================================================+===============+
| VIIRS L2P by NAVO | Swath |
+------------------------------------------------------+---------------+
| AMSR2 L2P by JAXA | Swath |
+------------------------------------------------------+---------------+
| (A)ATSR L2P by ESA SST CCI/ARC | Swath |
+------------------------------------------------------+---------------+
Generic mapper for GHRSST L2P, L3 and L4 datasets.
Swath
+++++
* **VIIRS L2P** by NAVO
* **AMSR2 L2P** by JAXA
* **(A)ATSR L2P** by ESA SST CCI/ARC
SAFESLFile
------------
......@@ -48,7 +57,6 @@ This case is quite complex because of the different sub-products
sub-products don't all overlap (e.g. they don't have the same array dimensions nor same
pixel locations), we can not extract a single miniprod from a SAFE container.
The data in felyx are read with `**cerbere**<http://cerbere.readthedocs.org/>`_ python package.
The `**cerbere** strategy for SLSTR products is to provide several mappers adapted to
each product/subproduct combination. A mapper will merge the nadir and oblique view fields as
if they were in the same product file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment