Comments (3)
You can try with this:
./manage.py ingest /mnt/10.11.12.232/sat_downloads/ASCAT/metop_a/12km/2010/001/ascat_20100101_024501_metopa_16614_eps_o_125_1018_ovw.l2.nc
And use the branch hotfix365_scatterometer_mappers in nansat.. (https://github.com/nansencenter/nansat/tree/hotfix365_scatterometer_mappers)
from django-geo-spaas.
I was not able to open the file with Nansat. I fixed a couple of bugs but I don't how to deal with that one:
In [1]: from nansat import Nansat
In [2]: n = Nansat('/Data/sat/downloads/ASCAT/metop_a/12km/2010/001/ascat_20100101_024501_metopa_16614_eps_o_125_1018_ovw.l2.nc')
=>MetOp-A ASCAT Level 2 12.5 km Ocean Surface Wind Vector Product<=
Warning 1: dimension #1 (NUMCELLS) is not a Longitude/X dimension.
Warning 1: dimension #0 (NUMROWS) is not a Latitude/Y dimension.
Warning 1: dimension #1 (NUMCELLS) is not a Longitude/X dimension.
Warning 1: dimension #0 (NUMROWS) is not a Latitude/Y dimension.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
~/py/nansat/nansat/mappers/mapper_netcdf_cf.py in _band_dict(self, subfilename, band_num, subds, band, band_metadata)
267 band_metadata['time_iso_8601'] = self._time_count_to_np_datetime64(
--> 268 band_metadata[timecountname])
269 except KeyError as e:
KeyError: 'NETCDF_DIM_time'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
<ipython-input-2-d38726b6430a> in <module>()
----> 1 n = Nansat('/Data/sat/downloads/ASCAT/metop_a/12km/2010/001/ascat_20100101_024501_metopa_16614_eps_o_125_1018_ovw.l2.nc')
~/py/nansat/nansat/nansat.py in __init__(self, filename, mapper, log_level, **kwargs)
151 self._init_empty(filename, log_level)
152 # Create VRT object with mapping of variables
--> 153 self.vrt = self._get_mapper(mapper, **kwargs)
154
155 def __getitem__(self, band_id):
~/py/nansat/nansat/nansat.py in _get_mapper(self, mappername, **kwargs)
1139 # create a Mapper object and get VRT dataset from it
1140 try:
-> 1141 tmp_vrt = nansatMappers[iMapper](self.filename, gdal_dataset, metadata, **kwargs)
1142 self.logger.info('Mapper %s - success!' % iMapper)
1143 self.mapper = iMapper.replace('mapper_', '')
~/py/nansat/nansat/mappers/scatterometers.py in __init__(self, filename, gdal_dataset, metadata, quartile, *args, **kwargs)
18 def __init__(self, filename, gdal_dataset, metadata, quartile=0, *args, **kwargs):
19
---> 20 super(Mapper, self).__init__(filename, gdal_dataset, metadata, *args, **kwargs)
21
22 intervals = [0,1,2,3]
~/py/nansat/nansat/mappers/mapper_netcdf_cf.py in __init__(self, filename, gdal_dataset, gdal_metadata, *args, **kwargs)
64
65 # Add bands with metadata and corresponding values to the empty VRT
---> 66 self.create_bands(self._band_list(gdal_dataset, metadata, *args, **kwargs))
67
68 # Check size?
~/py/nansat/nansat/mappers/mapper_netcdf_cf.py in _band_list(self, gdal_dataset, gdal_metadata, netcdf_dim, bands, *args, **kwargs)
225 # append band with src and dst dictionaries
226 bdict = self._band_dict(fn, band_num, subds, band=band,
--> 227 band_metadata=band_metadata)
228 if bdict:
229 metadictlist.append(bdict)
~/py/nansat/nansat/mappers/mapper_netcdf_cf.py in _band_dict(self, subfilename, band_num, subds, band, band_metadata)
273 warnings.warn(
274 '%s: %s - %s Continuing without time metadata for band %s'
--> 275 %(e.__repr__().split('(')[0], e.message, e.__doc__,
276 band_metadata['NETCDF_VARNAME']))
277
AttributeError: 'KeyError' object has no attribute 'message'
from django-geo-spaas.
This is not an issue any more. The new package django-geo-spaas-scatterometry handles ingestion of scatterometer data, and works well.
from django-geo-spaas.
Related Issues (20)
- Create slim image
- The 80 characters limit on Dataset.entry_id is too small
- viewer should not show the local address of downloaded file
- Map become useless when all harvested datasets are covering all the map!
- geospaas.base_viewer.views.IndexView.get_all_datasets should not return datasets without geographic location
- some other descriptions of dataset must be shown in the viewer
- Dataset that ends with exaclty the begin time of search time should not be displayed in viewer HOT 3
- Highlight polygon when mouse hovers over table HOT 1
- Use 100% for table height HOT 1
- nansat ingestor is not needed anymore since we have localharvester in the harvesting repo HOT 1
- Increase the URL field size limit
- Test sometimes fails: catalog.tests.GeographicLocationTests.test__reproduce__not_null_constraint_failed
- Add support for pythesint vocabularies versions pinning
- Migrate CI to Github Actions
- Test failing because of non existing URL
- Rework the string representation of some vocabulary models
- Upgrade Django in the Docker images
- Support new GCMD fields
- Update documentation
- Remove GDAL dependency HOT 1
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 django-geo-spaas.