Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intercal
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fazlul Shahriar
intercal
Commits
3cfc324d
Commit
3cfc324d
authored
11 years ago
by
Greg Quinn
Browse files
Options
Downloads
Patches
Plain Diff
Add zero-collocations hack to convert_cvi_colloc
parent
379db2ab
No related branches found
Tags
v1-i-band
v1-i5
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
convert_cvi_colloc.py
+7
-0
7 additions, 0 deletions
convert_cvi_colloc.py
cris_viiri.empty.hdf
+0
-0
0 additions, 0 deletions
cris_viiri.empty.hdf
with
7 additions
and
0 deletions
convert_cvi_colloc.py
+
7
−
0
View file @
3cfc324d
import
os
import
shutil
import
sys
import
numpy
as
np
from
pyhdf
import
SD
...
...
@@ -8,6 +10,11 @@ class ConvertCviColloc(object):
def
main
(
self
):
colloc_file
,
out_file
=
sys
.
argv
[
1
:]
if
not
os
.
stat
(
colloc_file
).
st_size
:
print
'
Zero collocations
'
empty_file
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
cris_viiri.empty.hdf
'
)
shutil
.
copy
(
empty_file
,
out_file
)
sys
.
exit
(
0
)
explicit_idxs
=
ExplicitCollocationIndexSet
.
from_file
(
colloc_file
,
[
'
Master_Index_3
'
,
'
Master_Index_2
'
,
'
Master_Index_1
'
],
...
...
This diff is collapsed.
Click to expand it.
cris_viiri.empty.hdf
0 → 100644
+
0
−
0
View file @
3cfc324d
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment