Comments (5)
Is the answer to that to add those keys to the DEBUG logging from NetCDFRead?
I have done that already and so I guess we can indeed test by searching for the 'file_version' result in the log output string, and that would mean no need to expose the _scan_only
keyword. Sounds like a plan! When I move on from ES-DOC work I'll do that for #296 and finish and open it for review. Thanks.
from cfdm.
There is another parameter I would like to expose in cf.read
that is available in cf.NetCDFRead.read
, namely _scan_only
. This one is of course only intended for internal use, but I can't find an elegant-enough (non-contrived) way to query on the read variables registered (read_vars
dict) without it, and I want to see those for testing e.g. in the associated PR #296.
That said, I think it could be a useful user-facing method - so I propose to upgrade it to one, possibly as part of the API review for cf v4.0.0.
from cfdm.
Hi Sadie - what is the use case for querying the read_vars
dict? (not doubting there is one - just wondered what you had in mind)
from cfdm.
In #296 I want to check that the correct read_vars["file_version"]
and read_vars["UGRID_version"]
(etc. for CFA version) get set, though perhaps we can just test that the ultimate Conventions
property gets set, if we set it to the default e.g. CF-1.11
when an invalid value such as 1.6/1.7
is set?
from cfdm.
Is the answer to that to add those keys to the DEBUG logging from NetCDFRead
?
from cfdm.
Related Issues (20)
- Implementation of UGRID (part 2 of 2)
- Remove Python 3.7 (EOL)
- Always import `numpy` as `np`
- Reduce the size of the test suite's file creation script
- Allow access to netCDF-4 files in S3 object stores
- Refactor the flattening of netCDF-4 groups
- Allow discrete sampling geometries with 1-d data to be written as ragged arrays, and improve the compression process
- New example field: discrete sampling geometry trajectory features
- Out of bounds data indexing behaviour HOT 2
- Unexpected attribute value after `write` setting older `Conventions` HOT 2
- Error reading files with pattern-defying CF Conventions value format
- Error on reading files with conformant Conventions value 'CF-1.*-draft' HOT 1
- `cf.Field.cell_methods` returns incorrect results when an invalid identifer is provided
- Prepare for UGRID versions greater than 1.0
- Python 3.12 compatability
- `cfdm.write` fails when a parametric Z dimension coordinate does not have a `compute_standard_name` attribute
- Add type hints for type safety
- Remove support for Python 3.8 (EOL)
- Extension to the HDF5 chunks API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfdm.