This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this file can be sourced from python with rpy2 | |
library(nixmass) | |
calculate_deltasnow <- function(df_in){ | |
#' Calculate nixmass delta snow and return dataframe instead of nixmass object | |
#' | |
#' @param df_in The dataframe containing the data | |
# | |
if(df_in$hs[1]!=0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configparser | |
from io import StringIO | |
import pandas as pd | |
def read_smet(file): | |
""" | |
Read a .smet file as pd.Dataframe | |
Parameters |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
df <- structure( | |
list( | |
column1 = c(0.001234, | |
0.564324, | |
1.234342, | |
0.007839, | |
0.837483, | |
2.493993), | |
column2 = c(0.123493, |