Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge Iframe embedding
swh:1:cnt:dd802a16ee43aaaf5236befbc22ca65ad57071ff

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
%% batchBuildMDA creates a new mda file with a specific channel data from an smr file

% .mda is the input file format that MountainSort uses

% For more informaiton on mda file formats and MountainSort see -
% https://github.com/magland/mountainlab/blob/master/old/doc/mda_format.md

% Maxwell Gagnon 10/2017

activateCEDS64
channel = 8;

filenames = [
	% FILE NAMES GO HERE
    ];

%fileList = csvread(char(filenames(i))s);
worked = zeros(length(filenames),1);

for i = 1:length(filenames)
    
    fhand1 = CEDS64Open(char(filenames(i)));
    if fhand1 < 0;
        fprintf('\n%s\n NOT FOUND\n\n', filenames(i))
        fprintf('Error # (%d)', fhand1)
        worked(i,1) = -1;
        continue
    else
        fprintf('\n%s\nFOUND\n', filenames(i))
        worked(i,1) = 1;
    end
    
    % if your data does not read enough of the smr file, try increasing
    % the third input to CEDS64ReadWaveF to something higher
    fprintf('Reading channel data...\n')
    [~, vfWave, ~] = CEDS64ReadWaveF( fhand1, channel, 200000000, 0);
    fprintf('Writing mda file...\n')
    
    outputfile = strrep(char(filenames(i)), '.smr', '.mda');
    outputfile = strrep(outputfile, '.smrFiles', '.mdaFiles');
    writemda(vfWave', outputfile, 'float32');
    output = readmda(outputfile);
    
    % compare the original waveform vector to the vector created in the
    % mda file; this makes sure that everything is copied over nicely
    % A = 1; equal
    % A = 0; NOT equal, something went wrong
    fprintf('Varifying...\n')
    if isequal(output, vfWave')
        fprintf('Everything worked!\n')
    else
        fprintf('\nOops! \nSomething went wrong\n')
    end
end

worked

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API