Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
cerbere
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cerbere
cerbere
Commits
f8260d7e
Commit
f8260d7e
authored
Apr 14, 2016
by
Jeff Piollé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed debug messages
parent
870c19b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
32 deletions
+41
-32
pointcollection.py
cerbere/datamodel/pointcollection.py
+1
-2
ncfile.py
cerbere/mapper/ncfile.py
+3
-1
compatibility.rst
docs/compatibility.rst
+37
-29
No files found.
cerbere/datamodel/pointcollection.py
View file @
f8260d7e
...
...
@@ -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
()
cerbere/mapper/ncfile.py
View file @
f8260d7e
...
...
@@ -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
)
...
...
docs/compatibility.rst
View file @
f8260d7e
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment